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/battery level labels #402

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

jovark
Copy link
Contributor

@jovark jovark commented Sep 18, 2023

Description

I have added more labels to the battery bar component. This allows using different icons for different battery levels.

Example config

 - type: "battery"
   label_draining_low: "{battery_level}% remaining (low)"
   label_draining_medium: "{battery_level}% remaining (medium)"
   label_draining_high: "{battery_level}% remaining (high)"
   label_power_saver_low: "{battery_level}% (power saver) (low)"
   label_power_saver_medium: "{battery_level}% (power saver) (medium)"
   label_power_saver_high: "{battery_level}% (power saver) (high)"
   label_charging_low: "{battery_level}% (charging) (low)"
   label_charging_medium: "{battery_level}% (charging) (medium)"
   label_charging_high: "{battery_level}% (charging) (high)"

You can replace (low), (medium), (high) with appropriate icons.

@jovark jovark changed the title Feat/battery level labels feat/battery level labels Sep 18, 2023
@HolbyFPV
Copy link
Collaborator

Thanks for this! This is more consistent with how we do other components like network.

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