This commit is contained in:
vinceliuice
2024-07-19 22:39:22 +08:00
parent c4cf73e4cf
commit 2a9bad109d
6 changed files with 29 additions and 29 deletions

View File

@@ -14,11 +14,11 @@ DEST_DIR=
scheme= scheme=
window= window=
if [ "$UID" -eq "$ROOT_UID" ]; then if [[ "$UID" -eq "$ROOT_UID" ]]; then
DEST_DIR="/usr/share/themes" DEST_DIR="/usr/share/themes"
elif [ -n "$XDG_DATA_HOME" ]; then elif [[ -n "$XDG_DATA_HOME" ]]; then
DEST_DIR="$XDG_DATA_HOME/themes" DEST_DIR="$XDG_DATA_HOME/themes"
elif [ -d "$HOME/.local/share/themes" ]; then elif [[ -d "$HOME/.local/share/themes" ]]; then
DEST_DIR="$HOME/.local/share/themes" DEST_DIR="$HOME/.local/share/themes"
else else
DEST_DIR="$HOME/.themes" DEST_DIR="$HOME/.themes"
@@ -687,7 +687,7 @@ uninstall() {
if [[ -d "${THEME_DIR}" ]]; then if [[ -d "${THEME_DIR}" ]]; then
echo -e "Uninstall ${THEME_DIR}... " echo -e "Uninstall ${THEME_DIR}... "
rm -rf "${THEME_DIR}" rm -rf "${THEME_DIR}"{'','-hdpi','-xhdpi'}
fi fi
} }

View File

@@ -20,10 +20,10 @@ $root-font-size: if($compact == 'false', 14px, 13px);
// Radiuses // Radiuses
// //
$window-radius: 12px;
$modal-radius: 6px; $modal-radius: 6px;
$corner-radius: 6px; $corner-radius: 6px;
$menu-radius: $corner-radius + $space-size; $menu-radius: $corner-radius + $space-size;
$window-radius: $corner-radius + $space-size;
$circular-radius: 9999px; $circular-radius: 9999px;
// //

View File

