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 710125 - Basic visual fixes
Basic visual fixes
Status: RESOLVED OBSOLETE
Product: iagno
Classification: Applications
Component: general
git master
Other Linux
: Normal enhancement
: ---
Assigned To: iagno-maint
iagno-maint
Depends on:
Blocks:
 
 
Reported: 2013-10-14 17:28 UTC by Allan Day
Modified: 2018-05-22 12:27 UTC
See Also:
GNOME target: ---
GNOME version: 3.11/3.12


Attachments
or like this (18.33 KB, image/png)
2013-10-15 15:03 UTC, Andreas Nilsson
  Details
Have a play around implementing Allan's design (16.92 KB, patch)
2013-10-15 20:32 UTC, Robert Ancell
committed Details | Review
Screenshot of new design implementation (40.37 KB, image/png)
2013-10-15 20:33 UTC, Robert Ancell
  Details
screenshot of current implementation (thanks to Robert and Iulian) (23.69 KB, image/png)
2014-09-15 20:05 UTC, Michael Catanzaro
  Details
Set grid width stroke to 2px and apply texture to background. (320.01 KB, patch)
2014-09-15 21:48 UTC, Iulian Radu
needs-work Details | Review
screenshot (64.44 KB, image/png)
2014-09-15 22:28 UTC, Michael Catanzaro
  Details
Set grid width stroke to 2px. (1.47 KB, patch)
2014-09-15 23:05 UTC, Iulian Radu
committed Details | Review
Rework game-view.vala. (6.86 KB, patch)
2014-09-16 11:23 UTC, Arnaud B.
reviewed Details | Review
Rework game-view.vala. (6.85 KB, patch)
2014-09-16 14:17 UTC, Arnaud B.
committed Details | Review
Better drawing function. (132.42 KB, patch)
2014-09-18 15:02 UTC, Arnaud B.
reviewed Details | Review
Rename main code files. (77.07 KB, patch)
2014-09-18 15:17 UTC, Arnaud B.
rejected Details | Review
Better drawing function. (132.18 KB, patch)
2014-09-19 15:33 UTC, Arnaud B.
committed Details | Review
Think rounded square. (8.23 KB, patch)
2015-04-14 14:10 UTC, Arnaud B.
none Details | Review
Radius 9 for some themes. (970 bytes, patch)
2015-05-01 21:53 UTC, Arnaud B.
none Details | Review

Description Allan Day 2013-10-14 17:28:54 UTC
I'm no graphic artist, and Iagno really needs some custom artwork. That said, there are some basic things we can do to make the game look better:

 * Replace the dashed board lines with straight lines.
 * Include a line around the edge of the board.
 * Put some padding around the board.
 * Make the board green and the counters a simple black and white.

https://raw.github.com/gnome-design-team/gnome-mockups/master/games/iagno/iagno.png
Comment 1 Michael Catanzaro 2013-10-15 02:56:51 UTC
Thanks: those are all quite simple and I think they'll make a big difference.  I also want to note the presence of the arrow next to the player to move; don't want to forget that.

I'm a bit confused by the green color, though. At least that shade doesn't seem very appealing to me.
Comment 2 Andreas Nilsson 2013-10-15 14:44:02 UTC
The green color is the traditional color used for the Reversi/Othello [1] board game (that iagno is a variant of according to the gnome wiki [2]) 

1. http://en.wikipedia.org/wiki/Reversi
2. https://wiki.gnome.org/GnomeGames/
Comment 4 Andreas Nilsson 2013-10-15 14:54:13 UTC
possibly #2e3436 could work too.
Comment 5 Andreas Nilsson 2013-10-15 15:03:49 UTC
Created attachment 257352 [details]
or like this

thicker lines ala Othello and color is really close to the one I had as a kid :)
Comment 6 Michael Catanzaro 2013-10-15 15:54:56 UTC
That shade looks good to me.
Comment 7 Robert Ancell 2013-10-15 20:32:49 UTC
Created attachment 257386 [details] [review]
Have a play around implementing Allan's design

Main issues with the patch are:
- Grid requests to be square but is assigned more width than height; this
causes the offset to the left.
- Alignment of widgets to the right of the grid
Comment 8 Robert Ancell 2013-10-15 20:33:08 UTC
Created attachment 257388 [details]
Screenshot of new design implementation
Comment 9 Michael Catanzaro 2013-10-22 02:24:16 UTC
Do we want to put Undo in the window, or leave it in the app menu?
Comment 10 Michael Catanzaro 2013-10-22 03:49:22 UTC
Review of attachment 257386 [details] [review]:

This already looks loads better than the original... pushed to wip/redesign.

TODO: Need a replacement for the infobar messages; passes are confusing without it (nifty scoreboard arrow or no), and we probably want to show when the game is over (besides just the flippy animation).  I'm not sure the infobar wasn't the best way to handle that.
Comment 11 Allan Day 2013-10-24 18:10:44 UTC
I've updated the mockups a bit (incorporating Andreas's changes):

https://raw.github.com/gnome-design-team/gnome-mockups/master/games/iagno/iagno.png

Changes include:

 * 2px wide stroke for the grid
 * Different background colour for the board
 * Added a bit of texture to the board background
 * Used some gradients and shadow on the counters
Comment 12 Michael Catanzaro 2014-02-08 22:57:43 UTC
The only issue I see with the mockups is that it's missing an Undo button.

I guess Scores can also go into the sidebar.
Comment 13 Michael Catanzaro 2014-09-15 20:03:42 UTC
(In reply to comment #11)
>  * 2px wide stroke for the grid
>  * Different background colour for the board
>  * Added a bit of texture to the board background
>  * Used some gradients and shadow on the counters

Our first 3.15 release is going to look very close to your mockup, thanks to Iulian Radu's work in bug #664983, but I'm leaving this bug open because these details aren't there: the stroke looked bad for some reason when it was changed to 2px, there's no texture on the board background, and we're still using our original counters.  Our Start Over button is also bigger than yours, but we've sort of standardized on this button size so we'll probably leave that as-is unless you object.

I think we're leaning towards using a new game screen instead of placing options in the sidebar, though.
Comment 14 Michael Catanzaro 2014-09-15 20:05:01 UTC
Created attachment 286231 [details]
screenshot of current implementation (thanks to Robert and Iulian)
Comment 15 Iulian Radu 2014-09-15 21:48:17 UTC
Created attachment 286237 [details] [review]
Set grid width stroke to 2px and apply texture to background.
Comment 16 Michael Catanzaro 2014-09-15 22:28:13 UTC
Review of attachment 286237 [details] [review]:

Hm, something's wrong with the background: I don't see any green at all unless I open the image in Firefox. Sometimes Inkscape and Firefox display SVGs differently than librsvg, unfortunately....
Comment 17 Michael Catanzaro 2014-09-15 22:28:32 UTC
Created attachment 286241 [details]
screenshot
Comment 18 Michael Catanzaro 2014-09-15 22:31:10 UTC
Also, it'd be good to do this in two separate patches: one to change the stroke width, and one to change the backgrounds. They're really unrelated issues.
Comment 19 Iulian Radu 2014-09-15 23:05:39 UTC
Created attachment 286243 [details] [review]
Set grid width stroke to 2px.

I can't figure out what's wrong with the background. Now I can't even see it green on Allan's mockup even after downloading the svg again. I'll leave it to the design team unless I figure it out in the meanwhile.
Comment 20 Michael Catanzaro 2014-09-15 23:26:52 UTC
Comment on attachment 286243 [details] [review]
Set grid width stroke to 2px.

Thanks!
Comment 21 Arnaud B. 2014-09-16 11:23:44 UTC
Created attachment 286284 [details] [review]
Rework game-view.vala.

Here is a patch I wanted to do for some times, and that is quite helped with tests I did on Taquin, that has similar parts of code. It does more than one thing, but it’s not easy to make them independent. It notably corrects the drawing of the lines (including a new GRID_BORDER parameter set to 3), but is mainly code corrections.
Comment 22 Michael Catanzaro 2014-09-16 13:17:51 UTC
Review of attachment 286284 [details] [review]:

Yeah, this looks better, thanks!

::: src/game-view.vala
@@ +22,3 @@
+    private int y_offset { get { return (get_allocated_height () - board_size) / 2; }}
+
+    private void calculate ()

Functions go beneath the constructor. In this case, directly beneath the constructor, above draw where it's used, would be perfect.

@@ +290,3 @@
     public override bool button_press_event (Gdk.EventButton event)
     {
+        if (event.button == 1 || event.button == 3)

Gross, do we really not have enums for these? I guess 3 is a right click. Can you split this change to a different patch, just so that it's easier to find in the commit history?
Comment 23 Michael Catanzaro 2014-09-16 13:39:02 UTC
Remaining tasks:

(In reply to comment #11)
>  * Added a bit of texture to the board background
>  * Used some gradients and shadow on the counters
Comment 24 Arnaud B. 2014-09-16 14:17:35 UTC
Created attachment 286299 [details] [review]
Rework game-view.vala.

(In reply to comment #22)
> Functions go beneath the constructor. In this case, directly beneath the
> constructor, above draw where it's used, would be perfect.

Like this?

(In reply to comment #23)
> Remaining tasks:
> 
> (In reply to comment #11)
> >  * Added a bit of texture to the board background
> >  * Used some gradients and shadow on the counters

If we want a texture, it should be done in a *separate* file than as background of the one with the tiles’ theme. It’s impossible with the actual way to have a correct function that “changes the background” for highlighting (hints, mouse hover, keyboard moves, etc.).
Comment 25 Michael Catanzaro 2014-09-16 15:17:57 UTC
Comment on attachment 286299 [details] [review]
Rework game-view.vala.

M-hmm.

Attachment 286299 [details] pushed as 27ab95f - Rework game-view.vala.
Comment 26 Arnaud B. 2014-09-18 15:02:31 UTC
Created attachment 286507 [details] [review]
Better drawing function.

There’s more than one bug in my previous patch, that are not visible with the theme set in it, but that reveals themselves when you change for example BORDER_GRID to 30. Here is a better function. It notably makes the drawing of the background inside the code instead of as the background of the tilesets.
Comment 27 Arnaud B. 2014-09-18 15:17:02 UTC
Created attachment 286509 [details] [review]
Rename main code files.

Patch unrelated with this bug, but as it’s quite difficult in Gedit to find Iagno’s game-view.vala & game.vala, I suggest renaming the main code files to iagno-main.vala, iagno-view.vala & iagno-game.vala.
Comment 28 Michael Catanzaro 2014-09-18 15:38:48 UTC
Review of attachment 286507 [details] [review]:

OK, except:

::: src/game-view.vala
@@ +69,3 @@
     public GameView ()
     {
+        double_buffered = false;

You can't do this because it won't work in Wayland.  I'm surprised there wasn't a compiler warning for it.
Comment 29 Michael Catanzaro 2014-09-18 15:41:08 UTC
Review of attachment 286509 [details] [review]:

I know it's confusing if you work on multiple games at once, but I don't really like this... especially since you've renamed some of the files but not others.

This naming convention works for games with short names, but what would you do for something like four-in-a-row: use a weird abbreviation like fiar-game?
Comment 30 Arnaud B. 2014-09-19 15:33:37 UTC
Created attachment 286640 [details] [review]
Better drawing function.

Here is the update and rebase.

(In reply to comment #29)
> This naming convention works for games with short names, but what would you do
> for something like four-in-a-row: use a weird abbreviation like fiar-game?

Yes, that’s the name of the files in my wip vala rewrite, as it’s completely predictable.
Comment 31 Michael Catanzaro 2014-09-19 19:39:04 UTC
OK, you can rename the files in another bug if you really want to, as long as you change them all. (Thanks for working on a Vala version!)
Comment 32 Michael Catanzaro 2015-01-25 22:07:03 UTC
Long bug, time to summarize the remaining work:

* Our green background doesn't have any texture (and 
* Our game pieces don't look like Allan's
Comment 33 Arnaud B. 2015-04-14 14:10:23 UTC
Created attachment 301552 [details] [review]
Think rounded square.

Using this bug for asking advices about some (more) themes changes, adding rounded shapes. I’m quite happy with this patch, notably with the “Classic” theme, but I’m not sure I don’t play too much with the “Black and White” and “Adwaita” ones. An idea about that ?
Comment 34 Arnaud B. 2015-05-01 21:53:15 UTC
Created attachment 302738 [details] [review]
Radius 9 for some themes.

I pushed the previous patch without the (big) changes to “Black and White” and “Adwaita”. Here is a patch to test these.
Comment 35 GNOME Infrastructure Team 2018-05-22 12:27:42 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/iagno/issues/4.