Commit 32bfd1ed authored by Nate Graham's avatar Nate Graham
Browse files

Handle huge icons in Units::roundToIconSize()

This function was missing a use case for icons that are between the
sizes of huge and enormous, causing huge-sized icons to appear too large
on X11 when not using Qt scaling. This commit fixes that, and addresses
one of the sources of complaints when using scaling on X11. Small icons
are still too small, but that must and will be handled separately.

CCBUG: 356446
parent 1a779fdf
......@@ -155,6 +155,9 @@ int Units::roundToIconSize(int size)
} else if (size < KIconLoader::SizeHuge) {
return KIconLoader::SizeLarge;
} else if (size < KIconLoader::SizeEnormous) {
return KIconLoader::SizeHuge;
} else {
return size;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment