mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-23 13:33:50 +03:00
relative on screen item size can now use all values
-the user can now set the relative on screen items size with step 0.1 and the produced item size does not have to be a multiplier or 8
This commit is contained in:
parent
3a5acf9383
commit
7638e65e23
@ -40,7 +40,7 @@ ContainerAbility.Metrics {
|
||||
if ((plasmoid.configuration.proportionIconSize===-1) || !latteView)
|
||||
return -1;
|
||||
|
||||
return Math.max(16,Math.round(latteView.screenGeometry.height * plasmoid.configuration.proportionIconSize/100/8)*8);
|
||||
return Math.max(16,Math.round(latteView.screenGeometry.height * plasmoid.configuration.proportionIconSize/100));
|
||||
}
|
||||
|
||||
readonly property bool autosizeEnabled: autosize !== undefined && autosize.isActive
|
||||
|
@ -140,7 +140,7 @@ PlasmaComponents.Page {
|
||||
value: plasmoid.configuration.proportionIconSize
|
||||
from: 1.0
|
||||
to: (latteView.visibility.mode === LatteCore.Types.SidebarOnDemand || latteView.visibility.mode === LatteCore.Types.SidebarAutoHide) ? 25 : 12
|
||||
stepSize: 0.5
|
||||
stepSize: 0.1
|
||||
wheelEnabled: false
|
||||
|
||||
function updateProportionIconSize() {
|
||||
|
Loading…
Reference in New Issue
Block a user