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

feat: Add dynamic icon generation #79

Merged
merged 16 commits into from
Aug 18, 2024
Merged

feat: Add dynamic icon generation #79

merged 16 commits into from
Aug 18, 2024

Conversation

gabe565
Copy link
Owner

@gabe565 gabe565 commented Aug 18, 2024

This PR adds initial support for dynamic icon generation.

image

A new setting is available to toggle this, which will be enabled by default on Windows and Linux:

image

Ref #78

@gabe565
Copy link
Owner Author

gabe565 commented Aug 18, 2024

I still need to investigate changing the font size based on the current reading, since different readings have different widths. Currently, the icon can fit 3 characters, so all mg/dL readings will work, but while doing some testing I noticed mmol can overflow when the reading is greater than 10.0.

Copy link

sonarcloud bot commented Aug 18, 2024

@gabe565 gabe565 merged commit 796283f into main Aug 18, 2024
12 checks passed
@gabe565 gabe565 deleted the feat-dynamic-icon branch August 18, 2024 08:26
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.

1 participant