[gnome-shell] theme: Move .workspace-thumbnail* into _workspace-thumbnails.scss
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] theme: Move .workspace-thumbnail* into _workspace-thumbnails.scss
- Date: Thu, 13 Feb 2020 19:56:14 +0000 (UTC)
commit e206e3ba59622429f26c8759d7d199fd9f6812cd
Author: nana-4 <hnmaigo gmail com>
Date: Mon Jan 20 02:08:42 2020 +0900
theme: Move .workspace-thumbnail* into _workspace-thumbnails.scss
While workspace switcher is an OSD, workspace pager is an overview
panel. So it makes more sense to separate them into different
stylesheets.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/938
data/theme/gnome-shell-sass/_widgets.scss | 1 +
.../widgets/_workspace-switcher.scss | 33 ----------------------
.../widgets/_workspace-thumbnails.scss | 32 +++++++++++++++++++++
data/theme/meson.build | 3 +-
4 files changed, 35 insertions(+), 34 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/_widgets.scss b/data/theme/gnome-shell-sass/_widgets.scss
index 8f28929fc8..87dab2ad72 100644
--- a/data/theme/gnome-shell-sass/_widgets.scss
+++ b/data/theme/gnome-shell-sass/_widgets.scss
@@ -39,6 +39,7 @@
@import 'widgets/search-results';
@import 'widgets/app-grid';
@import 'widgets/dash';
+@import 'widgets/workspace-thumbnails';
// A11y / misc
@import 'widgets/a11y';
@import 'widgets/misc';
diff --git a/data/theme/gnome-shell-sass/widgets/_workspace-switcher.scss
b/data/theme/gnome-shell-sass/widgets/_workspace-switcher.scss
index a6ea83adc9..2fe43806de 100644
--- a/data/theme/gnome-shell-sass/widgets/_workspace-switcher.scss
+++ b/data/theme/gnome-shell-sass/widgets/_workspace-switcher.scss
@@ -34,36 +34,3 @@
border-radius: $base_border_radius + 3px;
color: $selected_fg_color;
}
-
-/* Workspace pager */
-
-// thumbnails in overview
-.workspace-thumbnails {
- @extend %overview_panel;
- visible-width: 32px; //amount visible before hover
- spacing: $base_spacing;
- padding: $base_padding;
-
- border-radius: $modal_radius 0 0 $modal_radius;
- border-right-width: 0;
-
- &:rtl {
- border-radius: 0 $modal_radius $modal_radius 0;
- border-left-width: 0;
- }
-
- // drag and drop indicator
- .placeholder {
- background-image: url("resource:///org/gnome/shell/theme/dash-placeholder.svg");
- background-size: contain;
- height: 24px;
- }
-}
-
-// selected indicator
-.workspace-thumbnail-indicator {
- border: 3px solid $selected_bg_color;
- border-radius: 3px;
- padding: 0px;
- // background-color: transparentize($selected_bg_color, 0.9);
-}
diff --git a/data/theme/gnome-shell-sass/widgets/_workspace-thumbnails.scss
b/data/theme/gnome-shell-sass/widgets/_workspace-thumbnails.scss
new file mode 100644
index 0000000000..da76381535
--- /dev/null
+++ b/data/theme/gnome-shell-sass/widgets/_workspace-thumbnails.scss
@@ -0,0 +1,32 @@
+/* Workspace pager */
+
+// thumbnails in overview
+.workspace-thumbnails {
+ @extend %overview_panel;
+ visible-width: 32px; //amount visible before hover
+ spacing: $base_spacing;
+ padding: $base_padding;
+
+ border-radius: $modal_radius 0 0 $modal_radius;
+ border-right-width: 0;
+
+ &:rtl {
+ border-radius: 0 $modal_radius $modal_radius 0;
+ border-left-width: 0;
+ }
+
+ // drag and drop indicator
+ .placeholder {
+ background-image: url("resource:///org/gnome/shell/theme/dash-placeholder.svg");
+ background-size: contain;
+ height: 24px;
+ }
+}
+
+// selected indicator
+.workspace-thumbnail-indicator {
+ border: 3px solid $selected_bg_color;
+ border-radius: 3px;
+ padding: 0px;
+ // background-color: transparentize($selected_bg_color, 0.9);
+}
diff --git a/data/theme/meson.build b/data/theme/meson.build
index bc1821f36b..b0e08128e1 100644
--- a/data/theme/meson.build
+++ b/data/theme/meson.build
@@ -38,7 +38,8 @@ theme_sources = files([
'gnome-shell-sass/widgets/_switches.scss',
'gnome-shell-sass/widgets/_tiled-previews.scss',
'gnome-shell-sass/widgets/_window-picker.scss',
- 'gnome-shell-sass/widgets/_workspace-switcher.scss'
+ 'gnome-shell-sass/widgets/_workspace-switcher.scss',
+ 'gnome-shell-sass/widgets/_workspace-thumbnails.scss'
])
styles = [
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]