[gnome-shell/wip/carlosg/osk-symbolic-icons: 136/137] theme: Update theming of special OSK keys
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/osk-symbolic-icons: 136/137] theme: Update theming of special OSK keys
- Date: Thu, 20 Feb 2020 04:15:03 +0000 (UTC)
commit e1058c4f8880885a98202f772065ec81307a1a41
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Feb 15 15:49:43 2020 +0100
theme: Update theming of special OSK keys
The icons in those are no longer assets, but symbolic icons.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/2214
data/theme/gnome-shell-sass/widgets/_keyboard.scss | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/widgets/_keyboard.scss
b/data/theme/gnome-shell-sass/widgets/_keyboard.scss
index 1842ebe0d4..f866d77ca9 100644
--- a/data/theme/gnome-shell-sass/widgets/_keyboard.scss
+++ b/data/theme/gnome-shell-sass/widgets/_keyboard.scss
@@ -52,10 +52,6 @@ $default_key_bg_color: if($variant=='light', darken($osd_bg_color, 11%), lighten
// non-character keys
&.default-key {
-
- // size of the icon asset
- background-size: 24px;
-
@include button(normal, $c:$default_key_bg_color);
&:hover, &:checked {@include button(hover, $c: $default_key_bg_color);}
&:active { @include button(active, $c: $default_key_bg_color);}
@@ -63,19 +59,14 @@ $default_key_bg_color: if($variant=='light', darken($osd_bg_color, 11%), lighten
// enter key is suggested-action
&.enter-key {
- background-image: url("resource:///org/gnome/shell/theme/key-enter.svg");
-
@include button(normal, $c:$selected_bg_color, $tc:$selected_fg_color);
&:hover, &:checked { @include button(hover, $c: lighten($selected_bg_color, 3%));}
&:active {@include button(active, $c: darken($selected_bg_color, 2%));}
}
- // key assets
- &.shift-key-lowercase {background-image: url("resource:///org/gnome/shell/theme/key-shift.svg");}
- &.shift-key-uppercase {background-image: url("resource:///org/gnome/shell/theme/key-shift-uppercase.svg");}
- &.shift-key-uppercase:latched {background-image:
url("resource:///org/gnome/shell/theme/key-shift-latched-uppercase.svg");}
- &.hide-key {background-image: url("resource:///org/gnome/shell/theme/key-hide.svg");}
- &.layout-key {background-image: url("resource:///org/gnome/shell/theme/key-layout.svg");}
+ &.shift-key-uppercase { color: $selected_bg_color }
+
+ StIcon { icon-size: 1.125em; }
}
// long press on a key popup
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]