Change Color of Progress Widget with SCSS #919
Replies: 3 comments
-
Hey ! this can help you : /*background of progress bar*/
progressbar {
background-color: black;
}
/*active progress bar*/
progress {
background-color: white;
} For your modification use I hope I've been able to help you! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply :) What I don't get is how to specify .progressbar {
background-color: #{$purple};
}
.progress {
background-color: #{$blue};
} and here is my widget: (defwidget volume []
(box :class "popup_backdrop"
:orientation "vertical"
(image :class "volume_image"
:path "${volume_symbol}")
(label :class "text"
:text "${volume_level}%")
(progress :class "progressbar"
:halign "center"
:valign "center"
:value {volume_level}))) Forgive me, this is my first encounter with css ^_^ |
Beta Was this translation helpful? Give feedback.
-
My genius web dev waifu helped me solve this. Here it is if anyone needs.
(defwidget volume []
...
(progress :class "volume_meter"
:value {volume_level})))
.volume_meter {
background-color: #{$empty_portion_of_bar};
}
.volume_meter > trough > progress {
background-color: #{$full_portion_of_bar};
}
|
Beta Was this translation helpful? Give feedback.
-
Is anyone having trouble theming the progress widget?
I'm running into a problem with the color. setting the color property in the css class of my progress bar widget has no effect. I can set background, border-radius, etc. successfully but cannot set or change the color, so I suspect there is a class that I do not know about to set the foreground color of the little meter.
Something unknown happens when I comment out
all: unset;
in my*
class and the progress bar suddenly appears. Therefore, there must be something GTK is setting that I am not. However, I inspected the CSS nodes with and without that line commented out. I replicated the working CSS from the inspector but still no progress bar :(Here is the whole yuck:
I also tried setting the
min-width
for> through
as suggested in the documentation but I still don't have the progress bar.Does anyone know what the magic CSS property is?
Beta Was this translation helpful? Give feedback.
All reactions