1
0
forked from extern/nix-config

ironbar: Simplify

This commit is contained in:
Donovan Glover 2023-07-05 09:20:32 -04:00
parent 6a7f3b2450
commit c6bc8415b2
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -20,7 +20,6 @@
"center": [ "center": [
{ {
"show_icons": true,
"type": "launcher", "type": "launcher",
"favorites": [ "favorites": [
"librewolf", "librewolf",
@ -42,12 +41,6 @@
''; '';
xdg.configFile."ironbar/style.css".text = with config.lib.stylix.colors; /* css */ '' xdg.configFile."ironbar/style.css".text = with config.lib.stylix.colors; /* css */ ''
@define-color color_bg #${base00};
@define-color color_bg_dark #${base01};
@define-color color_border #${base01};
@define-color color_border_active #${base09};
@define-color color_text #${base05};
* { * {
font-family: "Noto Sans CJK JP", "Font Awesome 6 Free Solid"; font-family: "Noto Sans CJK JP", "Font Awesome 6 Free Solid";
font-size: 16px; font-size: 16px;
@ -56,26 +49,23 @@
outline: none; outline: none;
font-weight: 500; font-weight: 500;
background: none; background: none;
color: #${base05};
} }
.background { .background {
background: alpha(@color_bg, 0.95); background: alpha(#${base00}, 0.95);
}
button, label {
color: @color_text;
} }
button:hover { button:hover {
background: @color_bg_dark; background: #${base01};
} }
#bar { #bar {
border-top: 1px solid @color_border; border-top: 1px solid #${base01};
} }
.popup { .popup {
border: 1px solid @color_border; border: 1px solid #${base01};
padding: 1em; padding: 1em;
} }
@ -84,19 +74,14 @@
} }
.popup-clock .calendar-clock { .popup-clock .calendar-clock {
color: @color_text;
font-family: "Maple Mono"; font-family: "Maple Mono";
font-size: 2.5em; font-size: 2.5em;
padding-bottom: 0.1em; padding-bottom: 0.1em;
} }
.popup-clock .calendar {
color: @color_text;
}
.popup-clock .calendar .header { .popup-clock .calendar .header {
padding-top: 1em; padding-top: 1em;
border-top: 1px solid @color_border; border-top: 1px solid #${base01};
font-size: 1.5em; font-size: 1.5em;
} }
@ -111,7 +96,7 @@
} }
.launcher .focused { .launcher .focused {
box-shadow: inset 0 -2px @color_border_active; box-shadow: inset 0 -2px #${base09};
} }
.popup-launcher { .popup-launcher {
@ -119,7 +104,7 @@
} }
.popup-launcher .popup-item:not(:first-child) { .popup-launcher .popup-item:not(:first-child) {
border-top: 1px solid @color_border; border-top: 1px solid #${base01};
} }
''; '';
} }