This commit is contained in:
vinceliuice 2025-04-10 13:22:58 +08:00
parent 12aa63f12d
commit 8fa229c58e
19 changed files with 42 additions and 35 deletions

View File

@ -937,6 +937,10 @@ shell_base() {
customize_theme() {
cp -rf "${THEME_SRC_DIR}/sass/_theme-options"{".scss","-temp.scss"}
if [[ "${GNOME_VERSION}" -ge '47-0' ]]; then
sed $SED_OPT "/\$shell_version/s/old/new/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
fi
# Darker dark colors
if [[ "${darker}" == 'true' ]]; then
prompt -s "Changing dark color style to darker one ...\n"

View File

@ -37,3 +37,6 @@ $darker: 'false';
// GDM login dialog scale
$scale: 'default';
// gnome-shell version
$shell_version: 'old';

View File

@ -25,7 +25,7 @@ $cakeisalie: "This stylesheet is generated, DO NOT EDIT";
// reset colors
@if $gnome_version == 'new' and $accent_type == 'default' {
@if $shell_version == 'new' and $accent_type == 'default' {
$selected_bg_color: -st-accent-color;
$primary_color: -st-accent-color;
}

View File

@ -127,7 +127,7 @@ $entry_shell_bg: if($variant == 'light', rgba(black, 0.1), rgba(white, 0.1));
@if $t == focus {
box-shadow: inset 0 0 0 1px transparent !important;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
border: 2px solid lighten($fc, 15%) !important;
} @else {
border: 2px solid st-lighten($fc, 15%) !important;
@ -233,7 +233,7 @@ $button_shell_bg: if($variant == 'light', mix(black, $button_shell, 6%), mix(whi
border: none;
text-shadow: none;
icon-shadow: none;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: mix($tc, $c, 6%);
} @else {
background-color: st-mix($tc, $c, 6%);
@ -245,7 +245,7 @@ $button_shell_bg: if($variant == 'light', mix(black, $button_shell, 6%), mix(whi
border: none;
text-shadow: none;
icon-shadow: none;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: mix($tc, $c, 12%);
} @else {
background-color: st-mix($tc, $c, 12%);

View File

@ -4,7 +4,7 @@
height: 48px;
border-radius: 24px; // radius equals the size of the box to give us the curve
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: lighten(transparentize($primary_color, 0.7), 30%);
box-shadow: 0 0 2px 2px lighten($primary_color, 20%);
} @else {
@ -20,7 +20,7 @@
-pie-border-width: 3px;
-pie-border-color: $primary_color;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
-pie-background-color: lighten(transparentize($primary_color, 0.7), 40%);
} @else {
-pie-background-color: st-lighten(st-transparentize($primary_color, 0.7), 40%);

View File

@ -199,7 +199,7 @@ $popover_bubble_bg: if($variant == 'light', rgba(white, 0.95), rgba(lighten($bas
}
&:active {
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: darken($primary_color, 5%);
} @else {
background-color: st-darken($primary_color, 5%);
@ -215,7 +215,7 @@ $popover_bubble_bg: if($variant == 'light', rgba(white, 0.95), rgba(lighten($bas
&:hover, &:focus {
color: $light_fg_color !important;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: lighten($primary_color, 8%);
} @else {
background-color: st-lighten($primary_color, 8%);

View File

@ -8,7 +8,7 @@ $ripple_size: 50px;
height: $ripple_size + 2px;
border-radius: 0 0 $ripple_size + 2px 0; // radius equals the size of the box to give us the curve
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: transparentize($primary_color, 0.65);
box-shadow: 0 0 2px 2px lighten($primary_color, 20%);
} @else {

View File

@ -63,7 +63,7 @@ $default_key_bg_color: if($variant=='light', darken($solid_osd_bg_color, 11%), l
background-color: $primary_color;
box-shadow: 0 2px 3px rgba(black, 0.15);
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
&:focus, &:hover { color: $light_fg_color; background-color: lighten($primary_color, 5%); }
&:checked, &:active { color: $light_fg_color; background-color: darken($primary_color, 10%); }
} @else {
@ -105,7 +105,7 @@ $default_key_bg_color: if($variant=='light', darken($solid_osd_bg_color, 11%), l
.emoji-panel {
.keyboard-key:latched {
background-color: $primary_color;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
border-color: lighten($primary_color, 5%);
} @else {
border-color: st-lighten($primary_color, 5%);

View File

@ -3,7 +3,7 @@
border: 1px solid $primary_color;
border-radius: 3px;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: transparentize($primary_color, 0.3);
} @else {
background-color: st-transparentize($primary_color, 0.3);

View File

@ -1,8 +1,8 @@
/* Popovers/Menus */
$popover_opacity: if($trans == 'false', 1, if($gnome_version == 'new', 0.92, 0.96));
$popover_opacity: if($trans == 'false', 1, if($shell_version == 'new', 0.92, 0.96));
$popop_menuitem_radius: $po_radius - $base_padding;
$popover_bg_color: if($variant == 'light', rgba($base_color, $popover_opacity), rgba($bg_color, $popover_opacity));
$popover_bg_color: if($variant == 'light', rgba($bg_color, $popover_opacity), rgba($base_color, $popover_opacity));
//.the popover itself
.popup-menu-boxpointer {
@ -128,7 +128,7 @@ $popover_bg_color: if($variant == 'light', rgba($base_color, $popover_opacity),
&:active {
color: $selected_fg_color !important;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: mix($fg_color, $selected_bg_color, 5%) !important;
} @else {
background-color: st-mix($fg_color, $selected_bg_color, 5%) !important;
@ -146,7 +146,7 @@ $popover_bg_color: if($variant == 'light', rgba($base_color, $popover_opacity),
&:active, &.selected:active {
color: $selected_fg_color !important;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: mix($fg_color, $selected_bg_color, 5%) !important;
} @else {
background-color: st-mix($fg_color, $selected_bg_color, 5%) !important;
@ -180,7 +180,7 @@ $popover_bg_color: if($variant == 'light', rgba($base_color, $popover_opacity),
&:active {
color: $selected_fg_color !important;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: mix($fg_color, $selected_bg_color, 5%) !important;
} @else {
background-color: st-mix($fg_color, $selected_bg_color, 5%) !important;

View File

@ -70,7 +70,7 @@
background-color: transparentize($bg_color,0.7);
&:hover, &:focus { background-color: transparentize($bg_color, 0.5); }
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
&:active { background-color: transparentize($selected_bg_color, 0.5); }
} @else {
&:active { background-color: st-transparentize($selected_bg_color, 0.5); }

View File

@ -4,7 +4,7 @@
$tile_corner_radius: $base_border_radius + 1px;
.tile-preview {
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: transparentize($primary_color, 0.75);
} @else {
background-color: st-transparentize($primary_color, 0.75);

View File

@ -3,7 +3,7 @@
StButton#vhandle, StButton#hhandle {
background-color: transparentize($bg_color, 0.7);
&:hover, &:focus { background-color: transparentize($bg_color, 0.5); }
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
&:active { background-color: transparentize($primary_color, 0.5); }
} @else {
&:active { background-color: st-transparentize($primary_color, 0.5); }

View File

@ -170,7 +170,7 @@ $screenshot_ui_button_red: $error_color;
.screenshot-ui-window-selector-window {
&:hover {
.screenshot-ui-window-selector-window-border {
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
border-color: darken($primary_color, 15%);
} @else {
border-color: st-darken($primary_color, 15%);
@ -181,7 +181,7 @@ $screenshot_ui_button_red: $error_color;
&:checked {
.screenshot-ui-window-selector-window-border {
border-color: $primary_color;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: transparentize($primary_color, 0.8);
} @else {
background-color: st-transparentize($primary_color, 0.8);

View File

@ -40,7 +40,7 @@
&:hover {
color: $light_fg_color;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: mix($text_color, $primary_color, 6%) !important;
} @else {
background-color: st-mix($text_color, $primary_color, 6%) !important;
@ -49,7 +49,7 @@
&:active {
color: $light_fg_color;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: mix($text_color, $primary_color, 15%) !important;
} @else {
background-color: st-mix($text_color, $primary_color, 15%) !important;
@ -109,7 +109,7 @@
&:hover {
color: $light_fg_color;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: mix($text_color, $primary_color, 6%) !important;
} @else {
background-color: st-mix($text_color, $primary_color, 6%) !important;
@ -118,7 +118,7 @@
&:active {
color: $light_fg_color;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: mix($text_color, $primary_color, 15%) !important;
} @else {
background-color: st-mix($text_color, $primary_color, 15%) !important;

View File

@ -66,7 +66,7 @@
border-style: solid;
&:focus {
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
border-color: transparentize($selected_bg_color, 0.4);
} @else {
border-color: st-transparentize($selected_bg_color, 0.4);

View File

@ -16,7 +16,7 @@
&:hover {
color: white !important;
background-gradient-direction: none !important;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: lighten($primary_color, 9%);
} @else {
background-color: st-lighten($primary_color, 9%);
@ -26,7 +26,7 @@
&:active {
color: white !important;
background-gradient-direction: none !important;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: darken($primary_color, 5%);
} @else {
background-color: st-darken($primary_color, 5%);
@ -35,7 +35,7 @@
&:insensitive {
background-gradient-direction: none !important;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: transparentize($primary_color, 0.9);
color: transparentize($primary_color, 0.65) !important;
} @else {

View File

@ -55,7 +55,7 @@
border-style: solid;
&:focus {
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
border-color: transparentize($selected_bg_color, 0.4);
} @else {
border-color: st-transparentize($selected_bg_color, 0.4);

View File

@ -40,7 +40,7 @@
&:hover {
color: $light_fg_color;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: mix($text_color, $primary_color, 6%) !important;
} @else {
background-color: st-mix($text_color, $primary_color, 6%) !important;
@ -49,7 +49,7 @@
&:active {
color: $light_fg_color;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: mix($text_color, $primary_color, 15%) !important;
} @else {
background-color: st-mix($text_color, $primary_color, 15%) !important;
@ -111,7 +111,7 @@
&:hover {
color: $light_fg_color;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: mix($text_color, $primary_color, 6%) !important;
} @else {
background-color: st-mix($text_color, $primary_color, 6%) !important;
@ -120,7 +120,7 @@
&:active {
color: $light_fg_color;
@if $gnome_version == 'old' {
@if $shell_version == 'old' {
background-color: mix($text_color, $primary_color, 15%) !important;
} @else {
background-color: st-mix($text_color, $primary_color, 15%) !important;