Merge branch 'main' of github.com:vinceliuice/Colloid-gtk-theme

This commit is contained in:
vinceliuice
2022-10-02 07:32:29 +08:00
15 changed files with 721 additions and 161 deletions

View File

@@ -230,9 +230,7 @@ tab {
} }
.tab-icon-overlay[crashed] { .tab-icon-overlay[crashed] {
list-style-image: none !important; list-style-image: url("../icons/info-symbolic.svg") !important;
top: 0 !important;
inset-inline-end: 0 !important;
} }
/* Close tab button */ /* Close tab button */

View File

@@ -24,10 +24,60 @@ $cakeisalie: "This stylesheet is generated, DO NOT EDIT";
*/ */
// Stage // Stage
stage { // stage {
@include fontsize($font_size); // @include fontsize($font_size);
color: $text; // color: $text;
// }
/* General Typography */
%large_title {
font-weight: 300;
@include fontsize(24);
} }
%title_1 {
font-weight: 800;
@include fontsize(20);
}
%title_2 {
font-weight: 800;
@include fontsize(15);
}
%title_3 {
font-weight: 700;
@include fontsize(15);
}
%title_4 {
font-weight: 700;
@include fontsize(13);
}
%heading {
font-weight: 700;
@include fontsize(11);
}
%caption_heading {
font-weight: 700;
@include fontsize(9);
}
%caption {
font-weight: 400;
@include fontsize(9);
}
%smaller {
font-weight: 400;
@include fontsize(8);
}
%monospace {font-family: monospace;}
%numeric { font-feature-settings: "tnum";}
@import 'widgets-40-0'; @import 'widgets-40-0';
@import 'extensions-40-0'; @import 'extensions-40-0';

View File

@@ -19,6 +19,7 @@
@import 'common/notifications'; @import 'common/notifications';
@import 'common/osd'; @import 'common/osd';
@import 'common/overview'; @import 'common/overview';
@import 'common/quick-settings';
@import 'common/panel'; @import 'common/panel';
@import 'common/popovers'; @import 'common/popovers';
@import 'common/screen-shield'; @import 'common/screen-shield';
@@ -39,5 +40,6 @@
@import 'widgets-40-0/panel'; @import 'widgets-40-0/panel';
@import 'widgets-42-0/popovers'; @import 'widgets-42-0/popovers';
@import 'widgets-40-0/search-entry'; @import 'widgets-40-0/search-entry';
@import 'widgets-42-0/screenshot';
@import 'widgets-40-0/window-picker'; @import 'widgets-40-0/window-picker';
@import 'widgets-40-0/workspace-thumbnails'; @import 'widgets-40-0/workspace-thumbnails';

View File

@@ -21,8 +21,20 @@
padding: 0 $base_padding * 2; padding: 0 $base_padding * 2;
border-radius: $base_radius; border-radius: $base_radius;
border: none; border: none;
@extend %button;
.popup-menu & { .popup-menu & {
@extend %flat_button; @extend %flat_button;
} }
} }
// buttons on OSD elements
// that are undecorated by default and use OSD colors
%osd_button {
@include button(flat-normal, $tc:on($osd));
&:insensitive { @include button(insensitive, $tc:on($osd), $bc:$osd); }
&:focus { @include button(focus, $tc:on($osd), $bc:$osd);}
&:hover { @include button(hover, $tc:on($osd), $bc:$osd);}
&:active { @include button(active, $tc:on($osd), $bc:$osd);}
&:outlined, &:checked { @include button(checked, $tc:on($osd), $bc:$osd);}
}

View File

@@ -21,15 +21,6 @@
} }
} }
.clock-display-box {
spacing: 2px;
.clock {
padding-left: $base_padding * 2;
padding-right: $base_padding * 2;
}
}
// overall menu // overall menu
#calendarArea { #calendarArea {
padding: $base_padding 0; padding: $base_padding 0;
@@ -39,7 +30,7 @@
.datemenu-calendar-column { .datemenu-calendar-column {
spacing: $base_spacing; spacing: $base_spacing;
border: 0 solid $border; border: 0 solid $border;
padding: 0 $base_padding * 2; padding: 0 $base_margin 0 $base_padding * 2;
&:ltr { margin-right: $base_margin * 2; border-left-width: 0; } &:ltr { margin-right: $base_margin * 2; border-left-width: 0; }
&:rtl { margin-left: $base_margin * 2; border-right-width: 0; } &:rtl { margin-left: $base_margin * 2; border-right-width: 0; }
@@ -73,7 +64,7 @@
margin: 0 $base_padding * 2; margin: 0 $base_padding * 2;
text-shadow: none; text-shadow: none;
color: $text-secondary; color: $text-secondary;
border-radius: $menu_radius; border-radius: $base_radius;
&:hover, &:focus { &:hover, &:focus {
background-color: overlay($base, hover); background-color: overlay($base, hover);
@@ -101,10 +92,10 @@
border: none; border: none;
box-shadow: none; box-shadow: none;
background-color: transparent; background-color: transparent;
padding: 0 $base_padding !important; padding: 0;
margin: 0 !important; margin: 0;
text-shadow: none; text-shadow: none;
border-radius: $menu_radius; // border-radius: $base_radius;
// month // month
.calendar-month-label { .calendar-month-label {
@@ -115,7 +106,7 @@
text-shadow: none; text-shadow: none;
@include fontsize($font_size + 1); @include fontsize($font_size + 1);
&:focus {} // &:focus {}
} }
// prev/next month icons // prev/next month icons
@@ -231,9 +222,9 @@
.calendar-week-number { .calendar-week-number {
width: $item_size - 6px; width: $item_size - 6px;
height: $item_size - 12px; height: 0;
margin: 6px $base_margin/2 !important; margin: 8px 0 8px $base_padding !important;
padding: 0 0; padding: 0 !important;
border-radius: $base_radius; border-radius: $base_radius;
background-color: $fill; background-color: $fill;
color: $text-disabled; color: $text-disabled;

View File

@@ -5,7 +5,7 @@
width: if($compact == 'true', 25.5em, 31.5em); width: if($compact == 'true', 25.5em, 31.5em);
text-shadow: none; text-shadow: none;
border: none; border: none;
padding: 0; padding: $base_margin 0;
// padding and margins to account for scrollbar // padding and margins to account for scrollbar
&:ltr { margin-left: 0; margin-right: 0; padding-right: 0; border-right-width: 0; } &:ltr { margin-left: 0; margin-right: 0; padding-right: 0; border-right-width: 0; }

View File

@@ -11,7 +11,7 @@
color: on(black, secondary); color: on(black, secondary);
border-radius: $circular_radius; border-radius: $circular_radius;
border: none; border: none;
box-shadow: 0 2px 3px rgba(black, 0.25); box-shadow: none;
icon-size: $base_icon_size * 4; // 64px icon-size: $base_icon_size * 4; // 64px
// margin: 6px; // margin: 6px;

View File

@@ -16,7 +16,7 @@
.popup-menu { .popup-menu {
min-width: if($compact == 'true', 10em, 12em); min-width: if($compact == 'true', 10em, 12em);
color: $text-secondary !important; color: $text-secondary !important;
padding: 0 !important; padding: 0;
font-weight: normal; font-weight: normal;
border-radius: $menu_radius; border-radius: $menu_radius;
box-shadow: 0 3px 6px rgba(black, 0.08); box-shadow: 0 3px 6px rgba(black, 0.08);
@@ -24,7 +24,7 @@
@include fontsize($font_size - 1); @include fontsize($font_size - 1);
.popup-menu-content { .popup-menu-content {
padding: $base_padding 0 !important; padding: $base_padding;
background-color: $popover; background-color: $popover;
border-radius: $menu_radius; border-radius: $menu_radius;
margin: 0; margin: 0;
@@ -41,8 +41,10 @@
color: $text-secondary !important; color: $text-secondary !important;
text-shadow: none; text-shadow: none;
border-radius: $base_radius; border-radius: $base_radius;
margin: 0 $base_padding; margin: 0;
transition-duration: 100ms;
font-weight: normal; font-weight: normal;
background-color: transparent;
&:checked { &:checked {
font-weight: normal; font-weight: normal;
@@ -84,7 +86,7 @@
color: $text-secondary !important; color: $text-secondary !important;
border: none; border: none;
box-shadow: none; box-shadow: none;
margin: 0 $base_padding; margin: 0;
border-radius: 0 0 $base_radius $base_radius; border-radius: 0 0 $base_radius $base_radius;
.popup-menu-item { .popup-menu-item {
@@ -146,3 +148,20 @@
-st-icon-style: symbolic; -st-icon-style: symbolic;
} }
} }
// right-click (and panel) app menu
.app-menu {
max-width: 27.25em;
// this is unneeded at the top-level in this menu, hide it
.popup-menu-ornament { width: 0 !important; }
.popup-inactive-menu-item:first-child {
// "Open Windows" label
> StLabel {
@extend %caption_heading;
&:ltr {margin-right: $base_margin * 2;}
&:rtl {margin-left: $base_margin * 2;}
}
}
}

View File

@@ -0,0 +1,183 @@
.quick-settings {
padding: $base_padding * 3 !important;
border-radius: $base_radius + $base_padding * 3 !important;
.icon-button, .button {
padding: $base_padding * 1.75;
}
.popup-menu-content {
padding: $base_padding * 2 !important;
}
}
.quick-settings-grid {
spacing-rows: $base_padding * 2;
spacing-columns: $base_padding * 2;
}
.quick-toggle {
border-radius: $base_radius;
min-width: 12em;
max-width: 12em;
min-height: 40px;
border: none;
background-color: $button !important;
&:hover {
background-color: $divider !important;
}
&:active {
background-color: rgba($text, 0.15) !important;
}
&:checked {
background-color: $primary !important;
color: on($primary);
&:hover {
background-color: mix($text, $primary, 6%) !important;
color: on($primary);
}
&:active {
background-color: mix($text, $primary, 15%) !important;
color: on($primary);
}
}
& > 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: $button !important;
padding: $base_padding $base_padding * 1.75;
&:active {
background-color: $divider !important;
}
&:ltr { border-radius: 0 $base_radius $base_radius 0; }
&:rtl { border-radius: $base_radius 0 0 $base_radius; }
}
}
.quick-slider {
padding: 0 $base_padding;
& > StBoxLayout { spacing: $base_padding; }
.slider-bin {
&:focus { @include button(focus); }
min-height: 16px; // slider size
padding: $base_padding;
border-radius: $circular_radius;
}
.quick-toggle-icon {
icon-size: $base_icon_size;
}
.icon-button {
background-color: transparent;
color: $text !important;
&:hover {
background-color: $fill;
}
&:active {
background-color: $divider;
}
}
}
.quick-toggle-menu {
background-color: $popover !important;
color: $text !important;
border-radius: $base_radius + $base_padding * 2 !important;
padding: $base_padding * 2;
margin: $base_padding * 2 $base_padding * 3 0;
.popup-menu-item {
border-radius: $base_radius !important;
&:focus, &:hover, &.selected {
color: $text !important;
background-color: $divider !important;
}
> 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: $base_radius;
padding: 1.5 * $base_padding;
background-color: on($popover, divider) !important;
&.active {
background-color: $primary !important;
color: on($primary);
}
}
& .title {
@extend %title_3;
}
& .subtitle {
@extend %caption_heading;
}
}
}
.quick-toggle-menu-container {
}
.quick-settings-system-item {
& > StBoxLayout { spacing: 2 * $base_padding; }
.icon-button {
background-color: $button;
color: $text;
border-radius: $base_radius;
@extend %button;
> StIcon { -st-icon-style: symbolic; }
}
& .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; }
}

View File

@@ -12,11 +12,13 @@
.popup-separator-menu-item { .popup-separator-menu-item {
padding: 0; padding: 0;
.popup-menu-ornament {
width: 0 !important;
}
.popup-separator-menu-item-separator { .popup-separator-menu-item-separator {
height: 1px; //not really the whole box height: 1px; //not really the whole box
background-color: $divider; background-color: $divider;
padding-top: 0 !important;
padding-bottom: 0 !important;
margin: $base_padding 32px; margin: $base_padding 32px;
.popup-sub-menu & { //submenu separators .popup-sub-menu & { //submenu separators

View File

@@ -0,0 +1,204 @@
// Screenshot UI
.icon-label-button-container {
spacing: $base_padding;
@extend %caption;
StIcon { icon-size: 32px; }
}
$screenshot_ui_panel_padding: $base_padding * 3;
$screenshot_ui_shot_cast_margin: 21px;
$screenshot_ui_panel_border_radius: $modal_radius + $screenshot_ui_shot_cast_margin;
$screenshot_ui_shot_cast_spacing: 3px;
$screenshot_ui_button_red: $error;
.screenshot-ui-panel {
@extend %osd_panel;
border-radius: $screenshot_ui_panel_border_radius;
padding: $screenshot_ui_panel_padding;
// Reduce the bottom padding a little to accommodate the large capture button.
padding-bottom: $screenshot_ui_panel_padding - 6px;
margin-bottom: 4em;
spacing: $base_padding * 2;
}
.screenshot-ui-close-button {
@extend .window-close; // copy window close button
padding: $base_padding !important; // but with more padding
margin-top: 12px;
box-shadow: 0 2px 4px 0 rgba(black, 0.15);
&.left { margin-left: $base_padding * 2; }
&.right { margin-right: $base_padding * 2; }
}
.screenshot-ui-type-button {
@extend %osd_button;
min-width: 48px;
padding: $base_padding * 2 $base_padding * 3 !important;
border-radius: $screenshot_ui_panel_border_radius - $screenshot_ui_panel_padding;
}
.screenshot-ui-capture-button {
width: 36px;
height: 36px;
border-radius: $circular_radius;
border: 4px on($osd);
padding: 4px;
.screenshot-ui-capture-button-circle {
background-color: on($osd);
transition-duration: 200ms;
&:hover, &:focus { background-color: $divider; }
border-radius: $circular_radius;
}
&:hover, &:focus {
.screenshot-ui-capture-button-circle {
background-color: darken(on($osd), 15%);
}
}
&:active {
.screenshot-ui-capture-button-circle {
background-color: darken(on($osd), 50%);
}
}
&:cast {
.screenshot-ui-capture-button-circle {
background-color: $screenshot_ui_button_red;
}
&:hover, &:focus {
.screenshot-ui-capture-button-circle {
background-color: lighten($screenshot_ui_button_red, 5%);
}
}
&:active {
.screenshot-ui-capture-button-circle {
background-color: darken($screenshot_ui_button_red, 7%);
}
}
}
}
.screenshot-ui-shot-cast-container {
background-color: lighten($osd, 5%);
border-radius: $modal_radius;
padding: $screenshot_ui_shot_cast_spacing;
spacing: $screenshot_ui_shot_cast_spacing;
&:ltr { margin-left: $screenshot_ui_shot_cast_margin - $screenshot_ui_panel_padding;}
&:rtl { margin-right: $screenshot_ui_shot_cast_margin - $screenshot_ui_panel_padding;}
}
.screenshot-ui-shot-cast-button {
padding: $base_padding $base_padding * 2;
background-color: transparent;
&:hover, &:focus { background-color: lighten($osd, 10%);}
&:active { background-color: $track;}
&:checked { background-color: white; color: black;}
&:insensitive { color: transparentize(on($osd), 0.5);}
border-radius: $modal_radius - $screenshot_ui_shot_cast_spacing;
StIcon { icon-size: $base_icon_size;}
}
.screenshot-ui-show-pointer-button {
@extend %osd_button;
border-radius: $circular_radius;
padding: $base_padding * 2 !important;
StIcon { icon-size: $base_icon_size;}
}
.screenshot-ui-area-indicator-shade {
background-color: rgba(0,0,0, .3);
}
.screenshot-ui-area-selector {
.screenshot-ui-area-indicator-shade {
background-color: rgba(0,0,0, .5);
}
.screenshot-ui-area-indicator-selection {
border: 2px white;
}
}
.screenshot-ui-area-selector-handle {
border-radius: $circular_radius;
background-color: white;
box-shadow: 0 1px 3px 2px rgba(0,0,0, .2);
width: 24px;
height: 24px;
}
.screenshot-ui-window-selector {
background-color: $scrim;
.screenshot-ui-window-selector-window-container {
margin: 100px;
}
&:primary-monitor {
.screenshot-ui-window-selector-window-container {
// Make some room for the panel.
margin-bottom: 200px;
}
}
}
.screenshot-ui-window-selector-window-border {
transition-duration: 200ms;
border-radius: $modal_radius;
border: 6px transparent;
}
.screenshot-ui-window-selector-check {
transition-duration: 200ms;
color: transparent;
border-radius: 99px;
border-width: 12px;
icon-size: 24px;
}
.screenshot-ui-window-selector-window {
&:hover {
.screenshot-ui-window-selector-window-border {
border-color: darken($primary, 15%);
}
}
&:checked {
.screenshot-ui-window-selector-window-border {
border-color: $primary;
background-color: transparentize($primary, 0.8);
}
.screenshot-ui-window-selector-check {
color: on($primary);
background-color: $primary;
}
}
}
.screenshot-ui-screen-selector {
transition-duration: 200ms;
background-color: rgba(0,0,0,.5);
&:hover { background-color: rgba(0,0,0,.3);}
&:active { background-color: rgba(0,0,0,.7);}
&:checked {
background-color: transparent;
border: 2px white;
}
}
.screenshot-ui-tooltip {
color: on($osd);
background-color: $osd;
border-radius: $circular_radius;
padding: $base_padding $base_padding * 2;
text-align: center;
-y-offset: 24px;
}

View File

@@ -1172,7 +1172,7 @@ spinbutton {
/************** /**************
* ComboBoxes * * ComboBoxes *
**************/ **************/
dropdown > popover.menu.background > contents { padding: 0; } // dropdown > popover.menu.background > contents { padding: 0; }
dropdown > button > box { dropdown > button > box {
border-spacing: $space-size; border-spacing: $space-size;
@@ -1203,7 +1203,7 @@ combobox {
padding: 0; padding: 0;
listview { listview {
margin: $space-size 0; margin: 0;
& > row { & > row {
padding: $space-size; padding: $space-size;
@@ -1461,12 +1461,12 @@ headerbar {
} }
.title { .title {
padding: 0 12px; padding: 0 $space-size * 2;
font-weight: bold; font-weight: bold;
} }
.subtitle { .subtitle {
padding: 0 12px; padding: 0 $space-size * 2;
font-size: smaller; font-size: smaller;
} }
@@ -1507,12 +1507,15 @@ headerbar {
entry, entry,
spinbutton, spinbutton,
button, button,
stackswitcher { stackswitcher,
separator:not(.sidebar) {
margin-top: $space-size; margin-top: $space-size;
margin-bottom: $space-size; margin-bottom: $space-size;
} }
menubutton.popup { menubutton > button,
spinbutton > button,
splitbutton > button {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
} }
@@ -1522,8 +1525,8 @@ headerbar {
} }
separator:not(.sidebar) { separator:not(.sidebar) {
margin-top: $large-size / 4; // margin-top: $large-size / 4;
margin-bottom: $large-size / 4; // margin-bottom: $large-size / 4;
background-color: $titlebar-divider; background-color: $titlebar-divider;
} }
@@ -1935,6 +1938,7 @@ menubar {
**********************/ **********************/
popover.menu { popover.menu {
box.inline-buttons { box.inline-buttons {
color: $text;
padding: 0 $space-size; padding: 0 $space-size;
button.image-button.model { button.image-button.model {
@@ -2125,7 +2129,7 @@ magnifier {
background-image 0ms; background-image 0ms;
min-height: $small-size; min-height: $small-size;
min-width: $small-size; min-width: $small-size;
padding: $space-size / 2 $space-size * 2; padding: $space-size / 2 $space-size;
margin: 0; margin: 0;
border: none; border: none;
outline: none; outline: none;
@@ -2145,7 +2149,7 @@ magnifier {
&:disabled { color: $text-secondary-disabled; } &:disabled { color: $text-secondary-disabled; }
&:checked { &:checked, &:selected {
transition: $transition; transition: $transition;
background-color: if($variant == 'light', rgba($base, 1), rgba(white, 0.15)); background-color: if($variant == 'light', rgba($base, 1), rgba(white, 0.15));
color: $text; color: $text;
@@ -2371,6 +2375,10 @@ $tab_needs_attention_gradient: radial-gradient(ellipse at bottom,
} }
tabbar { tabbar {
> revealer > box {
box-shadow: none;
}
.box { .box {
min-height: $medium-size; min-height: $medium-size;
border-bottom: none; border-bottom: none;
@@ -2390,7 +2398,8 @@ tabbar {
border-right-width: 1px; border-right-width: 1px;
} }
tabbox > background { tabbox {
> background {
&:dir(ltr) { &:dir(ltr) {
box-shadow: inset -1px 0 $border; box-shadow: inset -1px 0 $border;
} }
@@ -2400,6 +2409,7 @@ tabbar {
} }
} }
} }
}
undershoot { undershoot {
transition: background 150ms ease-in-out; transition: background 150ms ease-in-out;
@@ -2422,15 +2432,23 @@ tabbar {
} }
tabbox { tabbox {
background-color: $fill; background-color: rgba($text, if($variant == 'light', 0.08, 0.04));
background-image: none; background-image: none;
padding: $space-size / 2; padding: $space-size / 2 0;
margin: $space-size / 2; margin: $space-size / 2;
border-radius: $modal-radius + $space-size / 2; border-radius: $modal-radius + $space-size / 2;
> background { > background {
background: none; background: none;
} }
> tabboxchild {
margin: 0;
> tab {
@extend %tabs_tab;
}
}
} }
tab { tab {
@@ -2711,12 +2729,12 @@ switch {
> slider { > slider {
transition: all $duration $ease-out; transition: all $duration $ease-out;
min-width: $small-size - 4px; min-width: $small-size - 6px;
min-height: $small-size - 4px; min-height: $small-size - 6px;
margin: if($variant == 'light', 1px, 0); margin: $space-size / 2;
border-radius: $circular-radius; border-radius: $circular-radius;
outline: none; outline: none;
box-shadow: none; box-shadow: $shadow-z3;
background-color: white; background-color: white;
border: none; border: none;
} }
@@ -2917,6 +2935,7 @@ columnview.view {
/************ /************
* GtkScale * * GtkScale *
************/ ************/
scale { scale {
// sizing // sizing
$_marks_length: 8px; $_marks_length: 8px;
@@ -2937,45 +2956,17 @@ columnview.view {
min-width: $trough_size; min-width: $trough_size;
&.horizontal { padding: ($medium-size - $trough_size) / 2 12px; } &.horizontal { padding: ($medium-size - $trough_size) / 2 12px; }
&.vertical { padding: 12px ($medium-size - $trough_size) / 2; } &.vertical { padding: 12px ($medium-size - $trough_size) / 2; }
// the slider is inside the trough, so to have make it bigger there's a negative margin > trough {
slider {
min-height: $slider_size;
min-width: $slider_size;
margin: $slider_margin;
}
// click-and-hold the slider to activate
&.fine-tune {
&.horizontal {
min-height: $finetune_trough_size;
padding-top: ($medium-size - $finetune_trough_size) / 2;
padding-bottom: ($medium-size - $finetune_trough_size) / 2;
}
&.vertical {
min-width: $finetune_trough_size;
padding-left: ($medium-size - $finetune_trough_size) / 2;
padding-right: ($medium-size - $finetune_trough_size) / 2;
}
// to make the trough grow in fine-tune mode
slider { margin: $finetune_slider_margin; }
}
// the backing bit
trough {
transition: background-color $duration $ease-out; transition: background-color $duration $ease-out;
outline: none; outline: none;
background-color: $track; background-color: $track;
&:disabled { background-color: $track-disabled; } &:disabled { background-color: $track-disabled; }
}
// the colored part of the backing bit // the colored part of the backing bit
highlight { > highlight {
transition: background-image $duration $ease-out; transition: background-image $duration $ease-out;
background-image: image($primary); background-image: image($primary);
@@ -2987,14 +2978,19 @@ columnview.view {
// this is another differently styled part of the backing bit, the most relevant use case is for example // this is another differently styled part of the backing bit, the most relevant use case is for example
// in media player to indicate how much video stream as been cached // in media player to indicate how much video stream as been cached
fill { > fill {
transition: background-color $duration $ease-out; transition: background-color $duration $ease-out;
background-color: $track; background-color: $track;
&:disabled { background-color: transparent; } &:disabled { background-color: transparent; }
} }
slider { // the slider is inside the trough, so to have make it bigger there's a negative margin
> slider {
min-height: $slider_size;
min-width: $slider_size;
margin: $slider_margin;
transition: all $duration $ease-out; transition: all $duration $ease-out;
border-radius: $circular-radius; border-radius: $circular-radius;
color: $primary; color: $primary;
@@ -3013,15 +3009,41 @@ columnview.view {
box-shadow: inset 0 0 0 2px $text-secondary-disabled; box-shadow: inset 0 0 0 2px $text-secondary-disabled;
} }
} }
}
marks, // click-and-hold the slider to activate
value { color: $text-secondary; } &.fine-tune {
&.horizontal {
min-height: $finetune_trough_size;
padding-top: ($medium-size - $finetune_trough_size) / 2;
padding-bottom: ($medium-size - $finetune_trough_size) / 2;
}
&.vertical {
min-width: $finetune_trough_size;
padding-left: ($medium-size - $finetune_trough_size) / 2;
padding-right: ($medium-size - $finetune_trough_size) / 2;
}
// to make the trough grow in fine-tune mode
> trough > slider { margin: $finetune_slider_margin; }
}
> marks,
> value { color: $text-secondary; }
indicator { indicator {
background-color: $track; background-color: $track;
color: transparent; color: transparent;
} }
&.marks-before:not(.marks-after),
&.marks-after:not(.marks-before) {
> trough > slider {
transform: rotate(0);
}
}
//marks margins //marks margins
@each $scale_orient, $marks_class, $marks_pos, $marks_margin in (horizontal, top, top, bottom), @each $scale_orient, $marks_class, $marks_pos, $marks_margin in (horizontal, top, top, bottom),
(horizontal, bottom, bottom, top), (horizontal, bottom, bottom, top),
@@ -3063,7 +3085,7 @@ columnview.view {
@each $marks_infix, $marks_class in ('marks-before', 'marks-before:not(.marks-after)'), @each $marks_infix, $marks_class in ('marks-before', 'marks-before:not(.marks-after)'),
('marks-after', 'marks-after:not(.marks-before)') { ('marks-after', 'marks-after:not(.marks-before)') {
&.#{$dir_class}.#{$marks_class} { &.#{$dir_class}.#{$marks_class} {
slider { > trough > slider {
transition: background-color $duration $ease-out, transition: background-color $duration $ease-out,
background-size $ripple-fade-out-duration $ease-out, background-size $ripple-fade-out-duration $ease-out,
background-image $ripple-fade-out-opacity-duration $ease-out; background-image $ripple-fade-out-opacity-duration $ease-out;
@@ -3117,7 +3139,7 @@ columnview.view {
&.horizontal { &.horizontal {
padding: 0 0 12px 0; padding: 0 0 12px 0;
slider { > trough > slider {
&:dir(ltr), &:dir(rtl) { // specificity bump &:dir(ltr), &:dir(rtl) { // specificity bump
margin-bottom: $color_slider_margin; margin-bottom: $color_slider_margin;
margin-top: $color_marks_slider_margin; margin-top: $color_marks_slider_margin;
@@ -3138,7 +3160,7 @@ columnview.view {
&:dir(rtl) { &:dir(rtl) {
padding: 0 12px 0 0; padding: 0 12px 0 0;
slider { > trough > slider {
margin-right: $color_slider_margin; margin-right: $color_slider_margin;
margin-left: $color_marks_slider_margin; margin-left: $color_marks_slider_margin;
} }
@@ -3358,6 +3380,10 @@ separator {
min-width: 1px; min-width: 1px;
min-height: 1px; min-height: 1px;
background-color: $divider; background-color: $divider;
&.spacer {
@extend %hide_separators;
}
} }
%hide_separators { %hide_separators {
@@ -3519,6 +3545,10 @@ row {
&:focus, &:hover, &:active { box-shadow: none; } &:focus, &:hover, &:active { box-shadow: none; }
} }
button:checked &.activatable {
color: on($primary);
}
&:selected { &:selected {
@extend %selected_items; @extend %selected_items;
color: inherit; // for overlays color: inherit; // for overlays
@@ -3727,7 +3757,11 @@ window.dialog.message { // Message Dialog styling
&.background { background-color: $surface; } &.background { background-color: $surface; }
box.dialog-vbox.vertical { box.dialog-vbox.vertical {
border-spacing: 10px; border-spacing: $space-size * 2;
> box.vertical {
margin-bottom: $space-size;
}
} }
.titlebar { .titlebar {
@@ -3744,19 +3778,21 @@ window.dialog.message { // Message Dialog styling
} }
.dialog-action-area { .dialog-action-area {
margin-top: -$space-size; margin-top: $space-size;
// padding: $space-size; // padding: $space-size;
> button { > button {
@extend %button-flat; @extend %button-flat;
border-radius: 0;
border: none;
min-height: $menuitem-size;
padding: $space-size $space-size * 2;
&, &:first-child, &:last-child { border-radius: $circular-radius; } &:first-child { border-radius: 0 0 0 $window-radius; }
&:not(:last-child) { margin-right: $space-size; } &:last-child { border-radius: 0 0 $window-radius 0; }
&:not(:disabled) { color: $primary; } &:not(:last-child) { border-right: 1px solid $border; }
// &.suggested-action:not(:disabled) { color: $suggested; }
&.destructive-action:not(:disabled) { color: $destructive; } &.destructive-action:not(:disabled) { color: $destructive; }
} }
@@ -3929,7 +3965,7 @@ row image.sidebar-icon {
&:disabled { color: $text-secondary-disabled; } &:disabled { color: $text-secondary-disabled; }
} }
placessidebar.sidebar { placessidebar {
> viewport.frame { border-style: none; } > viewport.frame { border-style: none; }
list > separator { margin: $space-size / 2 0; } list > separator { margin: $space-size / 2 0; }
@@ -4077,12 +4113,11 @@ video {
* GtkInfoBar * * GtkInfoBar *
**************/ **************/
infobar { infobar {
border: none;
margin-bottom: 0;
> revealer > box { > revealer > box {
padding: $space-size; padding: $space-size;
border-spacing: $space-size * 2; border-spacing: $space-size * 2;
border-bottom: 1px solid $border;
box-shadow: none;
} }
&.info { &.info {

View File

@@ -86,11 +86,12 @@ $nautilus: $base-alt;
.floating-bar { .floating-bar {
min-height: 32px; min-height: 32px;
padding: 0; padding: 0;
margin: 6px; margin: $space-size;
border-style: none; border: none;
border-radius: $corner-radius; border-radius: $corner-radius;
background-color: $primary; background-color: $primary;
color: on($primary); color: on($primary);
box-shadow: $shadow-z3;
button { button {
margin: (32px - $small-size) / 2; margin: (32px - $small-size) / 2;

View File

@@ -7,6 +7,24 @@
placesview { placesview {
label { color: $text-secondary; } label { color: $text-secondary; }
} }
.floating-bar {
min-height: 32px;
padding: 0;
margin: $space-size;
border-style: none;
border-radius: $corner-radius;
background-color: $primary;
color: on($primary);
box-shadow: $shadow-z3;
button {
margin: (32px - $small-size) / 2;
color: on($primary);
@extend %small-button;
}
}
} }
#NautilusPathBar { #NautilusPathBar {
@@ -26,6 +44,38 @@
} }
} }
#NautilusQueryEditor { // search entry
> menubutton > button {
min-width: 16px;
min-height: 16px;
margin: 0;
}
> text { margin: 0; }
}
#NautilusPathBar {
background-color: $titlebar-fill;
border-radius: $corner-radius;
margin: $space-size 0;
#NautilusPathButton {
margin: 0 $space-size / 2;
border-radius: $corner-radius;
&.current-dir {
color: $titlebar-text;
&:hover, &:active {
background: none;
box-shadow: none;
}
}
&:first-child { margin-left: 0; }
}
}
/************** /**************
* Extensions * * Extensions *
**************/ **************/
@@ -73,6 +123,23 @@ window.background.csd {
.history-view { background-color: $base; } .history-view { background-color: $base; }
#displayitem {
border-top: 1px solid $border;
}
.small .card {
border-radius: 0;
box-shadow: none;
border: none;
border-bottom: 1px solid $border;
}
leaflet {
button.number-button {
background-color: rgba($text, if($variant == 'light', 0.1, 0.15));
}
}
// //
// Contacts // Contacts
// //
@@ -81,12 +148,6 @@ window.background.csd {
background: none; background: none;
} }
.small .card {
border-radius: 0;
box-shadow: none;
border-bottom: 1px solid $border;
}
// //
// Gnome Software // Gnome Software
// //

View File

@@ -45,10 +45,10 @@ avatar {
.card { .card {
@at-root %card, & { @at-root %card, & {
border-radius: $corner-radius; border-radius: $corner-radius;
box-shadow: $shadow-z3; box-shadow: none;
border: 1px solid $border; border: 1px solid $border;
background-clip: border-box; background-clip: border-box;
background-color: $surface; background-color: $button;
color: $text-secondary; color: $text-secondary;
} }
} }
@@ -100,6 +100,8 @@ preferencesgroup > box {
outline-color: $primary; outline-color: $primary;
} }
} }
.cutout-button { background-color: $base-alt; }
} }
// //