Skip to content

Feature(Battery & Power Management): Add power profile dynamic coloring and icon support to battery widget#919

Open
Piero-93 wants to merge 7 commits into
noctalia-dev:mainfrom
Piero-93:feature/battery-widget-settings
Open

Feature(Battery & Power Management): Add power profile dynamic coloring and icon support to battery widget#919
Piero-93 wants to merge 7 commits into
noctalia-dev:mainfrom
Piero-93:feature/battery-widget-settings

Conversation

@Piero-93

Copy link
Copy Markdown
Contributor

New features

Adds dynamic visual feedback for power profile selection in the battery widget by:
- Coloring the widget background based on the active power profile
- User can choose the color for the Power Saver and Performance profile
- Optionally displaying an icon indicator for the current profile (leaf for Power Saver, gauge for Performance, scale for Balanced)
- Icon for Balanced can be hidden

Code quality

  • Removed duplicate property initialization patterns
  • Added proper translation keys for all user-facing strings

@github-actions

Copy link
Copy Markdown
Contributor

Automatic Code Quality Review


File: battery-and-power-management/SettingsView.qml

  • (H) Line 102: Do not use hardcoded values, always prefer to use the Style singleton instead
+                        radius: 14
  • (H) Line 149: Do not use hardcoded values, always prefer to use the Style singleton instead
+                        radius: 14

@Piero-93 Piero-93 marked this pull request as draft June 11, 2026 12:56
@Piero-93 Piero-93 marked this pull request as ready for review June 11, 2026 12:58
@Piero-93 Piero-93 marked this pull request as draft June 11, 2026 12:59
@Piero-93 Piero-93 marked this pull request as ready for review June 11, 2026 13:01
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