After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 727963 - Game buttons should have a fixed distance from the playing area
Game buttons should have a fixed distance from the playing area
Status: RESOLVED FIXED
Product: gnome-mines
Classification: Applications
Component: general
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-mines-maint
gnome-mines-maint
available
Depends on:
Blocks:
 
 
Reported: 2014-04-10 12:48 UTC by Allan Day
Modified: 2015-01-17 08:08 UTC
See Also:
GNOME target: ---
GNOME version: 3.11/3.12


Attachments
illustration (4.54 KB, image/png)
2014-04-10 12:48 UTC, Allan Day
  Details
Attach the game buttons to the game area (11.85 KB, patch)
2015-01-15 03:55 UTC, Robert Roth
committed Details | Review

Description Allan Day 2014-04-10 12:48:26 UTC
Created attachment 273983 [details]
illustration

If you resize the Mines window, the buttons move away from the playing grid. This looks bad, and can leave the buttons in an inconvenient position.

Keeping the buttons a fixed distance from the playing area would look a lot better. I've attached a visual illustration.
Comment 1 Iulian Radu 2014-08-31 14:28:29 UTC
Hey, I can work on this. Any preferred distance between the buttons and the playing area?
Comment 2 Robert Roth 2014-08-31 14:32:24 UTC
(In reply to comment #1)
> Hey, I can work on this. Any preferred distance between the buttons and the
> playing area?

Contributions are welcome, thanks for your interest in this.
As for the distance, usually something like 6 or 12 px is used for loose coupling, so let's try those values first, and we'll get some designer input from Allan based on the screenshots with those values.
Comment 3 Michael Catanzaro 2014-08-31 17:42:29 UTC
I think Arnaud is our expert on the "playing area on the left, buttons on the right" layout. Take a look at how he used a GtkAspectFrame to create the layout for Iagno, Four-in-a-row, and Sudoku.

Arnaud, can I count on you to review patches in this bug?
Comment 4 Arnaud B. 2014-08-31 19:35:27 UTC
Yeah, I’m here. The layout described here by Allan with a fixed distance between the board and the right column would be done another way than with a GtkAspectFrame (probably a horizontal GtkBox of four elements with the first and the last in a GtkSizeGroup, but I didn’t test).

The AspectFrame thing I used in Iagno, Four-in-a-row[1] and Sudoku helps not having a right column looking too thin –squeezed on the board– when playing on a big screen, and looks a little better on large horizontal windows (but there’s no perfect solution for that case). 

If all the games that have a “board” and a right column could use the same behavior, it would be great (Chess and Hitori should have one in my mind… I’ll try). But the difficulty with Mines (or with Klotski, or with Five or More) is that the board isn’t all the time square…

[1] in the GtkBuilder patch, https://bugzilla.gnome.org/show_bug.cgi?id=735073
Comment 5 Iulian Radu 2014-08-31 19:39:52 UTC
I will try making it similar to Sudoku/Iagno. I'll ask if I have any questions.
Comment 6 Michael Catanzaro 2014-08-31 20:20:40 UTC
(In reply to comment #4)
>(Chess and Hitori should have one in my mind… I’ll
> try).

But these games don't have right columns? :p
Comment 7 Robert Roth 2015-01-15 03:55:04 UTC
Created attachment 294569 [details] [review]
Attach the game buttons to the game area
Comment 8 Robert Roth 2015-01-15 03:56:53 UTC
Attachment 294569 [details] pushed as e6cb7ba - Attach the game buttons to the game area
Comment 9 Allan Day 2015-01-16 15:22:35 UTC
One issue that I see with master is that the buttons aren't vertically aligned with the top and bottom of the grid. This creates a rather awkward visual layout.

Also, would it be possible to increase the padding between the buttons and the game grid? Right now they're a bit close for comfort.
Comment 10 Robert Roth 2015-01-17 08:08:45 UTC
Increased the spacing between the grid and the buttons to 24px (from 18px), and aligned the buttons to top and bottom of the grid. This results in occasional tile ratio changes, not resulting in square tiles, but slightly rectangular ones. I will take a look into that later, but it's not as awkward as the not aligned buttons, so for now, I think it looks better.