quickshell: minor
This commit is contained in:
@@ -15,11 +15,13 @@ Item {
|
||||
property string textSuffix: ""
|
||||
property bool pointerCursor: true
|
||||
property alias hovered: mouseArea.containsMouse
|
||||
property bool disableHover: false
|
||||
readonly property real ratio: value / maxValue
|
||||
|
||||
signal wheelUp()
|
||||
signal wheelDown()
|
||||
signal clicked()
|
||||
signal rightClicked()
|
||||
|
||||
implicitHeight: parent.height - 5
|
||||
implicitWidth: parent.height + (hovered ? textDisplay.width : 0)
|
||||
@@ -28,7 +30,7 @@ Item {
|
||||
id: mouseArea
|
||||
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
hoverEnabled: !disableHover
|
||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||
cursorShape: pointerCursor ? Qt.PointingHandCursor : Qt.ArrowCursor
|
||||
onClicked: (mouse) => {
|
||||
|
||||
@@ -11,6 +11,7 @@ Item {
|
||||
readonly property alias hovered: mouseArea.containsMouse
|
||||
property real iconSize: Fonts.icon
|
||||
property real radius: Style.radiusS
|
||||
property bool disabledHover: false
|
||||
|
||||
signal clicked()
|
||||
signal rightClicked()
|
||||
@@ -23,7 +24,7 @@ Item {
|
||||
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
hoverEnabled: true
|
||||
hoverEnabled: !disabledHover
|
||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||
onClicked: (mouse) => {
|
||||
if (mouse.button === Qt.RightButton)
|
||||
|
||||
@@ -151,6 +151,7 @@ PopupWindow {
|
||||
pointSize: Style.fontSizeS
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
wrapMode: Text.WordWrap
|
||||
family: Fonts.sans
|
||||
}
|
||||
|
||||
Image {
|
||||
|
||||
Reference in New Issue
Block a user