Add battery percentage display to launcher clock panel#4317
Closed
Add battery percentage display to launcher clock panel#4317
Conversation
Co-authored-by: Jack251970 <53996452+Jack251970@users.noreply.github.com>
- Add PowerStatus NuGet package (v1.0.3) - Add UseBattery setting to Settings.cs - Add BatteryText property and update periodic timer in MainViewModel - Add BatteryBox TextBlock to ClockPanel in MainWindow.xaml - Add BaseBatteryBox and BatteryBox styles to Base.xaml and all theme files - Add UseBattery toggle and preview to SettingsPaneTheme - Add Battery localization string to en.xaml Co-authored-by: Jack251970 <53996452+Jack251970@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add battery percentage next to clock on taskbar
Add battery percentage display to launcher clock panel
Mar 4, 2026
Member
|
@copilot Please remove BatteryBoxStyle and use the same style as clock panel |
- Remove BaseBatteryBox and BatteryBox style definitions from Base.xaml - Remove BatteryBox style overrides from all theme files - Update BatteryBox TextBlock in MainWindow.xaml to use ClockBox style - Update BatteryBox TextBlock in SettingsPaneTheme.xaml to use ClockBox style Co-authored-by: Jack251970 <53996452+Jack251970@users.noreply.github.com>
Contributor
Author
Done in 9ed4097. Removed all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Flow.Launcher.csprojUseBatterysetting toSettings.csBatteryTextproperty and update clock/date/battery timer inMainViewModel.csBatteryBoxTextBlock to ClockPanel inMainWindow.xaml(usingClockBoxstyle)SettingPages/Views/SettingsPaneTheme.xamlUseBatteryandBatteryTextproperties toSettingsPaneThemeViewModel.csLanguages/en.xamlBatteryBox/BaseBatteryBoxstyles — reuseClockBoxstyle insteadOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Summary by cubic
Adds an optional battery percentage next to the clock, controlled by a new setting and powered by PowerStatus, using the ClockBox style.
Summary of changes
Written for commit b67ad4d. Summary will update on new commits.