From e4283f6d48b98e764b988b43bbc86b9d52e6ec94 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:54:43 +0200 Subject: Adding upstream version 43.9. Signed-off-by: Daniel Baumann --- .../gnome-shell-sass/widgets/_quick-settings.scss | 118 +++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 data/theme/gnome-shell-sass/widgets/_quick-settings.scss (limited to 'data/theme/gnome-shell-sass/widgets/_quick-settings.scss') diff --git a/data/theme/gnome-shell-sass/widgets/_quick-settings.scss b/data/theme/gnome-shell-sass/widgets/_quick-settings.scss new file mode 100644 index 0000000..b429a2d --- /dev/null +++ b/data/theme/gnome-shell-sass/widgets/_quick-settings.scss @@ -0,0 +1,118 @@ +.quick-settings { + padding: $base_padding*3; + border-radius: $modal_radius*2.25; + + .icon-button, .button { + padding: $base_padding*1.75; + } +} + +.quick-settings-grid { + spacing-rows: $base_padding*2; + spacing-columns: $base_padding*2; +} + +.quick-toggle { + border-radius: 99px; + min-width: 12em; + max-width: 12em; + min-height: 40px; + border:none; + + &:checked { @include button(default); } + + & > StBoxLayout { spacing: $base_padding; } + + /* Move padding into the box; this is to allow menu arrows + to extend to the border */ + &.button { padding: 0; } + & > StBoxLayout { padding: 0 $base_padding*2; } + &:ltr > StBoxLayout { padding-left: $base_padding*2.5; } + &:rtl > StBoxLayout { padding-right: $base_padding*2.5; } + + .quick-toggle-label { font-weight: bold; } + .quick-toggle-icon, .quick-toggle-arrow { icon-size: $base_icon_size; } +} + +.quick-menu-toggle { + &:ltr > StBoxLayout { padding-right: 0; } + &:rtl > StBoxLayout { padding-left: 0; } + + & .quick-toggle-arrow { + background-color: transparentize($fg_color, 0.9); + padding: $base_padding $base_padding*1.75; + + &:ltr { border-radius: 0 99px 99px 0; } + &:rtl { border-radius: 99px 0 0 99px; } + } +} + +.quick-slider { + & > StBoxLayout { spacing: $base_padding; } + + .slider-bin { + &:focus {@include button(focus);} + min-height: 16px; // slider size + padding: $base_padding; + border-radius: 99px; + } + .quick-toggle-icon { + icon-size: $base_icon_size; + + &:ltr { margin-left: $base_padding; } + &:rtl { margin-right: $base_padding; } + } +} + +.quick-toggle-menu { + background-color: $card_bg_color; + border-radius: $base_border_radius*3; + padding: $base_padding*2; + margin: $base_padding*2 $base_padding*3 0; + + .popup-menu-item > StIcon { -st-icon-style: symbolic; } + + & .header { + spacing-rows: 0.5 * $base_padding; + spacing-columns: $base_padding*2; + padding-bottom: 2 * $base_padding; + + & .icon { + icon-size: $base_icon_size*1.5; // a non-standard symbolic size but ok + border-radius: 999px; + padding: 1.5 * $base_padding; + background-color: lighten($bg_color, 10%); + + &.active { background-color: $selected_bg_color; } + } + + & .title { + @extend %title_3; + } + + & .subtitle { + @extend %caption_heading; + } + } +} + +.quick-toggle-menu-container { +} + +.quick-settings-system-item { + & > StBoxLayout { spacing: 2 * $base_padding; } + + & .power-item { + min-height: 0; + min-width: 0; + + &:insensitive { + @include button(normal); + background-color: transparent; + } + } +} + +.nm-network-item { + .wireless-secure-icon { icon-size: 0.5 * $base_icon_size; } +} -- cgit v1.2.3