Skip to content

Added a new battery icon to the list#2620

Closed
Ronin-CK wants to merge 8 commits into
noctalia-dev:mainfrom
Ronin-CK:main
Closed

Added a new battery icon to the list#2620
Ronin-CK wants to merge 8 commits into
noctalia-dev:mainfrom
Ronin-CK:main

Conversation

@Ronin-CK
Copy link
Copy Markdown
Contributor

@Ronin-CK Ronin-CK commented May 4, 2026

Pull Request

Motivation

Integrates the "Android 16-style" custom battery display mode into the core battery widget. This allows users to seamlessly switch between native graphics and custom plugin-based icon styles directly from the settings panel, providing a more integrated experience for custom widgets while maintaining robust fallbacks.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring

Related Issue

  • Closes #

Testing

  • Tested on niri
  • Tested on Hyprland
  • Tested on sway
  • Tested with different bar positions and density settings
  • Tested at different interface scaling values
  • Tested with multiple monitors (if applicable)

Screenshots / Videos

image

Checklist

  • Code follows project style guidelines
  • Self-reviewed my code
  • No new warnings or errors
  • Documentation or comments updated (if relevant)

Additional Notes

  • Plugin Requirement: This feature requires the custom-battery plugin to be installed. custom-battery PR
  • Uses dynamic loading via PluginRegistry to fetch the custom UI from the local plugins directory.
  • The settings model is reactive and only displays the "Android 16 style" option if the plugin is detected on the system.
  • Implemented an automatic fallback to "Graphical battery" mode if the plugin is deleted or missing while the mode is still active.
  • Added a specialized MouseArea to preserve native right-click access to "Widget settings" when the plugin mode is active.
  • Vertical Support: Includes full support for vertical bars (left/right) by automatically rotating the icon and background pill into a vertical orientation.

@ItsLemmy
Copy link
Copy Markdown
Collaborator

Thanks so much for putting this together!

We are currently pouring all of our focus into v5. Because v4 is now frozen, we won't be merging further changes into that codebase.

While we are closing this PR, we really value your effort and would love to see your work in the v5 ecosystem. If you'd like to port this over to the new version, we'd be happy to review it there!

Cheers!

@ItsLemmy ItsLemmy closed this May 16, 2026
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