New theme variables + removed RUN mode from Launcher
This commit is contained in:
@@ -268,6 +268,9 @@ ModuleChip {
|
||||
textColor: root.t.textMain
|
||||
dimColor: root.t.textDim
|
||||
borderColor: root.t.volPopupBorder
|
||||
btnIdle: root.t.volLimitBtn
|
||||
btnHover: root.t.volOutputLimitBtnHover
|
||||
btnPress: root.t.volOutputLimitBtnPress
|
||||
onDecrement: root.outputMaxVolume = Math.max(10, root.outputMaxVolume - 10)
|
||||
onIncrement: root.outputMaxVolume = Math.min(300, root.outputMaxVolume + 10)
|
||||
}
|
||||
@@ -282,6 +285,9 @@ ModuleChip {
|
||||
textColor: root.t.textMain
|
||||
dimColor: root.t.textDim
|
||||
borderColor: root.t.volPopupBorder
|
||||
btnIdle: root.t.volLimitBtn
|
||||
btnHover: root.t.volInputLimitBtnHover
|
||||
btnPress: root.t.volInputLimitBtnPress
|
||||
onDecrement: root.inputMaxVolume = Math.max(10, root.inputMaxVolume - 10)
|
||||
onIncrement: root.inputMaxVolume = Math.min(300, root.inputMaxVolume + 10)
|
||||
}
|
||||
@@ -506,6 +512,9 @@ ModuleChip {
|
||||
required property color textColor
|
||||
required property color dimColor
|
||||
required property color borderColor
|
||||
required property color btnIdle
|
||||
required property color btnHover
|
||||
required property color btnPress
|
||||
|
||||
signal decrement()
|
||||
signal increment()
|
||||
@@ -521,10 +530,18 @@ ModuleChip {
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: decBtn
|
||||
width: 22; height: 22; radius: 5
|
||||
color: decHover.hovered ? "#22ffffff" : "transparent"
|
||||
color: decMa.containsMouse
|
||||
? (decMa.pressed ? lr.btnPress : lr.btnHover)
|
||||
: lr.btnIdle
|
||||
border.color: lr.borderColor
|
||||
border.width: Cfg.Config.popupBorderWidth
|
||||
scale: decMa.pressed ? 0.88 : 1.0
|
||||
|
||||
Behavior on color { ColorAnimation { duration: 120 } }
|
||||
Behavior on scale { NumberAnimation { duration: 100; easing.type: Easing.OutCubic } }
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent; text: "−"
|
||||
color: lr.value <= lr.minValue ? lr.dimColor : lr.textColor
|
||||
@@ -532,8 +549,13 @@ ModuleChip {
|
||||
font.bold: true
|
||||
renderType: Text.NativeRendering
|
||||
}
|
||||
HoverHandler { id: decHover; cursorShape: Qt.PointingHandCursor }
|
||||
TapHandler { onTapped: { if (lr.value > lr.minValue) lr.decrement() } }
|
||||
MouseArea {
|
||||
id: decMa
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: { if (lr.value > lr.minValue) lr.decrement() }
|
||||
}
|
||||
}
|
||||
Text {
|
||||
text: lr.value + "%"
|
||||
@@ -545,10 +567,18 @@ ModuleChip {
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: incBtn
|
||||
width: 22; height: 22; radius: 5
|
||||
color: incHover.hovered ? "#22ffffff" : "transparent"
|
||||
color: incMa.containsMouse
|
||||
? (incMa.pressed ? lr.btnPress : lr.btnHover)
|
||||
: lr.btnIdle
|
||||
border.color: lr.borderColor
|
||||
border.width: Cfg.Config.popupBorderWidth
|
||||
scale: incMa.pressed ? 0.88 : 1.0
|
||||
|
||||
Behavior on color { ColorAnimation { duration: 120 } }
|
||||
Behavior on scale { NumberAnimation { duration: 100; easing.type: Easing.OutCubic } }
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent; text: "+"
|
||||
color: lr.value >= lr.maxValue ? lr.dimColor : lr.textColor
|
||||
@@ -556,8 +586,13 @@ ModuleChip {
|
||||
font.bold: true
|
||||
renderType: Text.NativeRendering
|
||||
}
|
||||
HoverHandler { id: incHover; cursorShape: Qt.PointingHandCursor }
|
||||
TapHandler { onTapped: { if (lr.value < lr.maxValue) lr.increment() } }
|
||||
MouseArea {
|
||||
id: incMa
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: { if (lr.value < lr.maxValue) lr.increment() }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user