summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2021-02-03 12:39:26 +0100
committerMarge Bot <marge-bot@gnome.org>2021-03-02 22:02:56 +0000
commitf31c49c40ed3e34897e6e1fd2b5a0fe6f61ef962 (patch)
treeb442d42b3658f644ce4c2e63a3a934c8a3db4832
parent0d62dadfbc4532953668a976a2585369d753ae01 (diff)
downloadgnome-shell-f31c49c40ed3e34897e6e1fd2b5a0fe6f61ef962.tar.gz
js/appDisplay: Generalize app scrollview CSS
We want to show left/right side pages during navigation, also in FolderViews. Let this scrollview use the same style than the "all apps" one, and generalize the name a bit. This will compress the scrollview horizontally, so there's actual overflow space to show these pages. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1630>
-rw-r--r--data/theme/gnome-shell-sass/widgets/_app-grid.scss2
-rw-r--r--js/ui/appDisplay.js3
2 files changed, 2 insertions, 3 deletions
diff --git a/data/theme/gnome-shell-sass/widgets/_app-grid.scss b/data/theme/gnome-shell-sass/widgets/_app-grid.scss
index bbe721600..0e3c54c92 100644
--- a/data/theme/gnome-shell-sass/widgets/_app-grid.scss
+++ b/data/theme/gnome-shell-sass/widgets/_app-grid.scss
@@ -124,7 +124,7 @@ $app_grid_fg_color: #fff;
}
// Some hacks I don't even know
-.all-apps {
+.apps-scroll-view {
// horizontal padding to make sure scrollbars or dash don't overlap content
padding: 0 88px;
}
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index ca0f9d89d..d4a627fcb 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -137,6 +137,7 @@ var BaseAppView = GObject.registerClass({
// Scroll View
this._scrollView = new St.ScrollView({
+ style_class: 'apps-scroll-view',
clip_to_allocation: true,
x_expand: true,
y_expand: true,
@@ -968,8 +969,6 @@ class AppDisplay extends BaseAppView {
this._pageManager = new PageManager();
this._pageManager.connect('layout-changed', () => this._redisplay());
- this._scrollView.add_style_class_name('all-apps');
-
this._stack = new St.Widget({
layout_manager: new Clutter.BinLayout(),
x_expand: true,