mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-26 11:21:40 +03:00
plasmoid:fix local.iconSize calculations
This commit is contained in:
parent
1a08a476ae
commit
ac2ccc1358
@ -25,12 +25,15 @@ import org.kde.latte.abilities.applets 0.1 as AppletAbility
|
||||
|
||||
AppletAbility.Metrics {
|
||||
//! Public Local Properties
|
||||
|
||||
local.iconSize: {
|
||||
if (inPlasmaDesktop) {
|
||||
return maxIconSizeInPlasma;
|
||||
} else if (inPlasmaPanel) {
|
||||
return Math.max(16, panelThickness - 2*margin.thickness);
|
||||
}
|
||||
|
||||
return panelThickness - 2*margin.thickness;
|
||||
return maxIconSizeInPlasma;
|
||||
}
|
||||
|
||||
local.backgroundThickness: totals.thickness
|
||||
|
Loading…
Reference in New Issue
Block a user