[gnome-shell-sass] Js: Use new :icon-name property
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-sass] Js: Use new :icon-name property
- Date: Sun, 10 Jul 2022 12:23:01 +0000 (UTC)
commit 0a78eae82d0e26e4024f362dcc532696489c316b
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Mar 21 16:44:24 2022 +0100
Js: Use new :icon-name property
Now that we have the new convenience property, apply it to all
icon-only buttons.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2254>
widgets/_ibus-popup.scss | 7 +++++--
widgets/_looking-glass.scss | 2 ++
widgets/_message-list.scss | 4 ++++
3 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/widgets/_ibus-popup.scss b/widgets/_ibus-popup.scss
index 28f89f3..8cbaa95 100644
--- a/widgets/_ibus-popup.scss
+++ b/widgets/_ibus-popup.scss
@@ -29,8 +29,11 @@
.horizontal & { padding-left: $base_padding*2; }
}
-.candidate-page-button { padding: $base_padding;}
+.candidate-page-button {
+ padding: $base_padding;
+
+ & StIcon { icon-size: $base_icon_size; }
+}
.candidate-page-button-previous { border-radius: $base_border_radius 0px 0px $base_border_radius;
border-right-width: 0;box-shadow: none;}
.candidate-page-button-next { border-radius: 0px $base_border_radius $base_border_radius 0px;box-shadow:
none;}
-.candidate-page-button-icon { icon-size: $base_icon_size; }
diff --git a/widgets/_looking-glass.scss b/widgets/_looking-glass.scss
index 8639889..146cc29 100644
--- a/widgets/_looking-glass.scss
+++ b/widgets/_looking-glass.scss
@@ -79,6 +79,8 @@
color: $insensitive_fg_color;
&:hover { color: lighten($insensitive_fg_color, 20%); }
&:active { color: darken($insensitive_fg_color, 20%); }
+
+ & StIcon { icon-size: 12px; }
}
}
diff --git a/widgets/_message-list.scss b/widgets/_message-list.scss
index 7f93e81..5196661 100644
--- a/widgets/_message-list.scss
+++ b/widgets/_message-list.scss
@@ -123,6 +123,8 @@
margin: 1px;
&:hover {background-color: transparentize($fg_color, 0.8);}
&:active {background-color: transparentize($fg_color, 0.9);}
+
+ & StIcon { icon-size: $base_icon_size; }
}
// body
@@ -157,6 +159,8 @@
// fix margin for last button
&:last-child:ltr { margin-right: $base_margin*3; }
&:last-child:rtl { margin-left: $base_margin*3; }
+
+ & StIcon { icon-size: $base_icon_size; }
}
// album-art
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]