2024-02-20 19:31:21 +00:00
|
|
|
{
|
|
|
|
config,
|
2024-02-20 19:42:19 +00:00
|
|
|
pkgs,
|
2024-02-20 19:31:21 +00:00
|
|
|
accentColour,
|
|
|
|
...
|
|
|
|
}: {
|
2024-02-20 19:42:19 +00:00
|
|
|
home.packages = [pkgs.swaynotificationcenter];
|
2024-02-08 19:27:21 +00:00
|
|
|
xdg.configFile."swaync/style.css".text = with config.lib.stylix.colors; ''
|
|
|
|
* {
|
2024-02-20 19:31:21 +00:00
|
|
|
all: unset;
|
|
|
|
font-size: ${toString config.stylix.fonts.sizes.desktop}px;
|
|
|
|
font-family: "${config.stylix.fonts.monospace.name}";
|
|
|
|
transition: 200ms;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.floating-notifications.background .notification-row .notification-background {
|
2024-02-21 09:26:37 +00:00
|
|
|
border-radius: 10px;
|
2024-02-20 19:31:21 +00:00
|
|
|
border: 1px solid ${withHashtag.${accentColour}};
|
|
|
|
margin: 18px;
|
|
|
|
background-color: rgba(${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, 0.5);
|
|
|
|
color: ${withHashtag.base05};
|
|
|
|
padding: 0;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.floating-notifications.background
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification {
|
|
|
|
padding: 7px;
|
2024-02-21 09:26:37 +00:00
|
|
|
border-radius: 10px;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.floating-notifications.background
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
.notification-content {
|
|
|
|
margin: 7px;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.floating-notifications.background
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
.notification-content
|
|
|
|
.summary {
|
|
|
|
color: ${withHashtag.base05};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.floating-notifications.background
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
.notification-content
|
|
|
|
.time {
|
|
|
|
color: ${withHashtag.base04};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.floating-notifications.background
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
.notification-content
|
|
|
|
.body {
|
|
|
|
color: ${withHashtag.base05};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.floating-notifications.background
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
> *:last-child
|
|
|
|
> * {
|
|
|
|
min-height: 3.4em;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.floating-notifications.background
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
> *:last-child
|
|
|
|
> *
|
|
|
|
.notification-action {
|
2024-02-21 09:26:37 +00:00
|
|
|
border-radius: 10px;
|
2024-02-20 19:31:21 +00:00
|
|
|
background-color: ${withHashtag.base01};
|
|
|
|
color: ${withHashtag.base05};
|
|
|
|
margin: 7px;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.floating-notifications.background
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
> *:last-child
|
|
|
|
> *
|
|
|
|
.notification-action:hover {
|
|
|
|
background-color: ${withHashtag.base01};
|
|
|
|
color: ${withHashtag.base05};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.floating-notifications.background
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
> *:last-child
|
|
|
|
> *
|
|
|
|
.notification-action:active {
|
|
|
|
background-color: ${withHashtag.blue};
|
|
|
|
color: ${withHashtag.base00};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.floating-notifications.background
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.close-button {
|
|
|
|
margin: 7px;
|
|
|
|
padding: 2px;
|
2024-02-21 09:26:37 +00:00
|
|
|
border-radius: 10px;
|
2024-02-20 19:31:21 +00:00
|
|
|
background-color: ${withHashtag.red};
|
|
|
|
color: ${withHashtag.base00};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.floating-notifications.background
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.close-button:hover {
|
|
|
|
background-color: ${withHashtag.red};
|
|
|
|
color: ${withHashtag.base00};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.floating-notifications.background
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.close-button:active {
|
|
|
|
background-color: ${withHashtag.red};
|
|
|
|
color: ${withHashtag.base00};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center {
|
2024-02-21 09:26:37 +00:00
|
|
|
border-radius: 10px;
|
2024-02-20 19:31:21 +00:00
|
|
|
border: 1px solid ${withHashtag.${accentColour}};
|
|
|
|
margin: 18px;
|
|
|
|
background-color: rgba(${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, 0.5);
|
|
|
|
color: ${withHashtag.base05};
|
|
|
|
padding: 14px;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center .widget-title {
|
2024-02-20 19:31:21 +00:00
|
|
|
color: ${withHashtag.base05};
|
|
|
|
font-size: 1.3em;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center .widget-title button {
|
2024-02-20 19:31:21 +00:00
|
|
|
border-radius: 7px;
|
|
|
|
background-color: ${withHashtag.base01};
|
|
|
|
color: ${withHashtag.base05};
|
|
|
|
padding: 8px;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center .widget-title button:hover {
|
2024-02-20 19:31:21 +00:00
|
|
|
background-color: ${withHashtag.base02};
|
|
|
|
color: ${withHashtag.base05};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center .widget-title button:active {
|
2024-02-20 19:31:21 +00:00
|
|
|
background-color: ${withHashtag.base03};
|
|
|
|
color: ${withHashtag.base05};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center .notification-row .notification-background {
|
2024-02-21 09:26:37 +00:00
|
|
|
border-radius: 10px;
|
2024-02-20 19:31:21 +00:00
|
|
|
background-color: ${withHashtag.base01};
|
|
|
|
color: ${withHashtag.base05};
|
|
|
|
margin-top: 14px;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center .notification-row .notification-background .notification {
|
2024-02-20 19:31:21 +00:00
|
|
|
padding: 7px;
|
|
|
|
border-radius: 7px;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
.notification-content {
|
|
|
|
margin: 7px;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
.notification-content
|
|
|
|
.summary {
|
|
|
|
color: ${withHashtag.base05};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
.notification-content
|
|
|
|
.time {
|
|
|
|
color: ${withHashtag.base04};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
.notification-content
|
|
|
|
.body {
|
|
|
|
color: ${withHashtag.base05};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
> *:last-child
|
|
|
|
> * {
|
|
|
|
min-height: 3.4em;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
> *:last-child
|
|
|
|
> *
|
|
|
|
.notification-action {
|
|
|
|
border-radius: 7px;
|
|
|
|
background-color: ${withHashtag.base00};
|
|
|
|
color: ${withHashtag.base05};
|
|
|
|
margin: 7px;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
> *:last-child
|
|
|
|
> *
|
|
|
|
.notification-action:hover {
|
|
|
|
background-color: ${withHashtag.base01};;
|
|
|
|
color: ${withHashtag.base05};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.notification
|
|
|
|
> *:last-child
|
|
|
|
> *
|
|
|
|
.notification-action:active {
|
|
|
|
background-color: ${withHashtag.blue};
|
|
|
|
color: ${withHashtag.base05};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center .notification-row .notification-background .close-button {
|
2024-02-20 19:31:21 +00:00
|
|
|
margin: 7px;
|
|
|
|
padding: 2px;
|
|
|
|
border-radius: 6.3px;
|
|
|
|
background-color: ${withHashtag.red};
|
|
|
|
color: ${withHashtag.base00};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center .notification-row .notification-background .close-button:hover {
|
2024-02-20 19:31:21 +00:00
|
|
|
background-color: ${withHashtag.red};
|
|
|
|
color: ${withHashtag.base00};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center
|
2024-02-20 19:31:21 +00:00
|
|
|
.notification-row
|
|
|
|
.notification-background
|
|
|
|
.close-button:active {
|
|
|
|
background-color: ${withHashtag.red};
|
|
|
|
color: ${withHashtag.base00};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center .notification-row .notification-background:hover {
|
2024-02-20 19:31:21 +00:00
|
|
|
background-color: ${withHashtag.base00};
|
|
|
|
color: ${withHashtag.base05};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center .notification-row .notification-background:active {
|
2024-02-20 19:31:21 +00:00
|
|
|
background-color: ${withHashtag.blue};
|
|
|
|
color: ${withHashtag.base05};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
progressbar,
|
|
|
|
progress,
|
|
|
|
trough {
|
2024-02-20 19:31:21 +00:00
|
|
|
border-radius: 12.6px;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.notification.critical progress {
|
2024-02-20 19:31:21 +00:00
|
|
|
background-color: ${withHashtag.red};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.notification.low progress,
|
|
|
|
.notification.normal progress {
|
2024-02-20 19:31:21 +00:00
|
|
|
background-color: ${withHashtag.blue};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
trough {
|
2024-02-20 19:31:21 +00:00
|
|
|
background-color: ${withHashtag.base00};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center trough {
|
2024-02-20 19:31:21 +00:00
|
|
|
background-color: ${withHashtag.base03};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center-dnd {
|
2024-02-20 19:31:21 +00:00
|
|
|
margin-top: 5px;
|
|
|
|
border-radius: 8px;
|
|
|
|
background: ${withHashtag.base00};
|
|
|
|
border: 1px solid ${withHashtag.base03};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center-dnd:checked {
|
2024-02-20 19:31:21 +00:00
|
|
|
background: ${withHashtag.base00};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-center-dnd slider {
|
2024-02-20 19:31:21 +00:00
|
|
|
background: ${withHashtag.base03};
|
|
|
|
border-radius: 8px;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.widget-dnd {
|
2024-02-20 19:31:21 +00:00
|
|
|
margin: 0px;
|
|
|
|
font-size: 1.1rem;
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.widget-dnd > switch {
|
2024-02-20 19:31:21 +00:00
|
|
|
font-size: initial;
|
|
|
|
border-radius: 8px;
|
|
|
|
background: ${withHashtag.base00};
|
|
|
|
border: 1px solid ${withHashtag.base03};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.widget-dnd > switch:checked {
|
2024-02-20 19:31:21 +00:00
|
|
|
background: ${withHashtag.base00};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.widget-dnd > switch slider {
|
2024-02-20 19:31:21 +00:00
|
|
|
background: ${withHashtag.base01};
|
|
|
|
border-radius: 8px;
|
|
|
|
border: 1px solid ${withHashtag.${accentColour}};
|
2024-02-08 19:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
'';
|
|
|
|
}
|