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 731214 - Simplify new game screen
Simplify new game screen
Status: RESOLVED FIXED
Product: gnome-sudoku
Classification: Applications
Component: general
git master
Other Linux
: High enhancement
: ---
Assigned To: gnome-sudoku-maint
gnome-sudoku-maint
Depends on:
Blocks:
 
 
Reported: 2014-06-04 14:28 UTC by Michael Catanzaro
Modified: 2014-06-24 17:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simplify New Game Screen (17.16 KB, patch)
2014-06-11 13:24 UTC, Parin Porecha
needs-work Details | Review
Simplify New Game Screen (17.30 KB, patch)
2014-06-12 10:32 UTC, Parin Porecha
committed Details | Review

Description Michael Catanzaro 2014-06-04 14:28:02 UTC
The current new game screen with the four Sudoku grids is fine, but it'd be nice to implement Allan's simper design for this screen: https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/e807c525e86729c5ea2b77f371cb012a9c019142/games/sudoku/sudoku-wireframes.png
Comment 1 Michael Catanzaro 2014-06-05 15:03:41 UTC
When implementing this design, we decided to reverse the order of the difficulty levels such that Easy appears on top and Very Hard on the bottom.
Comment 2 Michael Catanzaro 2014-06-05 15:25:10 UTC
The icon to use for the back button is "go-previous-symbolic"
Comment 3 Parin Porecha 2014-06-11 13:24:55 UTC
Created attachment 278268 [details] [review]
Simplify New Game Screen

The updated New Game screen looks like this - http://i.imgur.com/7X3z5DL.png
Comment 4 Mario Wenzel 2014-06-11 17:18:21 UTC
Review of attachment 278268 [details] [review]:

Yeah, removing code :)

Code that isn't written, can't have bugs. :)

Looks fine overall. Good Work.

::: data/gnome-sudoku.ui
@@ +129,3 @@
+                                <property name="use_underline">True</property>
+                                <property name="label" translatable="yes">_Hard</property>
+                                <property name="action-name">app.start-game</property>

I am not good with the UI stuff. Does this work with the mnemonics and stuff? Have you tried navigating this with the keyboard.

@@ +156,3 @@
+                        <property name="expand">True</property>
+                        <property name="fill">True</property>
+                        <!--<property name="padding">20</property>-->

The comment?

::: src/gnome-sudoku.vala
@@ +281,3 @@
+    private void start_game_cb (SimpleAction action, Variant? difficulty)
+    {
+        var selected_difficulty = (DifficultyCategory) difficulty.get_int32 ();

Can we add a comment here, where this comes from and that we sadly can't have the enum in the .ui-file. Could we also comment that in the ui-file, that the values correspond to the enum in this class?

Whenever we have such dependencies that we can't solve with a common data structure or type, we want to document that.

:)
Comment 5 Parin Porecha 2014-06-12 10:32:37 UTC
Created attachment 278326 [details] [review]
Simplify New Game Screen

Patch updated.

> ::: data/gnome-sudoku.ui
> @@ +129,3 @@
> +                                <property name="use_underline">True</property>
> +                                <property name="label"
> translatable="yes">_Hard</property>
> +                                <property
> name="action-name">app.start-game</property>
> 
> I am not good with the UI stuff. Does this work with the mnemonics and stuff?
> Have you tried navigating this with the keyboard.

Yes, Alt+{E, M, H, V} work for {Easy, Medium, Hard, Very Hard}
Thats why the underscore before the character to be used as shortcut and 'use_underline' property set to True
 
> @@ +156,3 @@
> +                        <property name="expand">True</property>
> +                        <property name="fill">True</property>
> +                        <!--<property name="padding">20</property>-->
> 
> The comment?

Sorry !
removed.

> ::: src/gnome-sudoku.vala
> @@ +281,3 @@
> +    private void start_game_cb (SimpleAction action, Variant? difficulty)
> +    {
> +        var selected_difficulty = (DifficultyCategory) difficulty.get_int32
> ();
> 
> Can we add a comment here, where this comes from and that we sadly can't have
> the enum in the .ui-file. Could we also comment that in the ui-file, that the
> values correspond to the enum in this class?

Done.
Comment 6 Michael Catanzaro 2014-06-17 14:24:39 UTC
This looks ready to commit; I guess it just got forgotten?
Comment 7 Parin Porecha 2014-06-24 17:18:01 UTC
Comment on attachment 278326 [details] [review]
Simplify New Game Screen

Pushed as 85840ca