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 786613 - Adwaita: provide a generic sidebar icon and label styling
Adwaita: provide a generic sidebar icon and label styling
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Themes
3.90.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 786612
 
 
Reported: 2017-08-22 13:58 UTC by Jakub Steiner
Modified: 2017-09-05 11:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adwaita: make sidebar styling generic (1.72 KB, patch)
2017-08-22 14:09 UTC, Jakub Steiner
none Details | Review
adwaita: use generic sidebar icon style (728.31 KB, patch)
2017-08-23 20:45 UTC, Jakub Steiner
none Details | Review
adwaita: use generic sidebar icon style (728.49 KB, patch)
2017-08-23 20:54 UTC, Jakub Steiner
none Details | Review
adwaita: use generic sidebar icon style (10.10 KB, patch)
2017-08-24 14:35 UTC, Jakub Steiner
committed Details | Review

Description Jakub Steiner 2017-08-22 13:58:50 UTC
We currently define placessidebar styling for icon and label. Apart from metrics, it also makes the icon semi-opaque to compensate for different weight compared to the text label.

However we have a similar icon + label sidebars in places other than the file chooser. Nautilus uses such a sidebar bar and the new system settings shell does too. It would be nice to simply use a .sidebar-label and .sidebar-icon classes rather than having a narrow scope.
Comment 1 Jakub Steiner 2017-08-22 14:09:19 UTC
Created attachment 358152 [details] [review]
Adwaita: make sidebar styling generic

- allow consumers like system settings shell use the same styling
Comment 2 Lapo Calamandrei 2017-08-22 14:20:52 UTC
Not a great fan of that approach, I see possible abuses all over the place. Won't be better to have a generic sidebar row styling, hence the container of the label and the icon?
Comment 3 Jakub Steiner 2017-08-23 20:45:03 UTC
Created attachment 358270 [details] [review]
adwaita: use generic sidebar icon style
Comment 4 Lapo Calamandrei 2017-08-23 20:50:41 UTC
lgtm, BUT add a comment related to this bug in the scss and in the commit message pls, that is pretty much nonsensical otherwise and I may just kill that :-)
Comment 5 Jakub Steiner 2017-08-23 20:54:52 UTC
Created attachment 358277 [details] [review]
adwaita: use generic sidebar icon style
Comment 6 Lapo Calamandrei 2017-08-24 14:12:12 UTC
looks good, push it and close
Comment 7 Timm Bäder 2017-08-24 14:23:03 UTC
Most of the changes to the .css files look, um, unncecessary...
Comment 8 Lapo Calamandrei 2017-08-24 14:25:40 UTC
indeed, it's just the sass interpreter though I guess, Jakub, how did you generate the css? Have you got sassc installed?
Comment 9 Jakub Steiner 2017-08-24 14:31:43 UTC
My bad. Used the ruby parser. Will regenerate using sassc.
Comment 10 Jakub Steiner 2017-08-24 14:35:32 UTC
Created attachment 358348 [details] [review]
adwaita: use generic sidebar icon style
Comment 11 Matthias Clasen 2017-08-25 15:20:49 UTC
Review of attachment 358348 [details] [review]:

please push this
Comment 12 Jakub Steiner 2017-09-05 11:56:28 UTC
Attachment 358348 [details] pushed as 417d345 - adwaita: use generic sidebar icon style