updates theming

This commit is contained in:
Michel Fedde 2025-05-20 20:42:47 +02:00
parent 9fa1cbf055
commit 45ed668f93
9 changed files with 102 additions and 295 deletions

View file

@ -1,26 +1,39 @@
@import "../../library/entry.scss"; @import "../../library/entry.scss";
$background: rgba(30, 30, 30, 0.8); $border-gray: $border-color;
$foreground: #ffffff; $border-primary: $color2;
$transparentBackground: rgba(30, 30, 30, 0.6);
$text-color: $foreground;
#window { #window {
background-color: rgba(0, 0, 0, 0); background-color: rgba(0, 0, 0, 0);
} }
//border: 1px solid $color2;
box#main { box#main {
background-color: $background; background-color: transparent;
border: 1px solid $color2; color: $text-color;
border-radius: $border-radius;
color: $foreground;
box-shadow: $box-shadow-inner-less;
} }
entry { entry {
padding: $input-padding; padding: $input-padding;
border: none; border: none;
box-shadow: none; box-shadow: none;
color: $foreground; color: $text-color;
margin-bottom: 6px;
border: 1px solid $border-gray;
border-bottom: 1px solid $border-primary;
box-shadow: $box-shadow-inner-less;
}
entry, list#plugin {
background-color: $transparentBackground;
border-radius: $border-radius;
}
list {
} }
list#main { list#main {
@ -28,8 +41,11 @@ list#main {
} }
list#plugin { list#plugin {
background-color: rgba(0, 0, 0, 0);
padding: 1rem; padding: 1rem;
margin-top: 3px;
box-shadow: $box-shadow-inner-less;
border: 1px solid $border-gray;
} }
label#match-desc { label#match-desc {

View file

@ -5,91 +5,56 @@
background: $background; background: $background;
color: $foreground; color: $foreground;
border-radius: $border-radius; border-radius: $border-radius;
border-left: 1px solid $color5; border-left: 1px solid $color2;
box-shadow: $box-shadow-inner; box-shadow: $box-shadow-inner-less;
padding-left: 1rem; padding-left: 1rem;
padding-right: 1rem; padding-right: 1rem;
margin: .3rem; margin: .3rem;
margin-right: 8px; margin-right: 8px;
}
.control-center .control-center-list-placeholder { .collapsed {
/* The placeholder when there are no notifications */ .notification-row:not(:only-child) {
opacity: 0.5; .notification {
} background-color: rgba(0,0,0, 0.3);
}
}
}
.control-center .control-center-list { .notification {
/* List of notifications */
background: transparent;
}
.control-center .control-center-list .notification {
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7), 0 2px 6px 2px rgba(0, 0, 0, 0.3);
}
.control-center .control-center-list .notification .notification-default-action,
.control-center .control-center-list .notification .notification-action {
transition: opacity 400ms ease-in-out, background 0.15s ease-in-out;
}
.control-center .control-center-list .notification .notification-default-action:hover,
.control-center .control-center-list .notification .notification-action:hover {
background-color: $background;
}
.blank-window {
/* Window behind control center and on all other monitors */
background: transparent;
}
.floating-notifications {
background: transparent;
}
.floating-notifications .notification {
box-shadow: none; box-shadow: none;
} }
$btn-color: $foreground; button {
$btn-border-color: $foreground;
$btn-bg: rgba($foreground, 0.2);
$btn-bg-hover: transparent;
.control-center button { box-shadow: $box-shadow-inner-less;
color: $btn-border-color; color: $foreground;
border: 1px solid transparent; border: 1px solid $border-color;
border-radius: $border-radius; border-radius: $border-radius;
background: $btn-bg; background: $background;
}
.control-center button:hover { &:hover {
background: $btn-bg-hover; background: transparent;
border: 1px solid $btn-color; border: 1px solid $foreground;
} }
}
$switch-bg: transparent;
$switch-handle-bg: $foreground;
$switch-border-color: $foreground;
$switch-selected-bg: $color2;
.control-center switch {
switch {
font-size: initial; font-size: initial;
border-radius: $border-radius; border-radius: $border-radius;
background: $switch-bg; background: transparent;
border: 1px solid $switch-border-color; border: 1px solid $foreground;
box-shadow: none; box-shadow: none;
}
.control-center switch:checked { &:checked {
background: $switch-selected-bg; background: $color2;
} }
.control-center switch slider { slider {
background: $switch-handle-bg; background: $foreground;
border-radius: $border-radius; border-radius: $border-radius;
}
}
} }
.widget-title, .widget-dnd {
color: $foreground;
}

View file

