Verified Commit 9bc6fa58 authored by Fushan Wen's avatar Fushan Wen
Browse files

taskmanager: Don't make the task icon too small in vertical panel

Compare the font size with `PlasmaCore.Units.iconSizes.medium`, which
was the default icon size for vertical panels before the option was
removed.
parent 775aefb9
Pipeline #144909 passed with stage
in 2 minutes and 36 seconds
......@@ -137,7 +137,11 @@ function preferredMaxHeight() {
// Do not allow the preferred icon size to exceed the width of
// the vertical task manager.
tasks.width,
tasks.iconsOnly ? tasks.width : PlasmaCore.Theme.mSize(PlasmaCore.Theme.defaultFont).height
tasks.iconsOnly ? tasks.width :
Math.max(
PlasmaCore.Theme.mSize(PlasmaCore.Theme.defaultFont).height,
PlasmaCore.Units.iconSizes.medium
)
);
} else {
return verticalMargins() +
......
Supports Markdown
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