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

Feature: label prefix on widgets #1039

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

CtByte
Copy link
Contributor

@CtByte CtByte commented Oct 9, 2024

I made the label prefix configurable. Show icon, text only or both.


#[derive(Copy, Clone, Debug, Serialize, Deserialize, JsonSchema)]
pub enum LabelPrefix {
Icon,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good, let's just add some basic doc strings (/// Show an icon, /// Show text, /// Show an icon and text) here so they get picked up with the JsonSchema derive and can be shown to people using autocompletions in their editors

Copy link
Contributor Author

@CtByte CtByte Oct 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I will do that.

Also I was thinking about adding a 4th option called None for the real minimalists out there. On some widgets it might make sense, like the Time and Date.

Copy link
Contributor Author

@CtByte CtByte Oct 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you have any comments on the default values on the widgets?

Battery: Icon
Cpu: IconAndText
Date: Icon
Memory: IconAndText
Network: Icon
Storage: IconAndText
Time: Icon


I would also like to get your opinion on the text options:

Battery: BAT
Cpu: CPU
Date: DATE
Memory: RAM
Network:
-UP, DOWN,
-∑ => \u{2211}UP, \u{2211}DOWN / ∑UP, ∑DOWN or TUP, TDOWN
Storage: (just the drive letter?)
Time: TIME

@LGUG2Z LGUG2Z force-pushed the master branch 4 times, most recently from e922b9a to 24da24f Compare October 10, 2024 03:17
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.

2 participants