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

Battery Icon flaw #109

Open
kirakishima opened this issue May 21, 2024 · 0 comments
Open

Battery Icon flaw #109

kirakishima opened this issue May 21, 2024 · 0 comments

Comments

@kirakishima
Copy link

Describe the bug
The inside of battery-level-XX-charging-symbolic does not change color with styles on many gtk themes (including default Adwaita).

To Reproduce
Steps to reproduce the behavior:

  1. Add a battery-charging icon to the window.
const battery = await Service.import("battery");

const icon = Utils.merge([battery.bind("percent"), battery.bind("charging")], (p, c) => {
  return `battery-level-${Math.floor(p / 10) * 10}${c ? '-charging' : ''}-symbolic`;
})


export default () => Widget.Box({
  className: "battery-indicator",
  visible: battery.bind("available"),
  children: [
    Widget.Icon({
      className: "battery-icon",
      icon: icon
    }),
    Widget.Label({
      label: battery.bind("percent").as(p => `${Math.floor(p)}`)
    }),
  ],
});
  1. Apply styles to battery icon
.battery-icon {
  color: red;
}

Expected behavior
The inside of the battery icon should be colored in the style color.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Void Linux x86_64 glibc
  • App: Ags
  • Version: 1.8.2

Additional context
I tried different gtk icon themes and they all have the same thing, well besides the adwaita++ theme but I want to use the standard adwaita.

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

No branches or pull requests

1 participant