💄 modify colors, new widget

This commit is contained in:
João Dias
2024-08-04 11:18:58 -03:00
parent 4d41dffbdb
commit 36ee4d46a6
2 changed files with 58 additions and 118 deletions
+7 -1
View File
@@ -5,7 +5,7 @@
@define-color red #f38ba8; @define-color red #f38ba8;
@define-color maroon #eba0ac; @define-color maroon #eba0ac;
@define-color peach #fab387; @define-color peach #fab387;
@define-color yellow #f9e2af; @define-color yellow alpha(#f9e2af, .8);
@define-color green #a6e3a1; @define-color green #a6e3a1;
@define-color teal #94e2d5; @define-color teal #94e2d5;
@define-color sky #89dceb; @define-color sky #89dceb;
@@ -24,3 +24,9 @@
@define-color base #1e1e2e; @define-color base #1e1e2e;
@define-color mantle #181825; @define-color mantle #181825;
@define-color crust #11111b; @define-color crust #11111b;
@define-color background alpha(@base, .6);
@define-color bar shade(@yellow, .2);
@define-color hover shade(@yellow, .5);
@define-color active shade(@yellow, .55);
@define-color highlight shade(@yellow, .4);
+24 -90
View File
@@ -1,7 +1,5 @@
@import "mocha.css"; @import "_colors.css";
@define-color hover shade(@blue, .5);
* { * {
color: @text; color: @text;
@@ -21,10 +19,7 @@ window > * {
margin-left: 4px; margin-left: 4px;
margin-right: 4px; margin-right: 4px;
padding: 2px; padding: 2px;
} background: @bar;
window > * {
background: alpha(@base, .8);
} }
window#waybar { window#waybar {
@@ -32,32 +27,15 @@ window#waybar {
} }
window#waybar.hidden { window#waybar.hidden {
opacity: .1; opacity: 0;
} }
/*window#waybar.empty {
background-color: transparent;
}
window#waybar.solo {
background-color: #FFFFFF;
}
window#waybar.termite {
background-color: alpha(@base, .1);
}
window#waybar.chromium {
background-color: @base;
}*/
button { button {
/* Use box-shadow instead of border so the text isn't offset */
/*box-shadow: inset 0 -3px transparent;*/
/* Avoid rounded borders under each button name */
border: none; border: none;
background: alpha(@base, .3); background: @background;
transition: 120ms ease-in; transition: 120ms ease-in;
} }
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover { button:hover {
background-color: @hover; background-color: @hover;
} }
@@ -93,12 +71,21 @@ widget > *:hover:not(#window):not(#workspaces):not(#tray):not(#custom-media) {
border-radius: 16px; border-radius: 16px;
} }
#workspaces button *:hover { #workspaces button label {
background: @base; margin-top: .2px;
margin-left: .1px;
}
#workspaces button:hover {
background: @hover;
} }
#workspaces button.active { #workspaces button.active {
background: alpha(shade(@blue, .5), .6); background: @active;
}
#workspaces button.active label {
margin-right: 1px;
} }
#workspaces button.urgent { #workspaces button.urgent {
@@ -106,16 +93,11 @@ widget > *:hover:not(#window):not(#workspaces):not(#tray):not(#custom-media) {
} }
#custom-notifications { #custom-notifications {
background: alpha(@base, .3);
font-size: 16px; font-size: 16px;
padding-left: 10px; padding-left: 10px;
padding-right: 12px; padding-right: 12px;
} }
#custom-notifications:hover {
background: alpha(@blue, .5);
}
#clock, #clock,
#battery, #battery,
#cpu, #cpu,
@@ -142,13 +124,11 @@ widget > *:hover:not(#window):not(#workspaces):not(#tray):not(#custom-media) {
#workspaces {} #workspaces {}
*/ */
#clock { @keyframes blink {
background-color: alpha(@base, .3); to {
background-color: alpha(@crust, .3);
color: @orange;
} }
#battery {
background-color: alpha(@base, .3);
color: @text;
} }
#battery.charging, #battery.plugged { #battery.charging, #battery.plugged {
@@ -160,13 +140,6 @@ widget > *:hover:not(#window):not(#workspaces):not(#tray):not(#custom-media) {
background-color: alpha(@blue, .35); background-color: alpha(@blue, .35);
} }
@keyframes blink {
to {
background-color: alpha(@crust, .3);
color: @orange;
}
}
/* Using steps() instead of linear as a timing function to limit cpu usage */ /* Using steps() instead of linear as a timing function to limit cpu usage */
#battery.critical:not(.charging) { #battery.critical:not(.charging) {
background-color: alpha(shade(@orange, 0.5), .3); background-color: alpha(shade(@orange, 0.5), .3);
@@ -178,53 +151,18 @@ widget > *:hover:not(#window):not(#workspaces):not(#tray):not(#custom-media) {
animation-direction: alternate; animation-direction: alternate;
} }
label:focus { #custom-media {
background-color: shade(@blue, 0.4); background: @highlight;
} }
#cpu { #custom-media:hover {
background-color: @base; background: @hover;
color: @text;
}
#memory {
background-color: @base;
}
#disk {
background-color: @base;
}
#pulseaudio {
background-color: alpha(@base, .3);
color: @text;
}
#wireplumber {
background-color: alpha(@base, .3);
color: @text;
}
#custom-media.custom-spotify {
background-color: alpha(shade(@green, .65), .3);
}
#custom-media.custom-spotify:hover {
background: alpha(@green, .3);
}
#temperature {
background-color: alpha(@base, .3);
} }
#temperature.critical { #temperature.critical {
background-color: alpha(@red, .3); background-color: alpha(@red, .3);
} }
#tray {
background-color: alpha(@base, .3);
}
#tray > .passive { #tray > .passive {
-gtk-icon-effect: dim; -gtk-icon-effect: dim;
} }
@@ -234,10 +172,6 @@ label:focus {
background: alpha(@orange, .3); background: alpha(@orange, .3);
} }
#scratchpad {
background: alpha(@base, .3);
}
#scratchpad.empty { #scratchpad.empty {
background-color: transparent; background-color: transparent;
} }