@@ -1055,7 +1055,7 @@ searchbar > revealer > box,
searchbar > revealer > box { searchbar > revealer > box {
// workaround: undo the GtkContainer:border-width and use CSS padding instead // workaround: undo the GtkContainer:border-width and use CSS padding instead
margin: -$space-size; margin: -6px;
} }
@@ -1366,7 +1366,7 @@ headerbar {
> box.left, > box.left,
> box.right { // Titlebutton space > box.right { // Titlebutton space
padding: 0 if($window_button == 'mac', $space-size, $space-size - 2px); padding: 0 if($window_button == 'mac', 6px, 4px);
} }
button:not(.suggested-action):not(.destructive-action) { button:not(.suggested-action):not(.destructive-action) {
@@ -1689,7 +1689,7 @@ menu {
transition: background-color $duration $ease-out; transition: background-color $duration $ease-out;
min-height: 20px; min-height: 20px;
min-width: 40px; min-width: 40px;
padding: 4px 8px; padding: ($menuitem-size - 20px) / 2 ($large-size - 40px) / 2;
color: $text; color: $text;
font: initial; font: initial;
text-shadow: none; text-shadow: none;
@@ -3814,7 +3814,7 @@ decoration {
min-height: 16px; min-height: 16px;
min-width: 16px; min-width: 16px;
padding: 0; padding: 0;
margin: 0 $space-size - 2px; margin: 0 $space-size / 2 + 1px;
&.minimize, &.maximize, &.close { &.minimize, &.maximize, &.close {
color: transparent; color: transparent;
@@ -3870,7 +3870,7 @@ decoration {
min-height: 22px; min-height: 22px;
min-width: 22px; min-width: 22px;
padding: 0; padding: 0;
margin: 0 $space-size - 2px; margin: 0 $space-size / 2 + 1px;
&.minimize, &.maximize, &.close { &.minimize, &.maximize, &.close {
color: $titlebar-text-secondary; color: $titlebar-text-secondary;

View File

@@ -5099,8 +5099,8 @@ window {
min-height: 16px; min-height: 16px;
min-width: 16px; min-width: 16px;
padding: ($medium-size - 16px) / 2 0; padding: ($medium-size - 16px) / 2 0;
margin-left: $space-size - 2px; margin-left: $space-size / 2 + 1px;
margin-right: $space-size - 2px; margin-right: $space-size / 2 + 1px;
&.minimize, &.maximize, &.close { &.minimize, &.maximize, &.close {
color: transparent; color: transparent;

View File

@@ -231,8 +231,8 @@ $titlebutton_close: $button-close;
min-height: 16px; min-height: 16px;
min-width: 16px; min-width: 16px;
padding: ($medium_size - 16px) / 2 0; padding: ($medium_size - 16px) / 2 0;
margin-left: $base_padding - 2px; margin-left: $base_padding / 2 + 1px;
margin-right: $base_padding - 2px; margin-right: $base_padding / 2 + 1px;
box-shadow: none; box-shadow: none;
&.minimize, &.maximize, &.close { &.minimize, &.maximize, &.close {
@@ -289,8 +289,8 @@ $titlebutton_close: $button-close;
min-height: 22px; min-height: 22px;
min-width: 22px; min-width: 22px;
padding: ($medium-size - 22px) / 2 0; padding: ($medium-size - 22px) / 2 0;
margin-left: $base_padding - 2px; margin-left: $base_padding / 2 + 1px;
margin-right: $base_padding - 2px; margin-right: $base_padding / 2 + 1px;
&.minimize, &.maximize, &.close { &.minimize, &.maximize, &.close {
color: gtkalpha($headerbar_fg_color, 0.75); color: gtkalpha($headerbar_fg_color, 0.75);
@@ -321,19 +321,19 @@ $titlebutton_close: $button-close;
} }
windowcontrols { windowcontrols {
border-spacing: $base_padding; border-spacing: 6px;
&:not(.empty) { &:not(.empty) {
&.start:dir(ltr), &.start:dir(ltr),
&.end:dir(rtl) { &.end:dir(rtl) {
margin-right: $base_padding; margin-right: 6px;
margin-left: $base_padding; margin-left: 6px;
} }
&.start:dir(rtl), &.start:dir(rtl),
&.end:dir(ltr) { &.end:dir(ltr) {
margin-left: $base_padding; margin-left: 6px;
margin-right: $base_padding; margin-right: 6px;
} }
} }

View File

@@ -12,9 +12,9 @@ popover.menu {
button.image-button.model { button.image-button.model {
@extend %button_basic_flat; @extend %button_basic_flat;
min-height: 32px; min-height: $menuitem_size;
min-width: 32px; min-width: $menuitem_size;
padding: 0; padding: 2px;
border: none; border: none;
outline: none; outline: none;
transition: none; transition: none;
@@ -35,7 +35,7 @@ popover.menu {
button.circular.image-button.model { button.circular.image-button.model {
@extend %button_basic_flat; @extend %button_basic_flat;
outline: none; outline: none;
padding: 11px; padding: $base_padding * 2;
box-shadow: inset 0 0 0 1px $border_color; box-shadow: inset 0 0 0 1px $border_color;
&:selected { &:selected {
@@ -124,9 +124,9 @@ popover.menu {
} }
modelbutton { modelbutton {
min-height: 32px; min-height: $menuitem_size;
min-width: 40px; min-width: 40px;
padding: 0 $menu_padding; padding: 2px $menu_padding;
border-radius: $menuitem_radius; border-radius: $menuitem_radius;
@include button(flat-normal); @include button(flat-normal);
@@ -213,7 +213,7 @@ popover.menu {
> row { > row {
margin: 0 $menu_margin; margin: 0 $menu_margin;
padding: $menu_padding; padding: $base_padding $menu_padding;
min-height: 0; min-height: 0;
} }
} }
@@ -225,7 +225,7 @@ menubar {
> item { > item {
min-height: 16px; min-height: 16px;
padding: 4px 8px; padding: $base_padding - 2px $base_padding + 2px;
border-radius: $button_radius; border-radius: $button_radius;
&:selected { //Seems like it :hover even with keyboard focus &:selected { //Seems like it :hover even with keyboard focus