Commit graph

286 commits

Author SHA1 Message Date
Michael Catanzaro
13f03c5e00 Use composite template to build preferences dialog 2020-12-24 16:07:31 -06:00
Michael Catanzaro
07a6086446 Use composite template to build promotion type selector
This also fixes a bug that I introduced with my GTK 4 porting: the
promotion type selector dialog would always display pieces in the color
of the first player to promote a piece, but it should always change
color to match the current player.

Note that I declared all the GtkChild widgets as unowned due to
vala#1121, which I discovered while working on this.
2020-12-24 15:14:47 -06:00
Michael Catanzaro
b9d34b35c8 Move gresource.xml to data/ 2020-12-24 13:12:36 -06:00
Michael Catanzaro
627ee9c5b3 Use GResource for piece images
It's 2020, no need to load SVGs from /usr/share anymore.
2020-12-24 11:56:53 -06:00
Michael Catanzaro
1c38521a22 Remove New Game button from header bar
It takes too much space in narrow mode, and it no longer needs to be a
button because we have a window menu again. I think I originally made
this a button when removing the window menu, but nowadays the menu is
back.
2020-12-24 11:00:51 -06:00
Michael Catanzaro
67a5d88e0d Port to GTK 4
I probably should have removed GtkDialog.run() use first, in a separate
commit, but I didn't and now it would be a lot of effort to split it
out. So here it is: one big GTK 4 megacommit.
2020-12-24 16:41:53 +00:00
Michael Catanzaro
c0fabc35d9 Bring back separate Save and Save As
This will allow the user to decide whether or not to open the file
chooser. Surprisingly, the code for both of these still exists -- it was
already possible to choose between them using keyboard shortcuts -- so
all we need to do is edit the menu.
2020-12-06 10:08:31 -06:00
Michael Catanzaro
ba72876f72 Open Game menu item should have ellipses...
...because it opens the file chooser.
2020-12-06 10:07:03 -06:00
Michael Catanzaro
23994bb997 Remove stray menu button changes that snuck into previous commit
I was testing a local hack. This wasn't supposed to be pushed.
2020-12-05 12:31:27 -06:00
Michael Catanzaro
39fb1c5651 Use info bar to display game status in narrow mode
The main header bar doesn't have enough space to show messages when the
screen is narrow. So when running in mobile mode, let's add an info bar.

This looks better than my first attempt, 0e8090dcd1.
2020-12-05 12:28:48 -06:00
Michael Catanzaro
4129f1950a Revert "Use inner headerbar in narrow mode"
This reverts commit 0e8090dcd1.

Emmanuele, Matthias, and Exalm all do not like it.
2020-12-05 10:07:20 -06:00
Michael Catanzaro
8e01fb40ef Rework promotion type selector dialog to not use action area
Fixes #19
2020-12-04 16:51:13 -06:00
Michael Catanzaro
0e8090dcd1 Use inner headerbar in narrow mode
The main headerbar doesn't have enough space to show messages when the
screen is narrow. So when running in mobile mode, let's add a secondary
headerbar.
2020-12-04 14:57:00 -06:00
Michael Catanzaro
b7c10f6f4f Remove extra GtkBox
We currently have a vertical GtkBox that contains the GtkInfoBar and
then another vertical GtkBox. Only one box is needed.
2020-12-04 14:57:00 -06:00
Michael Catanzaro
ed38dbe57b Hide timers in untimed games
There's no need to show the timers at all if the game is untimed.

Fixes #39
2020-12-04 14:57:00 -06:00
Michael Catanzaro
1ac2d80a3e Make all chess engines easier on easy/normal difficulty
This is not likely to have a very strong effect, but it's the best we
can do short of writing an entirely new chess engine. The HoiChess
engine seems to be notably easier than other engines, so currently that
seems like the best choice to distribute with GNOME Chess.

Fixes #18, at least sort of.
2020-12-04 14:57:00 -06:00
Adrien Plazas
c073af3da4 data: List compatible form-factors
This will allow the app to be available in Phosh and PureOS Store.
2020-11-04 13:54:02 +01:00
Michael Catanzaro
a6dfe62507 Prepare 3.38.0 2020-09-11 18:04:37 -05:00
Michael Catanzaro
2fd6c2ef75 Prepare 3.37.3 2020-07-02 13:30:25 -05:00
Arnaud Bonatti
cf1feeeace Clean a bit UI files. 2020-06-26 18:31:05 +00:00
Arnaud Bonatti
a06e566950 Replace GtkTable. 2020-06-26 18:31:05 +00:00
Michael Catanzaro
86924c9d23 Prepare 3.37.2 2020-05-28 18:08:59 -05:00
Michael Catanzaro
afa477566e Make GNU Chess easy mode a bit easier
It's still impossibly difficult, but let's do everything possible to
encourage GNU Chess to throw pieces away on easy mode.

