Fix battery icon styling

This commit is contained in:
Jas-SinghFSU
2024-07-02 00:34:07 -07:00
parent 0c680db1ae
commit 71231df924
2 changed files with 19 additions and 0 deletions

View File

@@ -25,10 +25,14 @@ const Brightness = () => {
class_name: "brightness-container",
children: [
Widget.Icon({
vexpand: true,
vpack: "center",
class_name: "brightness-slider-icon",
icon: icons.brightness.screen,
}),
Widget.Slider({
vpack: "center",
vexpand: true,
value: brightness.bind("screen_value"),
class_name: "menu-active-slider menu-slider brightness",
draw_value: false,
@@ -38,6 +42,8 @@ const Brightness = () => {
onChange: ({ value }) => (brightness.screen_value = value),
}),
Widget.Label({
vpack: "center",
vexpand: true,
class_name: "brightness-slider-label",
label: brightness
.bind("screen_value")

View File

@@ -44,4 +44,17 @@
.brightness-container {
padding-bottom: 1em;
}
.brightness-slider-icon {
font-size: 1.4em;
min-width: 1em;
min-height: 1em;
}
.brightness-slider-label {
font-size: 0.9em;
min-width: 2.5em;
font-weight: bold;
margin-bottom: 0.2em;
}
}