-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve CircularProgressBar.py
#66
base: main
Are you sure you want to change the base?
Conversation
Sorry I deleted |
I'll try to reimplement it as soon as I get extra free time 🙃. |
I think now is ready self.widget = CircularProgressBar(
# pie=True,
size=24,
line_width=1,
name=name,
style_classes=style_classes,
value=initial_value,
line_style="round",
tooltip_text=f"{tooltip_text} ({initial_value})",
child=child,
start_at=0,
end_at=0.5,
min_value=0,
max_value=100,
)
self.fabricator = Fabricator(
poll_from=poll_from,
interval=interval,
stream=stream,
)
self.fabricator.connect("changed", self.update_widget) |
css style .cpu {
background: rgba($color: $secondary, $alpha: 0.4);
color: rgba($secondary, 0);
border: solid 4px rgba($secondary, 1);
}
.cpu label {
font-family: $icon-font-family;
font-size: 0.8rem;
color: $secondary;
} |
I’m also considering setting .cpu {
background: rgba($color: $secondary, $alpha: 0.4); // Draws the circle background
// color: rgba($secondary, 0); // Not needed
border: solid 4px rgba($secondary, 1); // Draws the progress
} |
start_at
end_at
child