1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-03 09:47:22 +03:00

visual zoom factor to percentage from decimal

This commit is contained in:
Michail Vourlakos 2017-01-04 19:38:46 +02:00
parent 3e6beb89ff
commit cbcd344e90

View File

@ -148,7 +148,8 @@ PlasmaComponents.Page{
PlasmaComponents.Label{ PlasmaComponents.Label{
enabled: showBackground.checked enabled: showBackground.checked
text: " "+Number(zoomSlider.value).toFixed(2) //text: " "+Number(zoomSlider.value).toFixed(2)
text: " "+Number((zoomSlider.value*100)-100).toFixed(0)+"%"
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4 Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
} }