https://bugs.kde.org/show_bug.cgi?id=390147
Bug ID: 390147 Summary: Units::roundToIconSize returns incorrect result for SizeSmallMedium when screen scaling >= 2 Product: frameworks-plasma Version: 5.42.0 Platform: Archlinux Packages OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: libplasma Assignee: notm...@gmail.com Reporter: pgkos.bugzi...@yahoo.com Target Milestone: --- When System Settings -> Display -> Screen Scaling has been set to 2 or 3, Units::roundToIconSize returns invalid results for SizeSmallMedium. Plasmoids, which call this function, have access to icon sizes which are already multipled by the Screen Scaling factor, but Units::roundToIconSize() does not. So, for example, if Screen Scaling was set to 2, inside a plasmoid's QML code iconSizes.smallMedium == 22 * 2 == 44, but inside roundToIconSize it still equals 22. Therefore, Units::roundToIconSize() returns the following results (assuming Screen Scaling == 2): units.roundToIconSize(32) -> returns 32 // SizeSmall units.roundToIconSize(44) -> returns 32 // SizeSmallMedium - wrong units.roundToIconSize(64) -> returns 64 // SizeMedium units.roundToIconSize(96) -> returns 96 // SizeLarge units.roundToIconSize(128) -> returns 128 // SizeHuge By default, plasmoid.configuration.iconSize == SizeSmallMedium, so all plasmoids using this method will display tiny icons if Screen Scaling >= 2 (e.g. system tray). -- You are receiving this mail because: You are watching all bug changes.