WhiteSur-gtk-theme/src/sass/gtk/apps/_gnome-40.0.scss

430 lines
8.4 KiB
SCSS
Raw Normal View History

2022-04-17 22:49:54 +08:00
2022-10-23 09:35:36 +08:00
//
// Nautilus
//
2022-10-08 13:57:46 +08:00
2022-10-19 18:03:26 +08:00
$nautilus_header_image: image($header_bg);
$nautilus_header_borders_image: image($header_border);
$nautilus_borders_color: if($variant=='light', darken(rgba($dark_sidebar_bg, 1), 12%), $header_border);
$flap_sidebar_size: 240px;
@if $nautilus_style == 'stable' {
$nautilus_header_image: linear-gradient(90deg, $dark_sidebar_bg $flap_sidebar_size,
$nautilus_borders_color $flap_sidebar_size,
$nautilus_borders_color ($flap_sidebar_size + 1px),
$base_color ($flap_sidebar_size + 1px));
$nautilus_header_borders_image: linear-gradient(90deg, transparent $flap_sidebar_size,
$header_border $flap_sidebar_size);
}
@if $nautilus_style == 'glassy' {
$nautilus_header_image: linear-gradient(90deg, $dark_sidebar_bg ($flap_sidebar_size / 2),
$dark_header_bg 40%);
$nautilus_header_borders_image: linear-gradient(90deg, rgba($header_border, 0) (($flap_sidebar_size / 2) - 40px),
$header_border 40%);
}
2022-10-19 13:13:06 +08:00
.nautilus-window {
2022-10-19 18:03:26 +08:00
@if $nautilus_style == 'stable' or $nautilus_style == 'glassy' {
&.background.csd {
background-color: transparent;
headerbar {
background-color: transparent;
border: none;
background-image: $nautilus_header_image;
border-image: $nautilus_header_borders_image 0 0 1 / 0px 0px 1px stretch;
}
}
}
@if $nautilus_style == 'stable' {
headerbar {
box.start > box {
margin-left: 144px;
}
2022-12-27 12:26:14 +08:00
entry.search {
margin-left: $container_padding;
}
2022-10-19 18:03:26 +08:00
}
2022-10-19 13:13:06 +08:00
}
2022-10-09 17:27:14 +08:00
flap.unfolded {
2022-10-19 13:13:06 +08:00
> placessidebar.background {
background: none;
list.navigation-sidebar {
background-color: $dark_sidebar_bg;
}
}
2022-10-09 17:27:14 +08:00
> separator.horizontal {
background-color: $header_border;
}
}
flap.folded {
> placessidebar {
border-right: 1px solid $header_border;
}
}
2023-01-10 00:45:02 +08:00
tabbar:not(.inline) {
.box {
@if $monterey == 'false' {
background-color: mix(black, $base_color, 6%);
} @else {
background-color: $base_color;
}
}
}
2023-01-10 12:13:55 +08:00
.nautilus-grid-view.view {
child.activatable {
border-radius: $bt_radius;
@extend %row_activatable;
}
}
.nautilus-list-view.view {
2023-04-08 12:17:11 +08:00
padding: 0;
margin: 0;
border-spacing: 0;
listview.view {
padding: 0;
margin: 0;
border-spacing: 0;
> row.activatable {
padding: 0;
margin: 0;
border-radius: $bt_radius;
@extend %row_activatable;
}
2023-01-10 12:13:55 +08:00
}
}
2022-10-08 13:57:46 +08:00
// Floating Bar
.floating-bar {
padding: 2px;
background-color: $selected_bg_color;
color: $selected_fg_color;
border-radius: $wm_radius - $container_padding;
margin: $container_padding;
box-shadow: $shadow_5;
2022-10-09 17:27:14 +08:00
> button.circular.flat {
2022-10-08 13:57:46 +08:00
border-radius: $circular_radius;
2022-10-09 17:27:14 +08:00
min-height: 24px;
min-width: 24px;
2022-10-08 13:57:46 +08:00
padding: 0;
-gtk-icon-shadow: none;
@extend %selected-button;
2022-04-17 22:49:54 +08:00
}
}
2022-10-08 13:57:46 +08:00
}
2022-04-17 22:49:54 +08:00
2022-10-08 13:57:46 +08:00
#NautilusViewCell {
clamp box {
margin: 0;
border-spacing: 0;
}
}
2022-04-17 22:49:54 +08:00
2022-10-08 13:57:46 +08:00
#NautilusQueryEditor { // search entry
padding: 1px $container_padding;
2023-01-10 12:13:55 +08:00
border-spacing: 0;
> * { margin: 0; }
2022-04-17 22:49:54 +08:00
2022-10-09 17:27:14 +08:00
#NautilusQueryEditorTag {
@extend .entry-tag;
> button {
margin: 0;
}
}
2022-10-08 13:57:46 +08:00
> menubutton > button {
min-width: 16px;
min-height: 16px;
margin: 0;
-gtk-icon-size: 12px;
padding: 0 4px;
2022-04-17 22:49:54 +08:00
}
2022-10-08 13:57:46 +08:00
}
2022-04-17 22:49:54 +08:00
2022-10-08 13:57:46 +08:00
#NautilusPathBar {
background-color: $fill_color;
border-radius: $bt_radius;
margin: $container_padding 0 $container_padding $container_padding;
#NautilusPathButton {
margin: 0 $container_padding / 2;
border-radius: $bt_radius;
&.current-dir {
color: $header_fg;
2022-10-19 13:13:06 +08:00
2022-10-08 13:57:46 +08:00
&:hover, &:active {
background: none;
box-shadow: none;
}
2022-04-17 22:49:54 +08:00
}
2022-10-08 13:57:46 +08:00
&:first-child { margin-left: 0; }
}
> menubutton {
margin-top: 0;
margin-bottom: 0;
2022-04-17 22:49:54 +08:00
}
}
2022-10-08 13:57:46 +08:00
// Extensions
2022-04-17 22:49:54 +08:00
window.nightthemeswitcher headerbar {
background: $header_bg;
color: $header_fg;
}
2022-05-05 17:53:22 +08:00
//
// Gnome Control Center
//
window.background.csd {
> contents {
> leaflet.unfolded > box {
> headerbar {
@extend %side_headerbar_left;
}
> searchbar {
@extend %side_searchbar;
}
> stack > widget > box > widget > headerbar,
> stack > widget > overlay > leaflet.folded > box > headerbar {
@extend %side_headerbar_right;
}
> scrolledwindow > viewport > widget > stack {
> list.navigation-sidebar {
background-color: rgba($dark_sidebar_bg, 1);
> separator {
background-color: transparent;
margin: 0;
min-height: 0;
}
}
> box > list.navigation-sidebar { background-color: rgba($dark_sidebar_bg, 1); }
}
> stack.background { background-color: $base_color; }
}
2022-10-28 18:34:59 +08:00
preferencesgroup > box {
button.background-preview-button {
padding: $container_padding / 2;
outline: 2px solid transparent;
outline-offset: 0;
border-radius: $bt_radius + $container_padding / 2;
&, &:hover, &:active, &:checked {
background: none;
border: none;
box-shadow: none;
}
&:hover {
outline-color: $alt_disabled_fg_color;
}
&:active {
outline-color: $alt_fg_color;
}
&:checked {
outline-color: $selected_bg_color;
}
}
flowbox.background-flowbox > flowboxchild {
outline: 2px solid transparent;
outline-offset: 0;
border-radius: $bt_radius + 3px;
padding: 3px;
&:hover {
outline-color: $alt_disabled_fg_color;
}
&:active {
outline-color: $alt_fg_color;
}
&:selected {
outline-color: $selected_bg_color;
background-color: transparent;
}
}
}
2022-05-05 17:53:22 +08:00
}
}
2022-10-09 16:02:36 +08:00
//
// Gnome Calendar / Gnome Contacts
//
window.background {
> contents > toastoverlay > leaflet {
> box {
background-color: $base_color;
2022-10-19 13:13:06 +08:00
2022-10-09 16:02:36 +08:00
> headerbar {
&, &:backdrop {
background: none;
border: none;
}
}
+ separator {
@extend %side_separator;
2022-10-19 13:13:06 +08:00
2022-10-09 16:02:36 +08:00
+ box {
background-color: $dark_sidebar_bg;
}
}
> .view, list:not(.boxed-list) {
background-color: transparent;
}
list > row textview {
padding: $container_padding;
border-left: 1px solid $borders_color;
2022-10-19 13:13:06 +08:00
2022-10-09 16:02:36 +08:00
&, & > text {
background: none;
}
}
}
2022-10-19 13:13:06 +08:00
2022-10-09 16:02:36 +08:00
.current-week {
background-color: $fill_color;
}
2022-10-19 13:13:06 +08:00
2022-10-09 16:02:36 +08:00
button.circular.day {
border: none;
box-shadow: none;
@extend %flat_button;
}
datechooser navigator > button.flat.pill {
padding: 0 $container_padding * 2;
min-height: $menuitem_size;
min-width: $menuitem_size;
}
}
&.maximized, &.tiled {
> contents > toastoverlay > leaflet {
> box {
> headerbar {
&, &:backdrop {
background: none;
border: none;
}
}
}
}
}
}
menubutton.flat.popup.sources-button {
margin: 0;
> button {
margin: 0;
border-radius: 0;
padding: 0 $container_padding * 2;
.title {
font-size: small;
font-weight: normal;
}
.title, .subtitle {
padding: 2px 0 2px $container_padding;
}
image.calendar-color-image {
-gtk-icon-size: 8px;
}
}
}
// Contacts
.contacts-editor-address {
> entry.flat {
&:not(:last-child) {
box-shadow: inset 0 -1px $borders_color;
}
&:first-child {
border-radius: $bt_radius $bt_radius 0 0;
}
&:last-child {
border-radius: 0 0 $bt_radius $bt_radius;
}
}
}
//
// Calculator
//
.history-view { background-color: $base_color; }
.card {
&.display-container {
border: 1px solid $borders_color;
2022-11-13 11:32:48 +08:00
.small & {
border-radius: 0;
&.display-container {
border-width: 0 0 1px 0;
}
}
2022-10-09 16:02:36 +08:00
}
#displayitem {
border-top: 1px solid $borders_color;
}
2022-11-13 11:32:48 +08:00
}
2022-10-09 16:02:36 +08:00
2022-11-13 11:32:48 +08:00
//
// Weather
//
2022-10-19 13:13:06 +08:00
2022-11-13 11:32:48 +08:00
.small .forecast-card {
border-width: 1px 0;
2022-10-19 13:13:06 +08:00
}
2023-02-14 23:52:32 +08:00
//
// Misc (other)
//
#desktopwindow.background {
background-color: transparent;
background-image: none;
}