[gnome-shell/wip/snwh/more-papercut-fixes: 4/4] theme: Remove redundant spacing variable as its equal to padding
- From: Sam Hewitt <snwh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/snwh/more-papercut-fixes: 4/4] theme: Remove redundant spacing variable as its equal to padding
- Date: Thu, 10 Feb 2022 13:19:14 +0000 (UTC)
commit 6a958bcaadc25fae69a7f472929a3ad1b7cba906
Author: Sam Hewitt <sam snwh org>
Date: Thu Feb 10 09:43:27 2022 -0330
theme: Remove redundant spacing variable as its equal to padding
data/theme/gnome-shell-sass/_common.scss | 4 +---
data/theme/gnome-shell-sass/widgets/_app-grid.scss | 16 ++++++++--------
data/theme/gnome-shell-sass/widgets/_calendar.scss | 20 ++++++++++----------
data/theme/gnome-shell-sass/widgets/_ibus-popup.scss | 2 +-
data/theme/gnome-shell-sass/widgets/_keyboard.scss | 2 +-
.../gnome-shell-sass/widgets/_login-dialog.scss | 2 +-
.../gnome-shell-sass/widgets/_looking-glass.scss | 20 ++++++++++----------
.../gnome-shell-sass/widgets/_message-list.scss | 6 +++---
.../gnome-shell-sass/widgets/_network-dialog.scss | 2 +-
data/theme/gnome-shell-sass/widgets/_osd.scss | 2 +-
data/theme/gnome-shell-sass/widgets/_overview.scss | 2 +-
data/theme/gnome-shell-sass/widgets/_panel.scss | 4 ++--
data/theme/gnome-shell-sass/widgets/_popovers.scss | 2 +-
data/theme/gnome-shell-sass/widgets/_screenshot.scss | 2 +-
.../gnome-shell-sass/widgets/_search-entry.scss | 4 ++--
.../gnome-shell-sass/widgets/_search-results.scss | 8 ++++----
.../gnome-shell-sass/widgets/_switcher-popup.scss | 6 +++---
.../gnome-shell-sass/widgets/_window-picker.scss | 2 +-
.../widgets/_workspace-switcher.scss | 2 +-
.../widgets/_workspace-thumbnails.scss | 2 +-
20 files changed, 54 insertions(+), 56 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss
index c2ef88663f..8c82789188 100644
--- a/data/theme/gnome-shell-sass/_common.scss
+++ b/data/theme/gnome-shell-sass/_common.scss
@@ -28,7 +28,6 @@ $cakeisalie: "This stylesheet is generated, DO NOT EDIT";
// padding, margin and spacing
$base_padding: 6px;
$base_margin: 4px;
-$base_spacing: 6px;
// border radii
$base_border_radius: 8px;
@@ -55,7 +54,6 @@ $text_shadow_color: if($variant == 'light', rgba(255,255,255,0.3), rgba(0,0,0,0.
// icons
$base_icon_size: 1.09em;
-$base_icon_size: 1.09em;
// $base_icon_size: 16px;
// Stage
@@ -98,7 +96,7 @@ stage {
border-width: 1px;
min-height: 22px;
font-weight: bold;
- padding: $base_padding * 0.5 $base_padding * 4;
+ padding: $base_padding*.5 $base_padding*4;
@include button(normal);
&:focus { @include button(focus);}
diff --git a/data/theme/gnome-shell-sass/widgets/_app-grid.scss
b/data/theme/gnome-shell-sass/widgets/_app-grid.scss
index eadcad270e..06e23b6929 100644
--- a/data/theme/gnome-shell-sass/widgets/_app-grid.scss
+++ b/data/theme/gnome-shell-sass/widgets/_app-grid.scss
@@ -4,10 +4,10 @@ $app_icon_size: 96px;
// app icons
.icon-grid {
- row-spacing: $base_spacing * 2;
- column-spacing: $base_spacing * 2;
- max-row-spacing: $base_spacing * 12;
- max-column-spacing: $base_spacing * 12;
+ row-spacing: $base_padding * 2;
+ column-spacing: $base_padding * 2;
+ max-row-spacing: $base_padding * 12;
+ max-column-spacing: $base_padding * 12;
page-padding-top: $base_padding * 4;
page-padding-bottom: $base_padding * 4;
page-padding-left: $base_padding * 2;
@@ -27,7 +27,7 @@ $app_grid_fg_color: #fff;
padding: 10px 8px 5px 8px;
> StBoxLayout {
- spacing: $base_spacing;
+ spacing: $base_padding;
}
}
}
@@ -74,8 +74,8 @@ $app_grid_fg_color: #fff;
}
& .icon-grid {
- row-spacing: $base_spacing * 2;
- column-spacing: $base_spacing * 5;
+ row-spacing: $base_padding * 2;
+ column-spacing: $base_padding * 5;
page-padding-top: 0;
page-padding-bottom: 0;
page-padding-left: 0;
@@ -105,7 +105,7 @@ $app_grid_fg_color: #fff;
// Rename popup for app folders
.rename-folder-popup {
.rename-folder-popup-item {
- spacing: $base_spacing;
+ spacing: $base_padding;
&:ltr, &:rtl { padding: 0 $base_padding * 2; }
}
}
diff --git a/data/theme/gnome-shell-sass/widgets/_calendar.scss
b/data/theme/gnome-shell-sass/widgets/_calendar.scss
index 706080f25c..83ff79ca0f 100644
--- a/data/theme/gnome-shell-sass/widgets/_calendar.scss
+++ b/data/theme/gnome-shell-sass/widgets/_calendar.scss
@@ -7,7 +7,7 @@
// Calendar menu side column
.datemenu-calendar-column {
- spacing: $base_spacing;
+ spacing: $base_padding;
border: none;
border-style: solid;
border-color: $borders_color;
@@ -20,7 +20,7 @@
}
.datemenu-displays-box {
- spacing: $base_spacing;
+ spacing: $base_padding;
}
}
@@ -174,11 +174,11 @@
padding: $base_padding * 2;
.events-box {
- spacing: $base_spacing;
+ spacing: $base_padding;
}
.events-list {
- spacing: 2 * $base_spacing;
+ spacing: 2 * $base_padding;
}
.events-title {
@@ -200,8 +200,8 @@
padding: $base_padding * 2;
.world-clocks-grid {
- spacing-rows: $base_spacing;
- spacing-columns: $base_spacing * 2;
+ spacing-rows: $base_padding;
+ spacing-columns: $base_padding * 2;
}
// title
@@ -239,11 +239,11 @@
padding: $base_padding * 2;
.weather-box {
- spacing: $base_spacing + $base_margin;
+ spacing: $base_padding + $base_margin;
}
.weather-header-box {
- spacing: $base_spacing;
+ spacing: $base_padding;
}
.weather-header {
@@ -256,8 +256,8 @@
}
.weather-grid {
- spacing-rows: $base_spacing;
- spacing-columns: $base_spacing * 2;
+ spacing-rows: $base_padding;
+ spacing-columns: $base_padding * 2;
}
.weather-forecast-time {
diff --git a/data/theme/gnome-shell-sass/widgets/_ibus-popup.scss
b/data/theme/gnome-shell-sass/widgets/_ibus-popup.scss
index 57c020b5d9..28f89f3369 100644
--- a/data/theme/gnome-shell-sass/widgets/_ibus-popup.scss
+++ b/data/theme/gnome-shell-sass/widgets/_ibus-popup.scss
@@ -6,7 +6,7 @@
.candidate-popup-content {
padding: $base_padding;
- spacing: $base_spacing;
+ spacing: $base_padding;
@extend .popup-menu-content;
}
diff --git a/data/theme/gnome-shell-sass/widgets/_keyboard.scss
b/data/theme/gnome-shell-sass/widgets/_keyboard.scss
index 43d5af8283..dcdcc7b157 100644
--- a/data/theme/gnome-shell-sass/widgets/_keyboard.scss
+++ b/data/theme/gnome-shell-sass/widgets/_keyboard.scss
@@ -94,7 +94,7 @@ $default_key_bg_color: if($variant=='light', darken($key_bg_color, 11%), darken(
-arrow-border-color: lighten($osd_bg_color, 9%);
-arrow-base: 20px;
-arrow-rise: 10px;
- -boxpointer-gap: $base_spacing;
+ -boxpointer-gap: $base_padding;
padding: $base_padding;
.keyboard-key {
diff --git a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
index b159a7f505..c168bb8133 100644
--- a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
+++ b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
@@ -158,7 +158,7 @@
.login-dialog-prompt-layout {
padding-top: 24px;
padding-bottom: 12px;
- spacing: $base_spacing * 2;
+ spacing: $base_padding * 2;
width: 23em;
}
diff --git a/data/theme/gnome-shell-sass/widgets/_looking-glass.scss
b/data/theme/gnome-shell-sass/widgets/_looking-glass.scss
index 04e7167598..8639889e3e 100644
--- a/data/theme/gnome-shell-sass/widgets/_looking-glass.scss
+++ b/data/theme/gnome-shell-sass/widgets/_looking-glass.scss
@@ -8,7 +8,7 @@
border: 1px solid $osd_outer_borders_color;
color: $osd_fg_color;
padding: $base_padding;
- spacing: $base_spacing;
+ spacing: $base_padding;
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.1);
& > #Toolbar {
@@ -16,7 +16,7 @@
padding: $base_padding;
border-radius: 0;
background-color: transparent;
- spacing: $base_spacing;
+ spacing: $base_padding;
.lg-toolbar-button {
padding: $base_padding $base_padding*2;
@@ -27,7 +27,7 @@
}
.labels {
- spacing: $base_spacing;
+ spacing: $base_padding;
}
.notebook-tab {
@@ -54,8 +54,8 @@
}
}
- StBoxLayout#EvalBox { padding: 4px; spacing: $base_spacing; padding: $base_padding; }
- StBoxLayout#ResultsArea { spacing: $base_spacing; padding: $base_padding; }
+ StBoxLayout#EvalBox { padding: 4px; spacing: $base_padding; padding: $base_padding; }
+ StBoxLayout#ResultsArea { spacing: $base_padding; padding: $base_padding; }
}
.lg-dialog {
@@ -88,7 +88,7 @@
}
.lg-obj-inspector-title {
- spacing: $base_spacing;
+ spacing: $base_padding;
}
.lg-obj-inspector-button {
@@ -103,7 +103,7 @@
.lg-extensions-list {
padding: $base_padding;
- spacing: $base_spacing;
+ spacing: $base_padding;
}
.lg-extension {
@@ -116,7 +116,7 @@
}
.lg-extension-meta {
- spacing: $base_spacing;
+ spacing: $base_padding;
}
// Inspector
@@ -128,7 +128,7 @@
}
.lg-debug-flag-button {
- StLabel { padding: $base_spacing, 2 * $base_spacing; }
+ StLabel { padding: $base_padding, 2 * $base_padding; }
color: $fg_color;
&:hover { color: lighten($fg_color, 20%); }
@@ -136,7 +136,7 @@
}
.lg-debug-flags-header {
- padding-top: 2 * $base_spacing;
+ padding-top: 2 * $base_padding;
padding: $base_padding;
@extend %title_2;
}
diff --git a/data/theme/gnome-shell-sass/widgets/_message-list.scss
b/data/theme/gnome-shell-sass/widgets/_message-list.scss
index d5d1ef4262..11fe5228bf 100644
--- a/data/theme/gnome-shell-sass/widgets/_message-list.scss
+++ b/data/theme/gnome-shell-sass/widgets/_message-list.scss
@@ -22,7 +22,7 @@
.message-list-sections {
- spacing: $base_spacing;
+ spacing: $base_padding;
margin: 0;
padding-bottom: $base_padding;
@@ -33,7 +33,7 @@
.message-list-section,
.message-list-section-list {
- spacing: $base_spacing;
+ spacing: $base_padding;
}
// do-not-disturb + clear button
@@ -41,7 +41,7 @@
// NOTE: remove the padding if notification_bubble could remove margin for drop shadow
padding: $base_padding;
margin: 0;
- spacing: $base_spacing;
+ spacing: $base_padding;
.dnd-button {
// We need this because the focus outline isn't inset like for the buttons
diff --git a/data/theme/gnome-shell-sass/widgets/_network-dialog.scss
b/data/theme/gnome-shell-sass/widgets/_network-dialog.scss
index b3ffe90276..7fc63fb14d 100644
--- a/data/theme/gnome-shell-sass/widgets/_network-dialog.scss
+++ b/data/theme/gnome-shell-sass/widgets/_network-dialog.scss
@@ -71,7 +71,7 @@
// icons in list
.nm-dialog-icon { icon-size: $base_icon_size; }
-.nm-dialog-icons { spacing: $base_spacing * 2; }
+.nm-dialog-icons { spacing: $base_padding * 2; }
// no networks
.no-networks-label { color: $insensitive_fg_color; }
diff --git a/data/theme/gnome-shell-sass/widgets/_osd.scss b/data/theme/gnome-shell-sass/widgets/_osd.scss
index a964ca87a1..b5ac47b3c6 100644
--- a/data/theme/gnome-shell-sass/widgets/_osd.scss
+++ b/data/theme/gnome-shell-sass/widgets/_osd.scss
@@ -6,7 +6,7 @@ $osd_levelbar_height:8px;
@extend %osd_panel;
@extend %heading;
text-align: center;
- spacing: $base_spacing * 2; // 12px
+ spacing: $base_padding * 2; // 12px
margin: $base_margin * 8; // 32px
min-width: 64px;
min-height: 64px;
diff --git a/data/theme/gnome-shell-sass/widgets/_overview.scss
b/data/theme/gnome-shell-sass/widgets/_overview.scss
index c593cebc4e..d8e70eaf22 100644
--- a/data/theme/gnome-shell-sass/widgets/_overview.scss
+++ b/data/theme/gnome-shell-sass/widgets/_overview.scss
@@ -1,7 +1,7 @@
/* OVERVIEW */
.controls-manager, .secondary-monitor-workspaces {
- spacing: $base_spacing * 2;
+ spacing: $base_padding * 2;
}
#overviewGroup {
diff --git a/data/theme/gnome-shell-sass/widgets/_panel.scss b/data/theme/gnome-shell-sass/widgets/_panel.scss
index c1322b098d..83f49c6a8f 100644
--- a/data/theme/gnome-shell-sass/widgets/_panel.scss
+++ b/data/theme/gnome-shell-sass/widgets/_panel.scss
@@ -150,13 +150,13 @@ $panel_transition_duration: 250ms; // same as the overview transition duration
// App Menu
#appMenu {
- spacing: $base_spacing;
+ spacing: $base_padding;
.label-shadow { color: transparent; }
}
#appMenu .panel-status-menu-box {
padding: 0 $base_padding;
- spacing: $base_spacing;
+ spacing: $base_padding;
}
diff --git a/data/theme/gnome-shell-sass/widgets/_popovers.scss
b/data/theme/gnome-shell-sass/widgets/_popovers.scss
index 0376d5ccd9..706544aab6 100644
--- a/data/theme/gnome-shell-sass/widgets/_popovers.scss
+++ b/data/theme/gnome-shell-sass/widgets/_popovers.scss
@@ -44,7 +44,7 @@
// menu items
.popup-menu-item {
- spacing: $base_spacing;
+ spacing: $base_padding;
padding: $base_padding*1.5;
margin: 2px 0;
border-radius: $base_border_radius;
diff --git a/data/theme/gnome-shell-sass/widgets/_screenshot.scss
b/data/theme/gnome-shell-sass/widgets/_screenshot.scss
index 1d920d5c94..1f0e217384 100644
--- a/data/theme/gnome-shell-sass/widgets/_screenshot.scss
+++ b/data/theme/gnome-shell-sass/widgets/_screenshot.scss
@@ -1,6 +1,6 @@
// Screenshot UI
.icon-label-button-container {
- spacing: $base_spacing;
+ spacing: $base_padding;
@extend %caption;
StIcon {
diff --git a/data/theme/gnome-shell-sass/widgets/_search-entry.scss
b/data/theme/gnome-shell-sass/widgets/_search-entry.scss
index 409fff0ce9..cb33002f31 100644
--- a/data/theme/gnome-shell-sass/widgets/_search-entry.scss
+++ b/data/theme/gnome-shell-sass/widgets/_search-entry.scss
@@ -10,8 +10,8 @@ $search_entry_height: 36px;
border-color: transparent;
border-radius: $search_entry_height * 0.5; // half the height
color: transparentize($fg_color,0.3);
- margin-top: $base_spacing * 2;
- margin-bottom: $base_spacing;
+ margin-top: $base_padding * 2;
+ margin-bottom: $base_padding;
padding: $base_padding+1 $base_padding+3;
width: $search_entry_width;
diff --git a/data/theme/gnome-shell-sass/widgets/_search-results.scss
b/data/theme/gnome-shell-sass/widgets/_search-results.scss
index 46d39c0bc0..3ece1b44d4 100644
--- a/data/theme/gnome-shell-sass/widgets/_search-results.scss
+++ b/data/theme/gnome-shell-sass/widgets/_search-results.scss
@@ -43,7 +43,7 @@
}
.grid-search-results {
- spacing: $base_spacing * 6;
+ spacing: $base_padding * 6;
}
// Search results with icons
@@ -57,7 +57,7 @@
// content
.list-search-provider-content {
- spacing: $base_spacing * 2;
+ spacing: $base_padding * 2;
// provider labels
.list-search-provider-details {
@@ -69,7 +69,7 @@
// search results list
.list-search-results {
- spacing: $base_spacing;
+ spacing: $base_padding;
}
// search result listitem
@@ -83,7 +83,7 @@
// list item title (with leading icon)
.list-search-result-title {
- spacing: $base_spacing * 2;
+ spacing: $base_padding * 2;
// font-weight: bold;
}
diff --git a/data/theme/gnome-shell-sass/widgets/_switcher-popup.scss
b/data/theme/gnome-shell-sass/widgets/_switcher-popup.scss
index b3144a2198..726b5001ba 100644
--- a/data/theme/gnome-shell-sass/widgets/_switcher-popup.scss
+++ b/data/theme/gnome-shell-sass/widgets/_switcher-popup.scss
@@ -8,7 +8,7 @@ $switcher_border_radius: $modal_radius + 8px;
// the full screen container of the switcher
.switcher-popup {
padding: 0;
- spacing: $base_spacing * 4;
+ spacing: $base_padding * 4;
}
// switcher onscreen panel
@@ -20,7 +20,7 @@ $switcher_border_radius: $modal_radius + 8px;
// container for items in list
.switcher-list-item-container {
- spacing: $base_spacing * 2;
+ spacing: $base_padding * 2;
}
// each item in the list
@@ -36,7 +36,7 @@ $switcher_border_radius: $modal_radius + 8px;
// container of thumbnails
.thumbnail-box {
padding: 2px;
- spacing: $base_spacing;
+ spacing: $base_padding;
}
// window thumbnail itself
diff --git a/data/theme/gnome-shell-sass/widgets/_window-picker.scss
b/data/theme/gnome-shell-sass/widgets/_window-picker.scss
index fa3f191945..e90e3f8e0d 100644
--- a/data/theme/gnome-shell-sass/widgets/_window-picker.scss
+++ b/data/theme/gnome-shell-sass/widgets/_window-picker.scss
@@ -1,6 +1,6 @@
/* Window Picker */
-$window_picker_spacing: $base_spacing; // 6px
+$window_picker_spacing: $base_padding; // 6px
$window_picker_padding: $base_padding * 2; // 12px
$window_thumbnail_label_color: transparentize($osd_bg_color, 0.4);
diff --git a/data/theme/gnome-shell-sass/widgets/_workspace-switcher.scss
b/data/theme/gnome-shell-sass/widgets/_workspace-switcher.scss
index 69cf4148bc..2a30a891a8 100644
--- a/data/theme/gnome-shell-sass/widgets/_workspace-switcher.scss
+++ b/data/theme/gnome-shell-sass/widgets/_workspace-switcher.scss
@@ -18,7 +18,7 @@ $ws_border_radius: $modal_radius + 8px;
background: transparent;
border: none;
border-radius: 0;
- spacing: $base_spacing * 2;
+ spacing: $base_padding * 2;
}
.ws-switcher-box {
diff --git a/data/theme/gnome-shell-sass/widgets/_workspace-thumbnails.scss
b/data/theme/gnome-shell-sass/widgets/_workspace-thumbnails.scss
index 508ac25361..0a1867cc89 100644
--- a/data/theme/gnome-shell-sass/widgets/_workspace-thumbnails.scss
+++ b/data/theme/gnome-shell-sass/widgets/_workspace-thumbnails.scss
@@ -3,7 +3,7 @@
// thumbnails in overview
.workspace-thumbnails {
visible-width: 32px; //amount visible before hover
- spacing: $base_spacing;
+ spacing: $base_padding;
padding: $base_padding;
.workspace-thumbnail {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]