See: #18
2020-05-04 14:45:55 -05:00
Arnaud Bonatti
ff6186ba84 Make D-Bus activatable. 2020-05-03 18:41:08 +02:00
Michael Catanzaro
67e063f464 Prepare 3.37.1.1 2020-04-25 16:26:35 -05:00
Sabri Ünal
aa00f096f2 help-overlay.ui: Remove Ctrl+F1 shortcut
Due to a conflict, remove Ctrl+F1 shortcut from Keyboard Shortcuts dialog.

https://gitlab.gnome.org/GNOME/gtk/-/issues/626
2020-04-09 16:37:59 +03:00
Sabri Ünal
258db56527 help-overlay.ui: Add new shortcut: F10: Open Menu
Add missing F10 shortcut to open the menu.
2020-04-09 16:36:48 +03:00
Arnaud Bonatti
faded5fb64 Improve Shortcuts dialog. 2020-04-08 19:35:02 +02:00
Arnaud Bonatti
46ab8f5e51 Add Ctrl-P pause shortcut. 2020-04-08 19:34:53 +02:00
Michael Catanzaro
033734e184 Prepare 3.36.0 2020-03-05 15:32:24 -06:00
Michael Catanzaro
b73db7ed26 Prepare 3.35.3 2020-01-03 23:08:57 -06:00
Brian Daniels
0549620713 Move open, save, and resign game buttons into menu.
Adds a separator in the menu to help separate them from the other
program options.
2019-09-25 19:13:14 +00:00
Brian Daniels
6918723d47 Remove extra margin between board and controls 2019-09-25 19:13:14 +00:00
Brian Daniels
9c728ab496 Ensure the time labels are the same height as the other controls 2019-09-25 19:13:14 +00:00
Brian Daniels
755a39a0c3 Allowing history combobox text to ellipsize 2019-09-25 19:13:14 +00:00
Brian Daniels
8ab42e4be3 Add extra box for control split 2019-09-25 19:13:14 +00:00
Bilal Elmoussaoui
3be16f27ea Appdata: add release tag
Backport a flathub patch in order to publish the latest release
2019-09-13 09:56:03 +00:00
Michael Catanzaro
01d94db7e6 Add provides for old desktop filename
This is what GNOME Software used as our app ID in the time before app
IDs were a thing.
2019-07-14 16:02:19 -05:00
Michael Catanzaro
c5b0419cd7 Add padding to bottom row of widgets
Fixes #34
2019-02-27 10:02:19 -06:00
Jakub Steiner
8ac6fdd8a1 icon: update app icon
- GNOME 3.32 redesign of app icons.
  See https://gitlab.gnome.org/GNOME/Initiatives/issues/2
  for more info.

/label ~"9. Initiative: AppIconRedesign"
2019-02-01 10:31:41 +00:00
Bilal Elmoussaoui
a70b239857 appdata: remove AppMenu kudos
per the new design initiative, the AppMenu is no more a thing
GNOME Software remvoed the AppMenus, we should do the same here.
2019-01-20 21:05:16 +00:00
Bilal Elmoussaoui
176d6c5f0f meson: tests to validate appdata & desktop files 2019-01-10 18:25:00 +00:00
Bilal Elmoussaoui
9b910aa520 app-id: unify the app-id
Use org.gnome.Chess as the app-id and follow the new freedesktop standards for appdata/desktop/icons files names
https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html
2019-01-09 14:20:33 +01:00
Jeremy Bicha
a76b9bb592 Ensure that F1, Ctrl+Q, and Ctrl+W work 2018-12-08 18:37:47 -05:00
Jeremy Bicha
26eb0d6b71 Add Keyboard Shortcuts overlay 2018-12-08 18:37:22 -05:00
Jeremy Bicha
1aea934063 menus: Add accelerators 2018-12-06 17:07:53 -05:00
Jeremy Bicha
7da3112a1f menus: Drop separator between Preferences and Help
as recommended by
https://gitlab.gnome.org/GNOME/Initiatives/wikis/App-Menu-Retirement
2018-12-06 17:06:35 -05:00
Jeremy Bicha
c5aa0a303c menus: Update for GNOME 3.32 recommendations
https://gitlab.gnome.org/GNOME/Initiatives/wikis/App-Menu-Retirement
2018-12-06 13:00:20 -05:00
Michael Catanzaro
eb7f2636c5 Improve construction of the no-engine info bar
This reparenting strategy was pretty wild.
2018-07-27 19:46:42 -05:00
Michael Catanzaro
ea0d76bd58 Remove leftover automake file 2018-03-11 18:27:45 -05:00