Bug 498898 - Missing battery status Oxygen icons for charge percentages that are odd multiples of 10
Summary: Missing battery status Oxygen icons for charge percentages that are odd multi...
Status: CONFIRMED
Alias: None
Product: Oxygen
Classification: Plasma
Component: icons (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: pinheiro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-19 20:02 UTC by David de Cos
Modified: 2025-01-23 14:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Panel with wrong battery icon (12.97 KB, image/png)
2025-01-20 14:57 UTC, David de Cos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David de Cos 2025-01-19 20:02:03 UTC
Oxygen provides battery status icons for charge levels like 40%, 60% and 80%, so those are correctly shown when the the level is closer to those numbers. However, when the level is closer to odd multiples of 10, like 50%, 70% or 90%, Oxygen shows an icon of a completely different style: a realistic image of an actual battery (the one named "battery" in the devices folder) that provides no visual indication of charge level.

I guess this is related to the fact that Breeze does provide status icons named after those charge levels (such as "battery-070.svg"), while they are missing in Oxygen. Perhaps those missing icons could be created simply by symlinking to the already existing ones? Like, battery-070 could point to battery-080, and so on.
Comment 1 pinheiro 2025-01-19 20:26:20 UTC
Ty, strange I can't reproduce that bug ;(

I agree probably a symlink would fix it...
Comment 2 David de Cos 2025-01-20 14:57:50 UTC
Created attachment 177552 [details]
Panel with wrong battery icon

Hi, Nuno. Thanks for the quick response.

It's interesting that you can't reproduce the bug, I wonder why I'm getting it. Can I ask you what icon do you get with a battery load of 90%? Is it the "battery-080" one, or the battery-100 one?

Just to be sure, I created a new user and selected everything related to looks (global theme, icon theme, Plasma style, etc) to be Oxygen, and I still get the described bug. I'm attaching a screenshot of that user's panel, with a battery level of 90%, displaying the battery icon in the devices folder instead of the status one.

Moreover, symlinking to the nearest Oxygen icon didn't work. In the status folder, I created an icon named battery-090 with the same picture as the battery-080 one, but I still get the icon in the devices folder when the battery load is close to 90%. Any ideas on where to investigate?

Thanks!
Comment 3 pinheiro 2025-01-20 19:43:45 UTC
It's really strange because the default behaviour should be to fallback to breeze as for example the contrast icon is...  (I'm still missing a few)

Plasma bug maybe.... That... Not me missing an icon I should do the missing ones...

So valid bug. Oxygen missing a symbolic icon.
The showing the non symbolic icon... Plasma bug I think...
Will fix them and creat a new release....
Comment 4 David de Cos 2025-01-23 14:37:46 UTC
Thanks, Nuno! I'll install your new release as soon as it's available.

I'll file the Plasma bug in the meantime, since symlinking is not working... That means it probably won't be solved even when you create the new icons, unless the Plasma bug is fixed before.