andyvorld / LGSTrayBattery

A tray app used to track battery levels of wireless Logitech mouse.
GNU General Public License v3.0
369 stars 30 forks source link

Numeric Icons look cut off. #104

Closed billCln closed 7 months ago

billCln commented 7 months ago

I use MX ergo. 50% numeric icon looks a bit off. 00000000

Actually, all numeric icon numbers look a bit off. Mx Ergo only displays 90, 50, and 30 because that's what it is implemented by logitech, so I've only seen these 3 numbers being displayed. You can see 50% looks like it's cut off. I use windows 10. I haven't messed with the taskbar scaling. It's at default 100% scaling.

This is not the fault of this app. It's win10's poor implementation of scaling. Win 7 was much better with icons scaling.

I believe this can be fixed by changing the resolution size of the numeric icons. Maybe lower the resolution than what it already is, maybe higher resolution, not sure. This is the only way to fix this IMO. Thanks.

tr4npt commented 7 months ago

The problem is that the icon being created is 256x256 and Windows is scaling it down to fit on the taskbar. All of the blank space is getting averaged with the text pixels due to the sampling algorithm, resulting in bad text. I have a fix for this issue and submitted a pull request.

andyvorld commented 7 months ago

Duplicate of #103, closing this to move discussion there.