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 687110 - Improve the button insensitive style
Improve the button insensitive style
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.7.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks: 685307
 
 
Reported: 2012-10-29 12:48 UTC by Allan Day
Modified: 2012-10-30 12:43 UTC
See Also:
GNOME target: ---
GNOME version: 3.7/3.8


Attachments
Patch (2.16 KB, patch)
2012-10-29 16:20 UTC, Stéphane Démurget
none Details | Review
Second try (3.04 KB, patch)
2012-10-29 18:51 UTC, Stéphane Démurget
accepted-commit_now Details | Review
Third try (2.92 KB, patch)
2012-10-30 12:11 UTC, Stéphane Démurget
committed Details | Review

Description Allan Day 2012-10-29 12:48:35 UTC
The current insensitive style for buttons needs to be improved. Right now we just change the text color: this doesn't make it clear that the button is actually insensitive.

Instead of just changing the text color, we should make the button background completely transparent. We should also make the text color the same as the border color:

https://dl.dropbox.com/u/5031519/gnome-shell/login/1-incomplete.png

This style should apply to modal dialog buttons, notification buttons, and the login button.
Comment 1 Giovanni Campagna 2012-10-29 14:53:13 UTC
Why is this under the keyboard component?
Anyway, it's all CSS, so I'm marking this gnome-love. Relevant classes are .modal-dialog-button and .notification-button.
Comment 2 Allan Day 2012-10-29 15:12:35 UTC
(In reply to comment #1)
> Why is this under the keyboard component?

Oops. Fixed now.
Comment 3 Stéphane Démurget 2012-10-29 16:20:05 UTC
Created attachment 227552 [details] [review]
Patch
Comment 4 Stéphane Démurget 2012-10-29 16:22:13 UTC
This is what it looks like in the various places (do not take care of the password entry, this is not in this patch):

http://zzrough.free.fr/files/public/gnome-shell-687110-Improve-the-button-insensitive-style/
Comment 5 Allan Day 2012-10-29 16:54:15 UTC
(In reply to comment #4)
> This is what it looks like in the various places (do not take care of the
> password entry, this is not in this patch):
> 
> http://zzrough.free.fr/files/public/gnome-shell-687110-Improve-the-button-insensitive-style/

Thanks for the screenshots, Stéphane, they're really helpful. I've discussed them with Jimmac, and there's a few changes we'd like to suggest. First, I think that the border needs to be 1px wide rather than 2px. Second, we probably need a subtle background: try the same color as the border, but at 10% opacity?
Comment 6 Stéphane Démurget 2012-10-29 18:51:08 UTC
Created attachment 227573 [details] [review]
Second try

This also includes the rebalanced brightness of normal borders (brighter on cancel to match the mockup), the 1px border, the slight background opacity.

Jimmac chose v3 (http://zzrough.free.fr/files/public/gnome-shell-687110-Improve-the-button-insensitive-style/button-in-login-dialog-3.jpg) so I've gone for this one. Note that Lapo preferred a more opaque one, but I find the text difficult to read.

I also switched to shorthand notation to emphasis only the border width is changed on button focus/hover (except the login-dialog default button). This might be a separate enhancement, but at least this is clearly shown in the CSS.
Comment 7 Giovanni Campagna 2012-10-29 18:58:53 UTC
Review of attachment 227573 [details] [review]:

If this is what the designers chose, looks fine to commit.
Comment 8 Allan Day 2012-10-30 10:58:26 UTC
(In reply to comment #7)
> Review of attachment 227573 [details] [review]:
> 
> If this is what the designers chose, looks fine to commit.

I've tested this and it looks good. Just one question: it seems like this adds insensitive styles for a whole bunch of things, including dash-search-button, notification-button, and more - are we sure that these buttons have an insensitive state? If they do, the patch seems sane. Otherwise, it's unnecessary additions.
Comment 9 Stéphane Démurget 2012-10-30 12:11:20 UTC
Created attachment 227630 [details] [review]
Third try

I deliberately added those for homogeneity (all buttons have rules for the normal, :hover, :selected/:focus :active/:pressed, but not for :insensitive).

"notification-button" was already there, so I've removed the extra rules.
Comment 11 Allan Day 2012-10-30 12:43:51 UTC
Pushed to master. Thanks for the great work, Stéphane!