Skip to content

Commit

Permalink
Update slider
Browse files Browse the repository at this point in the history
  • Loading branch information
vicr123 committed Nov 17, 2024
1 parent 8e1ceb3 commit ade89f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
7 changes: 4 additions & 3 deletions controls/com/vicr123/Contemporary/CoreStyles/Slider.qml
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ T.Slider {
width: control.horizontal ? control.availableWidth : implicitWidth
height: control.horizontal ? implicitHeight : control.availableHeight
radius: 4
color: "transparent"
color: Contemporary.layer
scale: control.horizontal && control.mirrored ? -1 : 1
border.color: control.foreground

// border.color: control.foreground

Rectangle {
y: control.horizontal ? 0 : control.visualPosition * (parent.height - control.thickness)
Expand All @@ -123,7 +124,7 @@ T.Slider {

radius: 4
color: control.accent
border.color: control.foreground
// border.color: control.foreground
}
}
}
16 changes: 7 additions & 9 deletions playground/patterns/DialogBoxes.qml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ Control {
}

Grandstand {
id: grandstand
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right

id: grandstand

innerTopMargin: SafeZone.top

z: 10
text: "Dialog Boxes";
text: qsTr("Dialog Boxes")
color: layer2.color
}

Expand All @@ -36,7 +35,7 @@ Control {
anchors.topMargin: 6

GroupBox {
title: qsTr("Combo Boxes")
title: qsTr("Dialog Boxes")
implicitWidth: Math.min(600, parent.width - 12)

Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
Expand Down Expand Up @@ -137,7 +136,6 @@ Only proceed if you are an expert user and fully understand the risks involved.
]
}


DialogBox {
id: checkboxBox
titleText: qsTr("Warning!")
Expand All @@ -147,14 +145,14 @@ Only proceed if you are an expert user and fully understand the risks involved.
buttons: [
DialogBox.CancelButton {
onClicked: () => {
checkboxBox.close()
checkboxAckBox.open()
checkboxBox.close();
checkboxAckBox.open();
}
},
DialogBox.OkButton {
onClicked: () => {
checkboxBox.close()
checkboxAckBox.open()
checkboxBox.close();
checkboxAckBox.open();
}
}
]
Expand Down

0 comments on commit ade89f4

Please sign in to comment.