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 668209 - theme - harmonise text sizes and weights
theme - harmonise text sizes and weights
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: Allan Day
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-01-18 19:27 UTC by Allan Day
Modified: 2012-02-29 11:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
initial patch (1.85 KB, patch)
2012-02-17 11:36 UTC, Allan Day
accepted-commit_now Details | Review
another patch (1.33 KB, patch)
2012-02-21 19:48 UTC, Allan Day
none Details | Review
patch - set default text style (5.32 KB, patch)
2012-02-24 09:13 UTC, Allan Day
reviewed Details | Review
path - theme tidying (5.35 KB, patch)
2012-02-24 09:13 UTC, Allan Day
needs-work Details | Review
patch - group contact theme elements together (1.99 KB, patch)
2012-02-24 09:14 UTC, Allan Day
needs-work Details | Review
patch - update modal dialog theming (2.15 KB, patch)
2012-02-24 09:14 UTC, Allan Day
accepted-commit_after_freeze Details | Review
patch - further text style cleanup (3.20 KB, patch)
2012-02-24 09:15 UTC, Allan Day
reviewed Details | Review
patch - set default text style (6.52 KB, patch)
2012-02-25 14:48 UTC, Allan Day
none Details | Review
patch - add sections and cleanup (5.20 KB, patch)
2012-02-25 14:48 UTC, Allan Day
none Details | Review
patch - move contacts theming to its own section (3.17 KB, patch)
2012-02-25 14:49 UTC, Allan Day
none Details | Review
patch - create a common small text style (2.25 KB, patch)
2012-02-25 14:49 UTC, Allan Day
none Details | Review
theme - modal dialog updates (2.41 KB, patch)
2012-02-25 14:50 UTC, Allan Day
none Details | Review
patch - move contact theming to its own section (2.71 KB, patch)
2012-02-25 15:52 UTC, Allan Day
none Details | Review
patch 1 - set default text style (6.52 KB, patch)
2012-02-28 13:18 UTC, Allan Day
none Details | Review
patch 2 - add sections and cleanup (5.20 KB, patch)
2012-02-28 13:19 UTC, Allan Day
accepted-commit_now Details | Review
patch 3 - move contacts to its own section (2.71 KB, patch)
2012-02-28 13:19 UTC, Allan Day
accepted-commit_now Details | Review
patch 4 - set a common small text style (2.25 KB, patch)
2012-02-28 13:20 UTC, Allan Day
needs-work Details | Review
patch 5 - modal dialog updates (2.41 KB, patch)
2012-02-28 13:20 UTC, Allan Day
none Details | Review
patch 1 - set default text style (6.52 KB, patch)
2012-02-28 15:43 UTC, Allan Day
accepted-commit_now Details | Review
patch 2 - add sections and cleanup (3.90 KB, patch)
2012-02-28 15:44 UTC, Allan Day
accepted-commit_now Details | Review
patch 3 - move contacts to its own section (2.71 KB, patch)
2012-02-28 15:44 UTC, Allan Day
accepted-commit_now Details | Review
patch 4 - set a common small text style (3.37 KB, patch)
2012-02-28 15:44 UTC, Allan Day
reviewed Details | Review
patch 5 - modal dialog updates (2.41 KB, patch)
2012-02-28 15:45 UTC, Allan Day
accepted-commit_now Details | Review
modalDialog: Hide button layout by default (1.52 KB, patch)
2012-02-28 16:18 UTC, Florian Müllner
reviewed Details | Review
modalDialog: Hide button layout by default (1.45 KB, patch)
2012-02-28 17:02 UTC, Florian Müllner
committed Details | Review
patch - clean up modal dialog text styles (1.80 KB, patch)
2012-02-29 09:30 UTC, Allan Day
committed Details | Review

Description Allan Day 2012-01-18 19:27:23 UTC
The theme contains a large number of different text styles. They are a bit of a mess right now, with a mixture of sizes sometimes defined using different units (both em and pt are used).

