summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2022-06-15 13:19:30 +0200
committerFlorian Müllner <fmuellner@gnome.org>2022-08-10 19:53:21 +0200
commit0f09f2abc798e2878d95199d44a1d4464733a156 (patch)
tree15c95f7028da7af9a3699e8ed2b33d2cff864b4d
parent9b1ff511ea849f7f317c520f8cb74a760761b3a4 (diff)
downloadgnome-shell-sass-0f09f2abc798e2878d95199d44a1d4464733a156.tar.gz
theme: Tweak OSK style
Add latched keys a distinct color again (mainly for alt/ctrl being notoriously active), and tweak the suggestions box sizes so there are no size jumps between an empty and a populated suggestions box. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2278>
-rw-r--r--widgets/_keyboard.scss12
1 files changed, 9 insertions, 3 deletions
diff --git a/widgets/_keyboard.scss b/widgets/_keyboard.scss
index 91d9a3d..1dc6b95 100644
--- a/widgets/_keyboard.scss
+++ b/widgets/_keyboard.scss
@@ -61,6 +61,12 @@ $default_key_bg_color: if($variant=='light', darken($key_bg_color, 11%), darken(
&:active { @include keyboard_key(active, $default_key_bg_color, $osd_fg_color);}
&:checked { @include keyboard_key(checked, $default_key_bg_color, $osd_fg_color);}
border-radius: $key_border_radius;
+
+ // keys that may be latched: ctrl/alt/shift
+ &:latched {
+ border-color: lighten($selected_bg_color, 5%);
+ background-color: $selected_bg_color;
+ }
}
// enter key is suggested-action
@@ -130,9 +136,9 @@ $default_key_bg_color: if($variant=='light', darken($key_bg_color, 11%), darken(
// suggestions
.word-suggestions {
- @include fontsize($base_font_size + 3);
+ @include fontsize($base_font_size + 1);
spacing: 12px;
- min-height: 20pt;
+ min-height: 17pt;
padding: $base_padding*2;
color: $osd_fg_color;
@@ -141,7 +147,7 @@ $default_key_bg_color: if($variant=='light', darken($key_bg_color, 11%), darken(
margin: 0 3px;
min-width: 32px;
border-radius: $base_border_radius - 2px;
- padding: $base_padding $base_padding*3;
+ padding: 0px $base_padding*3;
@include keyboard_key(undecorated, $key_bg_color, $osd_fg_color);