Skip to content

Commit

Permalink
eww: more style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Sep 25, 2023
1 parent de1f0cf commit e3592f0
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 26 deletions.
5 changes: 3 additions & 2 deletions home/programs/eww/css/general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $border-width: 2px;
}

tooltip {
background: $bg;
background: $base;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 0 rgba(0, 0, 0, .4);
border-radius: $round;
}
Expand All @@ -67,6 +67,7 @@ scale {
}

highlight {
background: rgba(255, 255, 255, .7);
border-radius: $scaleh;
margin: 0 calc(0px - $scaleh / 2);
min-height: $scaleh;
Expand All @@ -76,7 +77,7 @@ scale {
.button {
background: rgba(255, 255, 255, .2);
border-radius: 100%;
padding: .4rem .5rem; /* general for icons */
padding: .2rem .4rem; /* general for icons */

&:hover {
background: rgba(255, 255, 255, .25);
Expand Down
6 changes: 3 additions & 3 deletions home/programs/eww/css/music.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

.cover {
box-shadow: 0 1px 2px -1px $bg;
min-height: 13rem;
min-width: 13rem;
min-height: 12rem;
min-width: 12rem;
}
}

Expand All @@ -36,7 +36,7 @@
}

.artist {
margin: 1rem;
margin: .7rem;
}

.buttons {
Expand Down
9 changes: 0 additions & 9 deletions home/programs/eww/css/osd.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,3 @@
min-width: 8rem;
}
}

/* scale highlight gradients for volume & brightness */
.osd-volume highlight {
background-image: linear-gradient(to top, $teal, $sky);
}

.osd-brightness highlight {
background-image: linear-gradient(to top, $yellow, $peach);
}
18 changes: 9 additions & 9 deletions home/programs/eww/css/system-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@

&.enabled button,
&.connected button {
background: $blue;
background: white;
.icon { color: black; }

&:hover {
background: rgba(255, 255, 255, .25);
}
}
}

Expand All @@ -39,14 +43,6 @@
.icon {
margin: 0 .3rem;
}

.volume highlight {
background-image: linear-gradient(to right, $teal, $sky);
}

.brightness highlight {
background-image: linear-gradient(to right, $yellow, $peach);
}
}

/* battery & power button */
Expand All @@ -61,3 +57,7 @@
.rate { color: #ccc; }
.status { margin: 0 .5rem; }
}

.button.power {
margin: .1rem;
}
2 changes: 1 addition & 1 deletion home/programs/eww/windows/osd.yuck
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:class "osd-part osd-${class}"
:space-evenly false
(label
:class "text"
:class "icon"
:text icon)
(scale
:value value)))
Expand Down
4 changes: 2 additions & 2 deletions home/programs/eww/windows/system-menu.yuck
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
(box
:hexpand true)
(button
:class "button"
:onclick "wlogout -p layer-shell &"
:class "button power"
:onclick "wlogout -p layer-shell & eww close system-menu"
(label
:class "icon"
:text "")))))
Expand Down

0 comments on commit e3592f0

Please sign in to comment.