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 694100 - OverviewControl: simplify code to add bottom padding
OverviewControl: simplify code to add bottom padding
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: overview
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-02-18 15:26 UTC by Giovanni Campagna
Modified: 2013-02-18 18:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
OverviewControl: simplify code to add bottom padding (3.72 KB, patch)
2013-02-18 15:26 UTC, Giovanni Campagna
needs-work Details | Review
OverviewControl: simplify code to add bottom padding (3.26 KB, patch)
2013-02-18 16:35 UTC, Giovanni Campagna
committed Details | Review

Description Giovanni Campagna 2013-02-18 15:26:55 UTC
All the complexity with a custom actor and a generic container was
just to add some padding below the overview controls. Remove that,
and use CSS instead.
Comment 1 Giovanni Campagna 2013-02-18 15:26:57 UTC
Created attachment 236613 [details] [review]
OverviewControl: simplify code to add bottom padding
Comment 2 Cosimo Cecchi 2013-02-18 15:36:23 UTC
Review of attachment 236613 [details] [review]:

::: data/theme/gnome-shell.css
@@ +630,3 @@
 #overview {
     spacing: 24px;
+    padding-bottom: 30px;

We use 32px everywhere else...

::: js/ui/overviewControls.js
@@ +300,3 @@
+    _init: function(dash, thumbnails, viewSelector) {
+        this.dashSlider = new DashSlider(dash);
+        this.thumbnailsSlider = new ThumbnailsSlider(thumbnails);

Please either keep the sliders private and use dashActor as before, or also rename _dashSlider to dashSlider below (I'd prefer the former).
Comment 3 Giovanni Campagna 2013-02-18 16:35:11 UTC
Created attachment 236624 [details] [review]
OverviewControl: simplify code to add bottom padding

All the complexity with a custom actor and a generic container was
just to add some padding below the overview controls. Remove that,
and use CSS instead.
Comment 4 Cosimo Cecchi 2013-02-18 16:37:15 UTC
Review of attachment 236624 [details] [review]:

Looks good to me, thanks.
Comment 5 Giovanni Campagna 2013-02-18 16:38:13 UTC
Attachment 236624 [details] pushed as a187111 - OverviewControl: simplify code to add bottom padding
Comment 6 Jasper St. Pierre (not reading bugmail) 2013-02-18 18:20:15 UTC
Won't this break centering in Large Text mode?
Comment 7 Cosimo Cecchi 2013-02-18 18:31:28 UTC
Not really, as even before the bottom padding wasn't exactly the same, since it didn't have the spacing added by the overview between the panel and the entry bin, and the entry bin and the view group.
I think overall this allows us more flexibility while keeping the code simple.
If we need to revisit this in the future when we globally fine-tweak overview paddings again, I'd rather start from a clean state.
Comment 8 Jasper St. Pierre (not reading bugmail) 2013-02-18 18:49:11 UTC
Alright, fine.