Commit graph

303 commits

Author SHA1 Message Date
Michael Catanzaro
11fb0b2f33 Tweak appdata requires
https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1092#note_1410621
2022-03-17 14:30:10 -05:00
Michael Catanzaro
8dd35638d7 Prepare 42.0 2022-03-17 14:15:04 -05:00
Michael Catanzaro
7d9f04acdc Tweak appdata recommends/requires
We don't support keyboard-only gameplay.

Also, let's use the less-specific "small" screen size here.
2022-03-17 13:21:46 -05:00
Michael Catanzaro
01b54ab314 Add appdata screenshot to git repo
people.gnome.org is shutting down
2022-03-09 16:12:00 -06:00
Michael Catanzaro
065e3493ef Prepare 42.alpha 2022-01-06 15:34:23 -06:00
Michael Catanzaro
1e5cf80052 Prepare 41.1 2021-10-29 11:58:44 -05:00
Michael Catanzaro
f337567008 Fix Exec= line in desktop file
We were not passing the filename, preventing Chess from actually opening
PGN files. Somehow nobody ever noticed this until now!

Fixes #62
2021-09-17 07:03:47 -05:00
Michael Catanzaro
24fa276e04 Prepare 41.0 2021-09-16 15:16:56 -05:00
Adrien Plazas
6c0653748c appdata: State hardware support
This declares which hardware the application supports.
2021-09-09 19:51:56 +02:00
Michael Catanzaro
9003966603 Add missing 40.1 release to appdata 2021-04-29 09:59:33 -05:00
Michael Catanzaro
ae9038690d Add test dependencies to attempt to fix CI
See: gnome-build-meta#372
2021-04-21 21:33:45 +00:00
Michael Catanzaro
f97146fbdc Use ~ for prereleases in appdata 2021-03-22 17:31:14 -05:00
Michael Catanzaro
d01d8eef55 Remove prereleases from appdata 2021-03-22 17:13:35 -05:00
Michael Catanzaro
a8184acc4a Prepare 40.0 2021-03-22 16:57:46 -05:00
Michael Catanzaro
b4998ff97b Prepare 40.alpha 2021-01-07 15:16:18 -06:00
Michael Catanzaro
c292a01440 Create a ChessWindow and move a bunch of logic there 2020-12-25 11:16:50 -06:00
Michael Catanzaro
d5fefd3433 No need to manually unparent dialog children after all?
I still don't understand this fully. See:
https://gitlab.gnome.org/GNOME/vala/-/issues/1121#note_992251
2020-12-25 11:10:42 -06:00
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