gnome-shell-dark-theme/gnome-shell-sass/widgets/_quick-settings.scss

216 lines
4.9 KiB
SCSS
Raw Permalink Normal View History

.quick-settings {
2024-03-25 13:34:36 -04:00
padding: $base_padding * 3;
border-radius: $modal_radius * 2.25;
.icon-button, .button {
2024-03-25 13:34:36 -04:00
padding: $base_padding * 1.75;
}
}
.quick-settings-grid {
2024-03-25 13:34:36 -04:00
spacing-rows: $base_padding * 2;
spacing-columns: $base_padding * 2;
}
.quick-toggle, .quick-menu-toggle {
2024-03-25 13:34:36 -04:00
border-radius: $forced_circular_radius;
min-width: 12em;
max-width: 12em;
2024-03-25 13:34:36 -04:00
min-height: $scalable_icon_size * 3; // use icon size so the button scales
border:none;
}
.quick-toggle {
2024-03-25 13:34:36 -04:00
background-color: none;
&:checked { @extend %default_button;}
2024-03-25 13:34:36 -04:00
& > StBoxLayout { spacing: $base_padding * 1.5; }
/* Move padding into the box; this is to allow menu arrows
to extend to the border */
&.button { padding: 0; }
2024-03-25 13:34:36 -04:00
& > StBoxLayout { padding: 0 $base_padding * 2; }
&:ltr > StBoxLayout { padding-left: $base_padding * 2.5; }
&:rtl > StBoxLayout { padding-right: $base_padding * 2.5; }
.quick-toggle-title { font-weight: bold; }
& StBoxLayout > .quick-toggle-subtitle {
2024-03-25 13:34:36 -04:00
@extend %caption;
font-weight: normal;
}
2024-03-25 13:34:36 -04:00
.quick-toggle-icon { icon-size: $scalable_icon_size; }
}
.quick-menu-toggle {
& .quick-toggle {
min-width: auto;
max-width: auto;
2024-03-25 13:34:36 -04:00
&:ltr { border-radius: $forced_circular_radius 0 0 $forced_circular_radius; }
&:ltr > StBoxLayout { padding-right: $scaled_padding * 1.5; }
&:rtl { border-radius: 0 $forced_circular_radius $forced_circular_radius 0; }
&:rtr > StBoxLayout { padding-left: $scaled_padding * 1.5; }
2024-03-25 13:34:36 -04:00
&:ltr:last-child { border-radius: $forced_circular_radius; }
&:rtl:last-child { border-radius: $forced_circular_radius; }
}
& .quick-toggle-arrow {
2024-03-25 13:34:36 -04:00
padding: $scaled_padding $scaled_padding * 1.75;
border-width: 0;
2023-10-09 22:24:14 -04:00
border-color: transparentize($fg_color, .75);
&:checked {
2024-03-25 13:34:36 -04:00
@extend %default_button;
2024-09-19 20:40:52 -04:00
border-color: $accent_borders_color;
}
&:ltr {
2024-03-25 13:34:36 -04:00
border-radius: 0 $forced_circular_radius $forced_circular_radius 0;
border-left-width: 1px;
}
&:rtl {
2024-03-25 13:34:36 -04:00
border-radius: $forced_circular_radius 0 0 $forced_circular_radius;
border-right-width: 1px;
}
}
}
.quick-slider {
& > StBoxLayout { spacing: $base_padding; }
.icon-button { padding: $base_padding; }
.slider-bin {
&:focus {@include button(focus);}
padding: $base_padding;
2024-03-25 13:34:36 -04:00
border-radius: $forced_circular_radius;
}
}
.quick-toggle-menu {
2024-03-25 13:34:36 -04:00
@extend %card;
2024-03-25 13:34:36 -04:00
&:insensitive {
// override insensitive style on submenu
@include button(normal);
}
border-radius: $base_border_radius * 3;
2024-03-25 13:34:36 -04:00
margin: $base_padding * 2 $base_padding * 3 0;
2024-03-25 13:34:36 -04:00
.popup-menu-item > StIcon {
-st-icon-style: symbolic;
icon-size: $scalable_icon_size;
}
& .header {
2024-03-25 13:34:36 -04:00
spacing-rows: $base_padding * 0.5;
spacing-columns: $base_padding * 2;
padding-bottom: $base_padding * 2;
& .icon {
2024-03-25 13:34:36 -04:00
icon-size: $medium_scalable_icon_size;
border-radius: $forced_circular_radius;
padding: 1.5 * $base_padding;
background-color: transparentize($fg_color, 0.8);
&.active {
2024-09-19 20:40:52 -04:00
background-color: -st-accent-color;
color: -st-accent-fg-color;
}
2024-03-25 13:34:36 -04:00
// draw hc outline
@if $contrast == 'high' {
@include draw_hc_inset();
&.active {
@include draw_hc_inset($no_inset: true);
}
}
}
& .title {
@extend %title_3;
}
& .subtitle {
@extend %caption_heading;
}
}
}
.quick-toggle-menu-container {
}
.quick-settings-system-item {
2024-03-25 13:34:36 -04:00
& > StBoxLayout { spacing: $base_padding * 2; }
& .power-item {
min-height: 0;
min-width: 0;
&:insensitive {
@include button(normal);
background-color: transparent;
}
}
}
.nm-network-item {
2024-03-25 13:34:36 -04:00
.wireless-secure-icon { icon-size: $scalable_icon_size * 0.5; } // half-size symbolic
}
.bt-device-item {
.popup-menu-icon { -st-icon-style: symbolic; }
}
.bt-menu-placeholder.popup-menu-item {
@extend %title_4;
text-align: center;
padding: 2em 4em;
}
.device-subtitle { color: transparentize($fg_color, 0.5); }
2023-10-09 22:24:14 -04:00
.keyboard-brightness-level {
spacing: $base_padding;
2024-03-25 13:34:36 -04:00
.button:checked { @extend %default_button; }
2023-10-09 22:24:14 -04:00
}
// background apps
.background-apps-quick-toggle {
2024-03-25 13:34:36 -04:00
min-height: to_em(40px);
background-color: transparent;
2024-03-25 13:34:36 -04:00
& StIcon { icon-size: $scalable_icon_size !important; }
}
.background-app-item {
& .title { @extend %heading; }
& .subtitle { @extend %caption; }
& .popup-menu-icon {
icon-size: $large_icon_size !important;
-st-icon-style: regular !important;
}
2024-03-25 13:34:36 -04:00
& .icon-button {
padding: $base_padding;
2024-03-25 13:34:36 -04:00
// override some background colors since it's a button on an already styled background
// FIXME: may need a generic drawing method for button in menu item in future
background-color: transparentize($fg_color, 0.87);
&:hover { background-color: transparentize($fg_color, 0.78);}
&:active { background-color: transparentize($fg_color, 0.69);}
}
2023-10-09 22:24:14 -04:00
& .spinner {
padding: $base_padding;
}
&.popup-inactive-menu-item { color: $fg_color; }
}