Files
nixos/henrovnix_ok/assets/conf/desktop/notifications/ncsway/style.css
T
henrov 5aa1f2a52f Waybar style.css (fixed: no linear-gradient(...) padding-box that breaks
GTK CSS, and defines the missing colors  referenced)

SwayNC style.css (uses the same @define-color values and the same @base
background; also fixes  card_rgba typo)

Note: Blur is not a CSS thing here — SwayNC is GTK-based, so
backdrop-filter is not reliably supported. Do blur via Hyprland
layerrule. SwayNC is explicitly a GTK notification center.
2026-02-27 15:26:14 +01:00

188 lines
4.0 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* SwayNotificationCenter (swaync) aligned to Waybar palette
* Put in: ~/.config/swaync/style.css
*
* swaync is GTK-based and supports loading a custom CSS file. :contentReference[oaicite:1]{index=1}
*/
/* Match Waybar palette exactly */
@define-color base rgba(30, 30, 46, 1.0);
@define-color inactive rgba(89, 89, 89, 0.667);
@define-color blue rgba(51, 204, 255, 0.933);
@define-color green rgba(0, 255, 153, 0.933);
@define-color text rgba(255, 255, 255, 1.0);
@define-color surface1 rgba(255, 255, 255, 0.08);
@define-color subtext1 rgba(255, 255, 255, 0.35);
@define-color red rgba(255, 0, 0, 0.90);
@define-color yellow rgba(249, 226, 175, 1.0);
/* Use the SAME "base" look as Waybar, but slightly transparent if you want glass */
@define-color panel_rgba rgba(30, 30, 46, 0.92); /* set to 1.0 if you want fully identical */
@define-color card_rgba rgba(30, 30, 46, 0.92); /* FIXED: removed extra ')' */
/* Kill list selection glow */
list,
listview,
row,
listview row,
listview row:selected,
listview row:hover,
listview row:focus,
listview row:active {
background-color: transparent;
background-image: none;
box-shadow: none;
outline: none;
}
* {
color: @text;
font-family:
Aporetic Sans Mono,
Iosevka Nerd Font,
Sans;
font-size: 13px;
}
.notification-row {
margin: 0;
padding: 0;
}
window#notification-window {
background: transparent;
}
/* Control center panel — match Waybar base */
.control-center {
background-color: @panel_rgba;
border-radius: 10px; /* matches your Waybar rounded vibe */
padding: 12px;
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
/* Widget headers — use Waybar surface1 */
.widget-title {
margin: 0 0 10px 0;
padding: 6px 10px;
border-radius: 10px;
background-color: @surface1;
border: 1px solid rgba(255, 255, 255, 0.08);
}
.widget-title > label {
font-size: 14px;
font-weight: 700;
}
.widget-title button {
border-radius: 10px;
padding: 6px 10px;
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: none;
}
.widget-title button:hover {
background-color: rgba(255, 255, 255, 0.14);
}
.widget-dnd {
margin: 0 0 12px 0;
padding: 10px 12px;
border-radius: 10px;
background-color: @surface1;
border: 1px solid rgba(255, 255, 255, 0.08);
}
.widget-dnd .switch {
border-radius: 999px;
}
.widget-notifications {
margin: 0;
padding: 0;
}
/* Notification cards */
.notification-background {
margin: 10px 0;
padding: 0;
background: transparent;
}
.notification-background .notification {
background-color: @card_rgba;
border-radius: 10px;
padding: 12px 12px;
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
/* Left accent (same blue/green/red) */
.notification.critical {
border-left: 4px solid @red;
}
.notification.low {
border-left: 4px solid @blue;
}
.notification.normal {
border-left: 4px solid @green;
}
/* Meta */
.notification .app-name {
color: @subtext1;
font-weight: 700;
}
.notification .time {
color: @subtext1;
font-size: 12px;
}
/* Text */
.notification .summary {
color: @text;
font-weight: 800;
font-size: 14px;
margin-top: 2px;
}
.notification .body {
color: @subtext1;
margin-top: 6px;
line-height: 1.25;
}
/* Buttons */
.notification button {
border-radius: 10px;
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: none;
padding: 6px 10px;
}
.notification button:hover {
background-color: rgba(255, 255, 255, 0.14);
}
.notification .close-button {
border-radius: 10px;
background-color: rgba(255, 0, 0, 0.12);
border: 1px solid rgba(255, 0, 0, 0.18);
}
.notification .close-button:hover {
background-color: rgba(255, 0, 0, 0.2);
}
.control-center .placeholder {
color: @subtext1;
}
separator {
background: rgba(255, 255, 255, 0.08);
}