Commit 412643aa authored by Noah Davis's avatar Noah Davis 🌵
Browse files

[Slider] Remove inset

Qt QQC2 styles don't use inset even though it's the idiomatic way to
shrink the background in QQC2 components. Trying to use inset makes
things more complicated for now.
parent c92f3ac6
......@@ -20,18 +20,6 @@ T.Slider {
padding: Kirigami.Settings.tabletMode ? Kirigami.Units.mediumSpacing : 0
property bool __hasHandle: Boolean(control.handle)
property real __preInset: Math.max(
(__hasHandle ?
handle.width : Kirigami.Units.inlineControlHeight) - implicitBackgroundWidth,
(__hasHandle ?
handle.height : Kirigami.Units.inlineControlHeight) - implicitBackgroundHeight
)/2
leftInset: __preInset + leftPadding
rightInset: __preInset + rightPadding
topInset: __preInset + topPadding
bottomInset: __preInset + bottomPadding
handle: SliderHandle {
control: control
}
......
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