Skip to content
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

Advanced radials #500

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

caerffili
Copy link

@caerffili caerffili commented Apr 15, 2024

I want the ability to create intersecting radials that share the same screen real estate, for example the CPU usage forms the left half and GPU usage forms the right half. Best described on the screen shot-

preview

As the radials overlap they would ordinarily overwrite and corrupt each other, unless I've missed something of course!!!!

I've implemented two new elements in the yaml for radials-

CUSTOM_BBOX: [0, 0, 80, 160]
TEXT_OFFSET: [-30, 0]

Custom BBox defines a boundary box which overrides the standard boundary box and effectively clips the radial image.

Text offset allows moving the text inside the boundary relative to the centre of the radial.

UPDATE - Added the ability to draw a background colour on the radial to highlight the full scale and the option to round off the end of the radial bars (draws an ellipse). New yaml to support this-

BAR_BACKGROUND_COLOR: 0, 50, 0
DRAW_BAR_BACKGROUND: True
BAR_DECORATION: Ellipse

@caerffili
Copy link
Author

I think I found a bug fix in stats.py as well-

image

@mathoudebine
Copy link
Owner

Thanks for contributing! I will try to review it and integrate it soon 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants