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 681357 - New world clock dialog - layout issues
New world clock dialog - layout issues
Status: RESOLVED FIXED
Product: gnome-clocks
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Clocks maintainer(s)
Clocks maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-08-07 08:47 UTC by Allan Day
Modified: 2012-08-17 13:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot and mockup (21.09 KB, image/png)
2012-08-07 08:47 UTC, Allan Day
  Details
Layout fixes for alarm dialog (1.93 KB, patch)
2012-08-15 17:56 UTC, Maël Lavault
none Details | Review
Layout fixes for the alarm dialog (2.37 KB, patch)
2012-08-15 18:00 UTC, Maël Lavault
none Details | Review
Layout fixes for the alarm dialog (2.65 KB, patch)
2012-08-16 00:14 UTC, Maël Lavault
none Details | Review
fixes for add world clock dialog & stopwatch (585 bytes, patch)
2012-08-16 15:25 UTC, Emily Gonyer
none Details | Review
Change add-world clock & remove lap button (2.91 KB, patch)
2012-08-16 15:42 UTC, Emily Gonyer
none Details | Review
Fix NewWorldClock dialog alignment (1.73 KB, patch)
2012-08-16 16:25 UTC, Maël Lavault
none Details | Review
Screenshot (8.16 KB, image/png)
2012-08-17 11:09 UTC, Allan Day
  Details
Glade file (4.99 KB, application/x-glade)
2012-08-17 11:10 UTC, Allan Day
  Details

Description Allan Day 2012-08-07 08:47:42 UTC
Created attachment 220517 [details]
screenshot and mockup

There are a bunch of layout issues with the current new world clock dialog. There's a couple of strings that could be tweaked, too. Issues:

 * Title text is too big, should probably read "Add a World Clock" (does this need to be set as the window title?)
 * Too much vertical padding between title and content below
 * "Search for a city of time zone..." looks slightly too far to the left to me, and it doesn't need the "..."
 * Too much vertical padding between the "Search for a" text and the search box
Cancel and Save button aren't right aligned with the search box
 * "Save" should be "Add"

See the attachment for guidance.
Comment 1 Maël Lavault 2012-08-15 17:56:54 UTC
Created attachment 221296 [details] [review]
Layout fixes for alarm dialog

I think i take most of your concern into consideration, the only thing left is to align dialog button with the search entry. I still need to figure out how to do it.
Comment 2 Maël Lavault 2012-08-15 18:00:06 UTC
Created attachment 221297 [details] [review]
Layout fixes for the alarm dialog

I forget to remove the dots...
Comment 3 Maël Lavault 2012-08-16 00:14:47 UTC
Created attachment 221333 [details] [review]
Layout fixes for the alarm dialog

Now entry and button alignment is fine. Please let me know what you think. I left a 5px border between control and window, I don't know what the new standard is (gnome 3 HIG are not complete on this point).
Comment 4 Allan Day 2012-08-16 15:13:11 UTC
I seem to have given this bug the wrong title - updating.

Maël: can you file a new bug and attach your patches there?
Comment 5 Emily Gonyer 2012-08-16 15:25:50 UTC
Created attachment 221414 [details] [review]
fixes for add world clock dialog & stopwatch

Fixes add-world clock dialog box, and removes "Lap" button from stopwatch
Comment 6 Maël Lavault 2012-08-16 15:28:58 UTC
I give the wrong title to my patches too, they fixes the new world clock dialog :p

Emily: Seems to be the wrong patch.
Comment 7 Emily Gonyer 2012-08-16 15:42:56 UTC
Created attachment 221416 [details] [review]
Change add-world clock & remove lap button

Right, trying this again :)

Change add-world clock 

Remove Lap button
Comment 8 Allan Day 2012-08-16 15:52:49 UTC
(In reply to comment #7)
> Created an attachment (id=221416) [details] [review]
> Change add-world clock & remove lap button
> 
> Right, trying this again :)
> 
> Change add-world clock 
> 
> Remove Lap button

Shouldn't this be one patch for each issue?
Comment 9 Maël Lavault 2012-08-16 16:25:32 UTC
Created attachment 221421 [details] [review]
Fix NewWorldClock dialog alignment
Comment 10 Paolo Borelli 2012-08-16 16:35:16 UTC
(In reply to comment #8)
> Shouldn't this be one patch for each issue?

Yes, we discussed this on irc, but splitting was a bit of a pain. So it was committed as is. There is still some work to do on the Stopwatch button and Emily is working on it.


I also committed Mael's last patch which fixes the alignment. Thanks!


I am closing this bug since it is fixed and since the Stopwatch button is another topic (hopefully it will be solved shortly so no need for a bugreport)
Comment 11 Allan Day 2012-08-17 11:07:59 UTC
The padding is still out. There's too much vertical spacing between the heading and the text below, too much between "Search for a city" and the search box, and not enough padding between the controls and the window edge.
Comment 12 Allan Day 2012-08-17 11:09:48 UTC
Created attachment 221582 [details]
Screenshot

Here's a screenshot of a glade file I created with the correct layout.

Note that I've created this as a modal dialog which uses the window title for the "Add a New World Clock" heading. This is because window titles will be reintroduced into modal dialogs for GNOME 3.6.
Comment 13 Allan Day 2012-08-17 11:10:34 UTC
Created attachment 221583 [details]
Glade file

Here's the Glade file, in case you're interested.