It would be great if we could harmonise the text styles by reducing their number and using the same units. It would also help if we could define them either as shared properties in the CSS or by documenting them somewhere.
Comment 1 Allan Day 2012-02-17 11:36:21 UTC
Created attachment 207845 [details] [review]
initial patch

An initial patch which sets a single shared text style. It makes the app launcher labels a bit bigger in the process.
Comment 2 Florian Müllner 2012-02-17 12:21:27 UTC
Review of attachment 207845 [details] [review]:

Sure.
Comment 3 Allan Day 2012-02-17 16:45:28 UTC
I've experimented with setting shared text styles for the rest of the theme. This has convinced me of two things:

 1. The theme is *really* in need of a cleanup

 2. Trying to clean it up using straight css is almost impossible.

I think we need something like scss.
Comment 4 Jasper St. Pierre (not reading bugmail) 2012-02-17 16:55:48 UTC
(In reply to comment #3)
> I've experimented with setting shared text styles for the rest of the theme.
> This has convinced me of two things:
> 
>  1. The theme is *really* in need of a cleanup
> 
>  2. Trying to clean it up using straight css is almost impossible.
> 
> I think we need something like scss.

We chose CSS because it was better than hardcoding color values in the code. I don't know why CSS isn't good enough (some examples would be nice), but if it isn't, we own the stack, we can change it.
Comment 5 Allan Day 2012-02-18 10:11:24 UTC
Gtk css allows sheets to be imported and named styles to be defined. Is this something that the shell can do too?
Comment 6 Florian Müllner 2012-02-18 13:40:05 UTC
(In reply to comment #5)
> Gtk css allows sheets to be imported and named styles to be defined. Is this
> something that the shell can do too?

Yes and no (@import is supposed to work, we don't have @define-color (atm))
Comment 7 Allan Day 2012-02-21 19:48:45 UTC
Created attachment 208163 [details] [review]
another patch

Here's a slighly updated patch. I did do a bunch of work on this but hit some *ahem* issues. One thing is certain - this patch only scratches the surface.

It would make it easier to clean up the theme if we could set the default text style in the css. Would that be possible?
Comment 8 Florian Müllner 2012-02-21 19:58:32 UTC
(In reply to comment #7)
> It would make it easier to clean up the theme if we could set the default text
> style in the css. Would that be possible?

Yes - text properties are inherited, so you can use

stage {}

(it's already used for the font-family, there's no reason why it shouldn't work for other properties like size, weight, etc.)
Comment 9 Allan Day 2012-02-24 09:13:26 UTC
Created attachment 208321 [details] [review]
patch - set default text style
Comment 10 Allan Day 2012-02-24 09:13:50 UTC
Created attachment 208322 [details] [review]
path - theme tidying
Comment 11 Allan Day 2012-02-24 09:14:16 UTC
Created attachment 208323 [details] [review]
patch - group contact theme elements together
Comment 12 Allan Day 2012-02-24 09:14:42 UTC
Created attachment 208324 [details] [review]
patch - update modal dialog theming
Comment 13 Allan Day 2012-02-24 09:15:06 UTC
Created attachment 208325 [details] [review]
patch - further text style cleanup
Comment 14 Allan Day 2012-02-24 09:22:41 UTC
These five patches are my work so far. They define some shared text styles, including a default style. They also do a small amount of restructuring and add some more comments to break up the theme into sections. There's still plenty to do to clean up the theme, but this feels like a good initial step.

The only user visible changes are very minor alterations in the size of the text. I've also tweaked the padding and colors used in modal dialogs so that they match the mockups. It would be worth trying to land this for 3.4, in my opinion.

I haven't been able to test how these patches affect the various authorisation dialogs or the end session 'you have apps running' dialog.
Comment 15 Florian Müllner 2012-02-24 11:38:11 UTC
Review of attachment 208321 [details] [review]:

Two changes look like they don't belong in this patch, otherwise looks good.

::: data/theme/gnome-shell.css
@@ +1665,2 @@
 .run-dialog-entry {
+    padding-top: 4px;

Unrelated change.

@@ +1710,2 @@
     padding-left: 17px;
+    padding-bottom: 60px;

Dito.
Comment 16 Florian Müllner 2012-02-24 11:54:26 UTC
Review of attachment 208322 [details] [review]:

There's certainly more here than "updating some comments" - not to mention that some of the removals looks plain wrong. Also, the patch does not apply to master ...

::: data/theme/gnome-shell.css
@@ +282,2 @@
 .modal-dialog-button {
+    font-weight: bold;

Unrelated change

@@ -269,2 @@
 .modal-dialog-button {
-    color: white;

Should have been removed in the previous patch

@@ -789,3 @@
-    text-shadow: black 0px 2px 2px;
-    background-image: url("running-indicator.svg");
-    background-size: contain;

Really? In any case, unrelated to this patch.

@@ -803,3 @@
-    background-color: rgba(255,255,255,0.1);
-    text-shadow: black 0px 2px 2px;
-    transition-duration: 100;

Dito.

@@ -813,3 @@
 
-.app-well-menu {
-    font-size: 9pt;

Unrelated change (and: do we really want to use 11pt here?)

@@ -976,3 @@
 .calendar-month-label {
     color: #666666;
-    font-size: 7.5pt;

Again, looks unrelated.
Comment 17 Florian Müllner 2012-02-24 11:56:36 UTC
Review of attachment 208323 [details] [review]:

Moving the contacts stuff looks fine, but the unrelated changes will have to be moved to the patches they belong to.

::: data/theme/gnome-shell.css
@@ -760,3 @@
-    font-size: 8pt;
-    font-weight: bold;
-    color: white;

Unrelated - should be moved into the first patch I guess.

@@ +756,3 @@
 }
 
+.app-well-app.running > .overview-icon {

Ha! So that's where all this stuff went - that part should be in the previous patch.
Comment 18 Florian Müllner 2012-02-24 12:02:58 UTC
Review of attachment 208324 [details] [review]:

The patch looks good to me (though I didn't actually try it); technically this is a UI break, although the changes are minor. I don't think anyone would mind (or honestly: even notice) if the patch is just committed, but check with Owen/Matthias anyway whether you should ask for a freeze break.
Comment 19 Florian Müllner 2012-02-24 12:10:00 UTC
Review of attachment 208325 [details] [review]:

The changes look OK, but I'd prefer the comment changes to go in the "theme tidying" patch.
Comment 20 Allan Day 2012-02-25 14:48:31 UTC
Created attachment 208401 [details] [review]
patch - set default text style
Comment 21 Allan Day 2012-02-25 14:48:59 UTC
Created attachment 208402 [details] [review]
patch - add sections and cleanup
Comment 22 Allan Day 2012-02-25 14:49:31 UTC
Created attachment 208403 [details] [review]
patch - move contacts theming to its own section
Comment 23 Allan Day 2012-02-25 14:49:55 UTC
Created attachment 208404 [details] [review]
patch - create a common small text style
Comment 24 Allan Day 2012-02-25 14:50:18 UTC
Created attachment 208405 [details] [review]
theme - modal dialog updates
Comment 25 Allan Day 2012-02-25 14:56:46 UTC
These new patches are better organised.

There are a couple of issues with the modal dialog patch:

Increasing the padding on modal-dialog-button-box ends up adding space to the run dialog, even though it doesn't have any buttons. I'm not sure what the best thing to do there is - the dialog *should* probably have a close button (since there's no obvious way to exit if you accidentally trigger it).

Also, I have been unable to set the color for all the subject icons that are used in the modal dialogs (so that the password dialog icon is white when it should be grey). It would be good to have a single style class for these icons.

There are also a few dialogs that I haven't been able to test this patch against (mount operation, login).
Comment 26 Allan Day 2012-02-25 15:52:04 UTC
Created attachment 208410 [details] [review]
patch - move contact theming to its own section

Fix a mistake in the 3rd patch.
Comment 27 Allan Day 2012-02-28 13:18:57 UTC
Created attachment 208576 [details] [review]
patch 1 - set default text style
Comment 28 Allan Day 2012-02-28 13:19:28 UTC
Created attachment 208577 [details] [review]
patch 2 - add sections and cleanup
Comment 29 Allan Day 2012-02-28 13:19:52 UTC
Created attachment 208578 [details] [review]
patch 3 - move contacts to its own section
Comment 30 Allan Day 2012-02-28 13:20:17 UTC
Created attachment 208579 [details] [review]
patch 4 - set a common small text style
Comment 31 Allan Day 2012-02-28 13:20:38 UTC
Created attachment 208580 [details] [review]
patch 5 - modal dialog updates
Comment 32 Jasper St. Pierre (not reading bugmail) 2012-02-28 13:23:34 UTC
Review of attachment 208576 [details] [review]:

You're changing a lot of 10.5pt stuff to 11pt. I'm not sure how big of a visual difference there is, but we're technically past the freeze, aren't we? If there's no noticeable difference, go ahead.
Comment 33 Jasper St. Pierre (not reading bugmail) 2012-02-28 13:25:34 UTC
Review of attachment 208577 [details] [review]:

::: data/theme/gnome-shell.css
@@ +670,3 @@
  * padding compensates for this and ensures that the label is vertically
  * centered */
+

We usually don't have whitespace after comments like this one.

@@ +822,3 @@
 }
 
+

Why the double space here?
Comment 34 Jasper St. Pierre (not reading bugmail) 2012-02-28 13:26:05 UTC
Review of attachment 208578 [details] [review]:

Sure.
Comment 35 Jasper St. Pierre (not reading bugmail) 2012-02-28 13:26:59 UTC
Review of attachment 208579 [details] [review]:

::: data/theme/gnome-shell.css
@@ -1944,2 @@
 .prompt-dialog-error-label {
-    font-size: 10pt;

You didn't invent a new style for these, meaning that they'll get the now default 11pt instead.
Comment 36 Jasper St. Pierre (not reading bugmail) 2012-02-28 13:28:10 UTC
Review of attachment 208580 [details] [review]:

How much does this break "The Freeze"?
Comment 37 Allan Day 2012-02-28 15:43:11 UTC
(In reply to comment #32)
> Review of attachment 208576 [details] [review]:
> 
> You're changing a lot of 10.5pt stuff to 11pt. I'm not sure how big of a visual
> difference there is, but we're technically past the freeze, aren't we? If
> there's no noticeable difference, go ahead.

This is mainly to clean up the theme. The visual changes won't be noticed.

(In reply to comment #35)
> Review of attachment 208579 [details] [review]:
> 
> ::: data/theme/gnome-shell.css
> @@ -1944,2 @@
>  .prompt-dialog-error-label {
> -    font-size: 10pt;
> 
> You didn't invent a new style for these, meaning that they'll get the now
> default 11pt instead.

Yep, that's intentional. (Again for cleanup purposes.)

(In reply to comment #36)
> Review of attachment 208580 [details] [review]:
> 
> How much does this break "The Freeze"?

The main difference is the padding, so the dialogs will be a different shape. don't see it being too big an issue. It might be worth checking though.

The problem with this final patch is what it does to the run dialog - it ends up being a bit strange. I think we'll need some other changes before it can be landed.
Comment 38 Allan Day 2012-02-28 15:43:45 UTC
Created attachment 208590 [details] [review]
patch 1 - set default text style
Comment 39 Allan Day 2012-02-28 15:44:15 UTC
Created attachment 208591 [details] [review]
patch 2 - add sections and cleanup
Comment 40 Allan Day 2012-02-28 15:44:31 UTC
Created attachment 208592 [details] [review]
patch 3 - move contacts to its own section
Comment 41 Allan Day 2012-02-28 15:44:48 UTC
Created attachment 208593 [details] [review]
patch 4 - set a common small text style
Comment 42 Allan Day 2012-02-28 15:45:13 UTC
Created attachment 208594 [details] [review]
patch 5 - modal dialog updates
Comment 43 Allan Day 2012-02-28 15:46:01 UTC
Some of the previous patches didn't apply, so here are new versions.

Again, I think the last one needs more discussion before it's merged.
Comment 44 Florian Müllner 2012-02-28 16:18:51 UTC
Created attachment 208607 [details] [review]
modalDialog: Hide button layout by default

For modal dialogs without buttons, the button group still contributes
padding/spacing. To fix that, hide it by default and only show it
when actually adding buttons.

(In reply to comment #37)
> The main difference is the padding, so the dialogs will be a different shape.
> don't see it being too big an issue. It might be worth checking though.
> 
> The problem with this final patch is what it does to the run dialog - it ends
> up being a bit strange. I think we'll need some other changes before it can be
> landed.

This patch should fix the issue with the run-dialog ...
Comment 45 Florian Müllner 2012-02-28 16:20:27 UTC
Review of attachment 208590 [details] [review]:

LGTM
Comment 46 Florian Müllner 2012-02-28 16:20:59 UTC
Review of attachment 208591 [details] [review]:

Sure.
Comment 47 Florian Müllner 2012-02-28 16:23:36 UTC
Review of attachment 208592 [details] [review]:

Looks OK (it also moves the app view stuff, so "group contacts and application theming together" might be a more correct commit message, but I don't really care ;-)
Comment 48 Jasper St. Pierre (not reading bugmail) 2012-02-28 16:35:58 UTC
Review of attachment 208607 [details] [review]:

::: js/ui/modalDialog.js
@@ +94,3 @@
                                  y_align: St.Align.END });
+        // only show button group if buttons are added (via setButtons())
+        this._buttonLayout.hide();

show/hide are going to be deprecated soon, if I remember correctly. Use visible: false in the props hash above as a replacement.

@@ +114,3 @@
+          this._buttonLayout.show();
+        else
+          this._buttonLayout.hide();

this._buttonLayout.visible = buttons.length > 0;
Comment 49 Florian Müllner 2012-02-28 16:36:15 UTC
Review of attachment 208593 [details] [review]:

Minor nitpick, otherwise looks good (I'll leave it to you if you want to practice your rebase skills or just go ahead ;-)

::: data/theme/gnome-shell.css
@@ -680,3 @@
     padding: 4px 12px;
     background-color: rgba(0,0,0,0.5);
-    color: #ffffff;

That line looks like it belongs in the first patch.
Comment 50 Florian Müllner 2012-02-28 17:02:05 UTC
Created attachment 208613 [details] [review]
modalDialog: Hide button layout by default

Hmm, wasn't aware of show/hide going away, but sure ...
Comment 51 Jasper St. Pierre (not reading bugmail) 2012-02-28 17:04:47 UTC
Review of attachment 208613 [details] [review]:

Looks good.
Comment 52 Florian Müllner 2012-02-28 17:04:59 UTC
Review of attachment 208594 [details] [review]:

I'm happy if you are - technically this is a freeze break, so best ask on IRC if you should file a request or just go ahead ...
Comment 53 Florian Müllner 2012-02-28 17:07:49 UTC
Comment on attachment 208613 [details] [review]
modalDialog: Hide button layout by default

Attachment 208613 [details] pushed as 760da64 - modalDialog: Hide button layout by default
Comment 54 Allan Day 2012-02-28 19:08:39 UTC
I've pushed everything except for the modal dialog patch. Bug 670227 seems like a better fit for that so I'll continue with it there.
Comment 55 Allan Day 2012-02-29 09:30:25 UTC
Created attachment 208661 [details] [review]
patch - clean up modal dialog text styles

The patch that I punted to bug 670227 actually had a few changes that are required for the work here.
Comment 56 Florian Müllner 2012-02-29 11:01:39 UTC
Review of attachment 208661 [details] [review]:

Sure, go ahead
Comment 57 Allan Day 2012-02-29 11:25:39 UTC
Thanks Florian.