@ -1,203 +1,25 @@
@use 'sass:color'; @use 'sass:color';
$notify-border-color: $color6; .notification {
background: none;
$notify-bg: $background;
$notify-bg-hover: $background;
$notify-bg-darker: color.adjust($background, $lightness: -2%);
$notify-bg-focus: color.adjust($background, $lightness: 4%);
$close-bg: rgba($foreground, 0.6);
$close-bg-hover: transparent;
.notification-row {
outline: none;
}
.notification-row:focus, .notification-row:hover {
background: $notify-bg-focus;
}
.notification-row .notification-background {
padding: 6px 12px;
}
.notification-row .notification-background .close-button {
/* The notification Close Button */
background: $close-bg;
color: $foreground;
text-shadow: none;
padding: 0;
border-radius: $border-radius;
margin-top: 5px;
margin-right: 5px;
box-shadow: none;
border: 1px solid transparent;
min-width: 24px;
min-height: 24px;
}
.notification-row .notification-background .close-button:hover {
box-shadow: $box-shadow;
background: $close-bg-hover;
transition: background 0.15s ease-in-out;
border: 1px solid $notify-border-color;
}
.notification-row .notification-background .notification {
/* The actual notification */
border-radius: $border-radius;
border: 1px solid $notify-border-color;
padding: 0;
transition: background 0.15s ease-in-out;
background: $notify-bg;
}
.notification-row .notification-background .notification.low {
/* Low Priority Notification */
}
.notification-row .notification-background .notification.normal {
/* Normal Priority Notification */
}
.notification-row .notification-background .notification.critical {
/* Critical Priority Notification */
}
.notification-row .notification-background .notification .notification-action, .notification-row .notification-background .notification .notification-default-action {
padding: 4px;
margin: 0;
box-shadow: none;
background: transparent;
border: none; border: none;
color: $foreground;
transition: background 0.15s ease-in-out;
}
.notification-row .notification-background .notification .notification-action:hover, .notification-row .notification-background .notification .notification-default-action:hover { .notification-default-action, .notification-action {
-gtk-icon-effect: none; background: $background;
background: $notify-bg-hover; margin-top: 0.25rem;
}
.notification-row .notification-background .notification .notification-default-action {
/* The large action that also displays the notification summary and body */
border-radius: $border-radius; border-radius: $border-radius;
border: 1px solid $border-color;
box-shadow: $box-shadow-inner-less;
&:hover {
border-color: $foreground;
background: rgba($background, 0.6);
}
&.notification-action:not(:last-child) {
margin-right: 0.4rem;
}
}
} }
.notification-row .notification-background .notification .notification-default-action:not(:only-child) {
/* When alternative actions are visible */
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content {
background: transparent;
border-radius: $border-radius;
padding: 0.3rem;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .image {
/* Notification Primary Image */
-gtk-icon-effect: none;
border-radius: 100px;
/* Size in px */
margin: 2px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .app-icon {
/* Notification app icon (only visible when the primary image is set) */
-gtk-icon-effect: none;
-gtk-icon-shadow: 0 1px 4px black;
margin: 6px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .text-box .summary {
/* Notification summary/title */
font-size: 16px;
font-weight: bold;
background: transparent;
color: $foreground;
text-shadow: none;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .text-box .time {
/* Notification time-ago */
font-size: 16px;
font-weight: bold;
background: transparent;
color: $foreground;
text-shadow: none;
margin-right: 30px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .text-box .body {
/* Notification body */
font-size: 15px;
font-weight: normal;
background: transparent;
color: $foreground;
text-shadow: none;
}
.notification-row .notification-background .notification .notification-default-action .notification-content progressbar {
/* The optional notification progress bar */
margin-top: 4px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .body-image {
/* The "extra" optional bottom notification image */
margin-top: 4px;
background-color: white;
border-radius: $border-radius;
-gtk-icon-effect: none;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply {
/* The inline reply section */
margin-top: 4px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-entry {
background: $notify-bg-darker;
color: $foreground;
caret-color: $foreground;
border: 1px solid $notify-border-color;
border-radius: $border-radius;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-button {
margin-left: 4px;
background: $notify-bg;
border: 1px solid $notify-border-color;
border-radius: $border-radius;
color: $foreground;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-button:disabled {
background: initial;
color: $foreground;
border: 1px solid $notify-border-color;
border-color: transparent;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-button:hover {
background: $notify-bg-hover;
}
.notification-row .notification-background .notification .notification-action {
/* The alternative actions below the default action */
border-top: 1px solid $notify-border-color;
border-radius: 0px;
border-right: 1px solid $notify-border-color;
}
.notification-row .notification-background .notification .notification-action:first-child {
/* add bottom border radius to eliminate clipping */
border-bottom-left-radius: 12px;
}
.notification-row .notification-background .notification .notification-action:last-child {
border-bottom-right-radius: 12px;
border-right: none;
}

View file

@ -1,7 +1,7 @@
.module .module
{ {
color: $foreground; color: $foreground;
padding: 0.2rem 0.3rem 0.2rem 0.3rem; padding: 0.2rem 1rem;
} }
#battery.warning, #battery.warning,

View file

@ -35,8 +35,8 @@ window.semi-hidden {
border-radius: $border-radius; border-radius: $border-radius;
background-color: $background; background-color: $background;
border: 1px solid rgba($foreground, 0.4); border: 1px solid $border-color;
box-shadow: $box-shadow-inner-less box-shadow: $box-shadow-inner-less;
} }
.hidden { .hidden {

View file

@ -1,4 +1,7 @@
@import "../../../.cache/wal/colors.scss"; @import "../../../.cache/wal/colors.scss";
$walForeground: $foreground;
$walBackground: $background;
$background: rgba(30, 30, 30, 0.5); $background: rgba(30, 30, 30, 0.5);
$foreground: #ffffff; $foreground: #ffffff;

View file

@ -1,5 +1,5 @@
$border-radius: 15px; $border-radius: 13px;
$border-color: $foreground; $border-color: rgba(white, 0.2);
$input-padding: 8px 15px; $input-padding: 8px 15px;

View file

@ -8,4 +8,5 @@ setupWatchers() {
setupWatchers | while read line; do setupWatchers | while read line; do
echo "Recomiling..." echo "Recomiling..."
$HOME/.config/theming/compile.sh >/dev/null $HOME/.config/theming/compile.sh >/dev/null
$HOME/.config/theming/update.sh >/dev/null
done done

View file

@ -5,7 +5,7 @@
"layer": "overlay", "layer": "overlay",
"exclusive": false, "exclusive": false,
"position": "right", "position": "top",
"reload_style_on_change": true, "reload_style_on_change": true,
"name": "semi-hidden", "name": "semi-hidden",
"id": "semi-hidden", "id": "semi-hidden",