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 686734 - express,winxp: Make setup look more like design
express,winxp: Make setup look more like design
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: wizard
unspecified
Other All
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
: 681755 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-10-23 21:54 UTC by Zeeshan Ali
Modified: 2016-03-31 13:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
express,winxp: Make setup look more like design (3.22 KB, patch)
2012-10-23 21:54 UTC, Zeeshan Ali
none Details | Review
express,winxp: Make setup look more like design (5.02 KB, patch)
2012-10-24 21:23 UTC, Zeeshan Ali
none Details | Review
Review page (228.43 KB, image/png)
2012-10-25 09:44 UTC, Christophe Fergeau
  Details
express,winxp: Make setup look more like design (7.90 KB, patch)
2012-11-01 14:22 UTC, Zeeshan Ali
none Details | Review
express,winxp: Make setup look more like design (8.11 KB, patch)
2012-11-01 14:40 UTC, Zeeshan Ali
none Details | Review
express,winxp: Make setup look more like design (7.91 KB, patch)
2012-11-01 17:33 UTC, Zeeshan Ali
committed Details | Review

Description Zeeshan Ali 2012-10-23 21:54:49 UTC
Check patch log
Comment 1 Zeeshan Ali 2012-10-23 21:54:51 UTC
Created attachment 227102 [details] [review]
express,winxp: Make setup look more like design

This patch makes the express installation setup UI looks more like the
latest UI design mockup:

https://github.com/gnome-design-team/gnome-mockups/raw/master/boxes/boxes-install4.png
Comment 2 Christophe Fergeau 2012-10-24 08:49:48 UTC
The vertical positioning of username/password isn't quite right with this patch applied, the mockup shows very little vertical spacing between the entries, with your patch I get more vertical spacing between username and password than between password and product key. The user avatar is also much bigger with your patch than in the mockup. And I'm not sure we should show an avatar at all if we are using the default one?
Comment 3 Christophe Fergeau 2012-10-24 08:52:04 UTC
(NB: there's a duplicate of this bug which was filed some time ago)
Comment 4 Zeeshan Ali 2012-10-24 12:58:39 UTC
(In reply to comment #2)
> The vertical positioning of username/password isn't quite right with this patch
> applied, the mockup shows very little vertical spacing between the entries,
> with your patch I get more vertical spacing between username and password than
> between password and product key. The user avatar is also much bigger with your
> patch than in the mockup.

I'll try to fix these, first 2 should be trivial.

> And I'm not sure we should show an avatar at all if
> we are using the default one?

According to the mockups, we should.

(In reply to comment #3)
> (NB: there's a duplicate of this bug which was filed some time ago)

Yeah, I remembered but I failed to find that bug. :(
Comment 5 Zeeshan Ali 2012-10-24 21:23:20 UTC
Created attachment 227204 [details] [review]
express,winxp: Make setup look more like design

This one fixes the row spacing of labels and entries. I couldn't figure how to tell GtkImage to take a particular number of pixels (setting "pixel-size" prop does not seem to have any effect).
Comment 6 Christophe Fergeau 2012-10-25 09:44:12 UTC
Created attachment 227238 [details]
Review page

The vertical spacing between 'user' and 'password' is still far too much compared to the mockup https://raw.github.com/gnome-design-team/gnome-mockups/master/boxes/boxes-install4.png
Comment 7 Christophe Fergeau 2012-10-25 09:47:51 UTC
Oops, ignore my previous comment, things work much better with your patch actually applied ;)
Comment 8 Christophe Fergeau 2012-10-25 09:57:48 UTC
Either of the change below changed the size of the default icon (but it was far too small)

diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 2f13da9..e3c7c99 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -226,7 +226,8 @@ protected virtual void setup_ui () {
         var avatar = new Gtk.Image.from_icon_name ("avatar-default", 0);
         avatar.halign = Gtk.Align.END;
         avatar.valign = Gtk.Align.CENTER;
-        avatar.pixel_size = 128;
+        //avatar.icon_size = Gtk.IconSize.SMALL_TOOLBAR;
+        avatar.pixel_size = 16;
         setup_hbox.pack_start (avatar, false, false);
         avatar.show_all ();
         fetch_user_avatar.begin (avatar);
[
Comment 9 Christophe Fergeau 2012-10-25 10:04:25 UTC
The current patch looks bad on win7, the avatar is not grouped at all with the username/password.
I think you need to have a grid with 2 columns, icon on the left, the rest on the right, and to make sure the avatar spans the 2 rows corresponding to username/passord, and only these 2 rows. Dunno how convenient it is to achieve :(
Comment 10 Zeeshan Ali 2012-10-25 14:23:24 UTC
(In reply to comment #9)
> The current patch looks bad on win7, the avatar is not grouped at all with the
> username/password.
> I think you need to have a grid with 2 columns, icon on the left, the rest on
> the right, and to make sure the avatar spans the 2 rows corresponding to
> username/passord, and only these 2 rows. Dunno how convenient it is to achieve
> :(

I already tried that but failed to make gtk image decide its size based on the adjust columns and I was getting more space between username and password. I'll give it another shot though. I'm actually surprised that setting pixel_size' works for you cause it didn't for me.
Comment 11 Zeeshan Ali 2012-11-01 14:22:46 UTC
Created attachment 227802 [details] [review]
express,winxp: Make setup look more like design

This version should work. I might want to divide it into multiple patches but first I'd want it to be tested and that it looks better for others too.
Comment 12 Zeeshan Ali 2012-11-01 14:29:51 UTC
Screenshots:

http://static.fi/~zeenix/tmp/boxes-express-xp.png
http://static.fi/~zeenix/tmp/boxes-express-win7.png

Two things:

1. I notice now that I didn't manage to keep same distance between avatar and label on its right the same for both cases. I'll investigate that..

2. I asked Jakub on IRC about avatar and 'Express.." label overlapping vertically:

<zeenix> jimmac: hey, the "Express install" label doesn't overlap with the avatar in the vertical direction here, does it? https://raw.github.com/gnome-design-team/gnome-mockups/master/boxes/boxes-install4.png
<jimmac> zeenix, spanning two columns might be good for german "Bittesindssiesohilflichundwatersiehierundwirinstallieriendiesesding"
Comment 13 Zeeshan Ali 2012-11-01 14:40:56 UTC
Created attachment 227803 [details] [review]
express,winxp: Make setup look more like design

This version should also fix issue#1 in my previous comment.
Comment 14 Alexander Larsson 2012-11-01 16:54:34 UTC
Review of attachment 227803 [details] [review]:

::: src/unattended-installer.vala
@@ +9,2 @@
 private abstract class Boxes.UnattendedInstaller: InstallerMedia {
+    protected const int SETUP_GRID_N_ROWS = 3;

Its not horrible as is, but I would perhaps make this a non-const and increment it each time i added a row to setup_grid in the code. That way it can be used multiple times in the class inheritance
Comment 15 Zeeshan Ali 2012-11-01 17:18:18 UTC
(In reply to comment #14)
> Review of attachment 227803 [details] [review]:
> 
> ::: src/unattended-installer.vala
> @@ +9,2 @@
>  private abstract class Boxes.UnattendedInstaller: InstallerMedia {
> +    protected const int SETUP_GRID_N_ROWS = 3;
> 
> Its not horrible as is, but I would perhaps make this a non-const and increment
> it each time i added a row to setup_grid in the code. That way it can be used
> multiple times in the class inheritance

Yeah. I wonder why GtkGrid doesn't provided num-rows and num-columns props like GtkTable does.
Comment 16 Zeeshan Ali 2012-11-01 17:33:06 UTC
Created attachment 227832 [details] [review]
express,winxp: Make setup look more like design

Replaced the constant with a field as per last review comment.
Comment 17 Alexander Larsson 2012-11-01 17:45:05 UTC
Review of attachment 227832 [details] [review]:

looks good to me

::: src/winxp-installer.vala
@@ +113,2 @@
         key_entry.get_style_context ().add_class ("boxes-product-key-entry");
+        setup_grid.attach (key_entry, 2, setup_grid_n_rows, 1, 1);

Technically you should increment it here too.
Comment 18 Zeeshan Ali 2012-11-01 20:36:10 UTC
Attachment 227832 [details] pushed as e43ffea - express,winxp: Make setup look more like design
Comment 19 Christophe Fergeau 2013-01-23 11:04:58 UTC
*** Bug 681755 has been marked as a duplicate of this bug. ***