set 50% as maximum for background radius

--according to https://www.w3schools.com/howto/howto_css_rounded_images.asp
50% is considered the default maximum value for background
roundness.
work/spdx
Michail Vourlakos 4 years ago
parent bf016527b2
commit e5f80a72a5

@ -198,8 +198,8 @@ BackgroundProperties{
}
return plasmoid.formFactor === PlasmaCore.Types.Horizontal ?
(plasmoid.configuration.backgroundRadius/100) * (solidBackground.height/2) :
(plasmoid.configuration.backgroundRadius/100) * (solidBackground.width/2)
(plasmoid.configuration.backgroundRadius/100) * solidBackground.height :
(plasmoid.configuration.backgroundRadius/100) * solidBackground.width
}
readonly property int customShadow: {
if (customDefShadowIsEnabled && themeExtendedBackground) {

@ -923,7 +923,7 @@ PlasmaComponents.Page {
value: plasmoid.configuration.backgroundRadius
from: -1
to: 100
to: 50
stepSize: 1
wheelEnabled: false

Loading…
Cancel
Save