hyprland/swaync: use gtk vars

parent 33ac629e
@define-color bg #222226;
@define-color selected_bg #38383C;
@define-color text #ffffff;
@define-color border #5C84B9;
@define-color control-center-border #434347;
@define-color priority_low #74e3b4;
@define-color priority_normal #86e8ff;
@define-color priority_critical #f26476;
* { * {
color: @text; color: var(--window-fg-color);
font-size: 15px; font-size: 15px;
transition: 200ms; transition: 200ms;
} }
...@@ -21,9 +10,9 @@ ...@@ -21,9 +10,9 @@
/* ---------- ЦЕНТР УПРАВЛЕНИЯ ---- CONTROL CENTER */ /* ---------- ЦЕНТР УПРАВЛЕНИЯ ---- CONTROL CENTER */
.control-center { .control-center {
background: @bg; background: var(--window-bg-color);
border-radius: 15px; border-radius: var(--window-radius);
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3); box-shadow: 0 0 10px 0 var(--headerbar-shade-color);
} }
.notification-row { .notification-row {
...@@ -33,7 +22,7 @@ ...@@ -33,7 +22,7 @@
.notification-row:focus, .notification-row:focus,
.notification-group:focus, .notification-group:focus,
.notification-group { .notification-group {
background: @bg; background: none;
} }
.blank-window, .blank-window,
...@@ -41,32 +30,31 @@ ...@@ -41,32 +30,31 @@
background: none; background: none;
} }
/* ---------- ГРУППА УВЕДОМЛЕНИЙ ---- NOTIFICATION GROUP */ /* ---------- ГРУППА УВЕДОМЛЕНИЙ ---- NOTIFICATION GROUP */
.notification-group .notification-group-close-button .close-button { .notification-group .notification-group-close-button .close-button {
background: alpha(@bg, 0.6); background: alpha(var(--window-bg-color), 0.4);
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.4); box-shadow: 0 0 5px 0 var(--headerbar-shade-color);
margin: 15px 20px; margin: 15px 20px;
} }
.notification-group .notification-group-close-button .close-button:hover { .notification-group .notification-group-close-button .close-button:hover {
background: alpha(@bg, 0.4); background: alpha(var(--window-bg-color), 0.8);
} }
.notification-group .notification-group-buttons, .notification-group .notification-group-buttons,
.notification-group .notification-group-headers { .notification-group .notification-group-headers {
background: transparent; background: transparent;
margin: 0 15px; margin: 0 15px;
color: @text; color: var(--window-fg-color);
} }
.notification-group .notification-group-headers .notification-group-icon { .notification-group .notification-group-headers .notification-group-icon {
color: @text; color: var(--window-fg-color);
} }
.notification-group .notification-group-headers .notification-group-header { .notification-group .notification-group-headers .notification-group-header {
font-size: 18px; font-size: 18px;
color: @text; color: var(--window-fg-color);
} }
.notification-group .notification-group-buttons { .notification-group .notification-group-buttons {
...@@ -75,35 +63,34 @@ ...@@ -75,35 +63,34 @@
/* ---------- УВЕДОМЛЕНИЕЯ ---- NOTIFICATIONS */ /* ---------- УВЕДОМЛЕНИЕЯ ---- NOTIFICATIONS */
.notification-row .notification-background .notification { .notification-row .notification-background .notification {
background: @selected_bg; background: var(--dialog-bg-color);
transition: background 0.15s ease-in-out; transition: background 0.15s ease-in-out;
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.4); box-shadow: 0 0 5px 0 var(--headerbar-shade-color);
border-radius: 15px; border-radius: var(--window-radius);
border: none; border: 1.5px solid var(--border-color);
border-left: 3px;
padding: 0px; padding: 0px;
} }
/* ----- НИЗКИЙ ПРИОРИТЕТ --- LOW */ /* ----- НИЗКИЙ ПРИОРИТЕТ --- LOW */
.notification-row .notification-background .notification.low { .notification-row .notification-background .notification.low {
border-left: 3px solid @priority_low; border-left: 4px solid var(--success-bg-color);
} }
/* ----- ОБЫЧНЫЙ ПРИОРИТЕТ --- NORMAL */ /* ----- ОБЫЧНЫЙ ПРИОРИТЕТ --- NORMAL */
.notification-row .notification-background .notification.normal { .notification-row .notification-background .notification.normal {
border-left: 3px solid @priority_normal; border-left: 4px solid var(--blue-3);
} }
/* ----- ВЫСОКИЙ ПРИОРИТЕТ --- CRITICAL */ /* ----- ВЫСОКИЙ ПРИОРИТЕТ --- CRITICAL */
.notification-row .notification-background .notification.critical { .notification-row .notification-background .notification.critical {
border-left: 3px solid @priority_critical; border-left: 4px solid var(--error-bg-color);
} }
/* ----- ДЕЙСТВИЕ ПО УМОЛЧАНИЮ --- DEFAULT ACTION */ /* ----- ДЕЙСТВИЕ ПО УМОЛЧАНИЮ --- DEFAULT ACTION */
.notification-default-action { .notification-default-action {
background: transparent; background: transparent;
padding: 10px; padding: 10px;
padding-left: 5px; padding-left: 10px;
margin: 0; margin: 0;
border: none; border: none;
} }
...@@ -116,7 +103,7 @@ ...@@ -116,7 +103,7 @@
} }
.notification-content .image { .notification-content .image {
border-radius: 15px; border-radius: var(--window-radius);
margin: 0px 10px 0px 0px; margin: 0px 10px 0px 0px;
} }
...@@ -137,7 +124,7 @@ ...@@ -137,7 +124,7 @@
background: transparent; background: transparent;
font-weight: normal; font-weight: normal;
font-size: 14px; font-size: 14px;
color: @text; color: var(--window-fg-color);
} }
.notification-content .text-box .summary, .notification-content .text-box .summary,
...@@ -156,12 +143,12 @@ ...@@ -156,12 +143,12 @@
/* ----- КНОПКА ЗАКРЫТИЯ --- CLOSE BUTTON */ /* ----- КНОПКА ЗАКРЫТИЯ --- CLOSE BUTTON */
.close-button { .close-button {
background: alpha(@bg, 0.6); background: alpha(var(--window-bg-color), 0.6);
color: @text; color: var(--window-fg-color);
} }
.close-button:hover { .close-button:hover {
background: alpha(@bg, 0.4); background: alpha(var(--window-bg-color), 0.4);
} }
/* ----- КНОПКА --- BUTTON */ /* ----- КНОПКА --- BUTTON */
...@@ -174,15 +161,16 @@ ...@@ -174,15 +161,16 @@
} }
.notification-action .text-button { .notification-action .text-button {
background: alpha(@bg, 0.4); background: alpha(var(--window-bg-color), 0.4);
border-radius: 12px; border-radius: var(--window-radius);
border: 1px solid var(--border-color);
font-size: 12px; font-size: 12px;
padding: 8px; padding: 5px;
} }
.notification-action .text-button:hover { .notification-action .text-button:hover {
background: alpha(@bg, 0.2); background: alpha(var(--window-bg-color), 0.2);
border: 1px solid @border; border: 2px solid var(--accent-bg-color);
} }
/* ---------- ВИДЖЕТЫ ---- WIDGETS */ /* ---------- ВИДЖЕТЫ ---- WIDGETS */
...@@ -202,12 +190,12 @@ ...@@ -202,12 +190,12 @@
.powermode-buttons { .powermode-buttons {
all: unset; all: unset;
background: @selected_bg; background: var(--dialog-bg-color);
border-radius: 12px; padding: 5px;
padding: 10px;
margin: 5px; margin: 5px;
border-radius: 15px; border-radius: var(--window-radius);
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); border: 1px solid var(--border-color);
box-shadow: 0px 0px 10px var(--headerbar-shade-color);
} }
.powermode-buttons .text-button { .powermode-buttons .text-button {
...@@ -215,31 +203,39 @@ ...@@ -215,31 +203,39 @@
background: transparent; background: transparent;
border: none; border: none;
margin: 2px; margin: 2px;
border-radius: 15px; border-radius: var(--window-radius);
padding: 0px;
} }
.powermode-buttons .text-button:hover { .powermode-buttons .text-button:hover {
background: alpha(@bg, 0.3); background: alpha(var(--accent-bg-color), 0.5);
} }
.powermode-buttons .text-button.toggle:checked { .powermode-buttons .text-button.toggle:checked {
background: alpha(@bg, 0.4); background: alpha(var(--accent-bg-color), 0.8);
} }
.powermode-buttons .text-button label { .powermode-buttons .text-button label {
margin: 0px;
padding-top: 5px;
padding-bottom: 5px; padding-bottom: 5px;
} }
.powermode-buttons .text-button label:hover { .powermode-buttons .text-button label:hover {
color: alpha(@text, 0.6); color: var(--accent-fg-color);
}
.powermode-buttons .text-button.toggle:checked label {
color: var(--accent-fg-color);
} }
/* ----- ГРОМКОСТЬ --- VOLUME */ /* ----- ГРОМКОСТЬ --- VOLUME */
.widget-volume { .widget-volume {
background: @selected_bg; background: var(--dialog-bg-color);
border-radius: 15px; border-radius: var(--window-radius);
padding: 5px; padding: 5px;
margin: 10px; margin: 10px;
border-radius: 15px; box-shadow: 0px 0px 10px var(--headerbar-shade-color);
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); border: 1px solid var(--border-color);
} }
.widget-volume .image-button { .widget-volume .image-button {
background: transparent; background: transparent;
...@@ -253,7 +249,6 @@ ...@@ -253,7 +249,6 @@
/* ----- ПРЕЕР --- MPRIS */ /* ----- ПРЕЕР --- MPRIS */
.widget-mpris { .widget-mpris {
margin: 5px; margin: 5px;
border-radius: 15px;
} }
.widget-mpris carouselindicatordots { .widget-mpris carouselindicatordots {
...@@ -272,18 +267,18 @@ ...@@ -272,18 +267,18 @@
.widget-mpris .widget-mpris-player { .widget-mpris .widget-mpris-player {
margin: 5px; margin: 5px;
border-radius: 15px; border-radius: var(--window-radius);
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); box-shadow: 0px 0px 10px var(--headerbar-shade-color);
border: 1px solid var(--border-color);
} }
.widget-mpris .widget-mpris-player .mpris-overlay { .widget-mpris .widget-mpris-player .mpris-overlay {
background: @selected_bg; background: var(--dialog-bg-color);
padding: 5px; padding: 5px;
} }
.widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-album-art { .widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-album-art {
border: 1.3px solid @border; border-radius: var(--window-radius);
border-radius: 15px;
margin: 3px; margin: 3px;
box-shadow: none; box-shadow: none;
} }
...@@ -302,7 +297,8 @@ ...@@ -302,7 +297,8 @@
} }
.widget-mpris .widget-mpris-player .mpris-overlay .image-button:hover { .widget-mpris .widget-mpris-player .mpris-overlay .image-button:hover {
background: alpha(@bg, 0.3); background: alpha(var(--window-bg-color), 0.3);
border: 0.5px solid var(--border-color);
} }
/* ----- ЗАГОЛОВОК --- TITLE */ /* ----- ЗАГОЛОВОК --- TITLE */
...@@ -317,14 +313,15 @@ ...@@ -317,14 +313,15 @@
} }
.widget-title>button { .widget-title>button {
background: @selected_bg; background: var(--dialog-bg-color);
border-radius: 15px; border-radius: var(--window-radius);
padding: 3px 5px 3px 2px; padding: 3px 5px 3px 2px;
border: 1px solid var(--border-color);
} }
.widget-title>button:hover { .widget-title>button:hover {
background: alpha(@selected_bg, 0.5); background: alpha(var(--dialog-bg-color), 0.5);
border: 1px solid @border; border: 1px solid var(--accent-bg-color);
} }
/* ----- НЕ БЕСПОКОИТЬ --- DND */ /* ----- НЕ БЕСПОКОИТЬ --- DND */
...@@ -336,11 +333,7 @@ ...@@ -336,11 +333,7 @@
.widget-dnd label { .widget-dnd label {
font-size: 16px; font-size: 16px;
color: alpha(@text, 0.8); color: alpha(var(--window-fg-color), 0.8);
}
.widget-notifications {
padding: 0px;
} }
/* ----- УВЕДОМЛЕНИЯ --- NOTIFICATIONS */ /* ----- УВЕДОМЛЕНИЯ --- NOTIFICATIONS */
...@@ -350,17 +343,17 @@ ...@@ -350,17 +343,17 @@
} }
.widget-notifications .notification-group.collapsed .widget-notifications .notification-group.collapsed
.notification-row:not(:last-child) .notification { .notification-row:not(:last-child) .notification {
background: @bg; background: var(--window-bg-color);
} }
.widget-notifications .notification-group.collapsed .widget-notifications .notification-group.collapsed
.notification-row:not(:last-child) .notification.low { .notification-row:not(:last-child) .notification.low {
border-left: 3px solid alpha(@priority_low, 0.5); border-left: 3px solid alpha(var(--success-bg-color), 0.5);
} }
.widget-notifications .notification-group.collapsed .widget-notifications .notification-group.collapsed
.notification-row:not(:last-child) .notification.normal { .notification-row:not(:last-child) .notification.normal {
border-left: 3px solid alpha(@priority_normal, 0.5); border-left: 3px solid alpha(var(--blue-3), 0.5);
} }
.widget-notifications .notification-group.collapsed .widget-notifications .notification-group.collapsed
.notification-row:not(:last-child) .notification.critical { .notification-row:not(:last-child) .notification.critical {
border-left: 3px solid alpha(@priority_critical, 0.5); border-left: 3px solid alpha(var(--error-bg-color), 0.5);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment