a little bit of this, little bit of that
This commit is contained in:
@@ -15,6 +15,7 @@ Column {
|
||||
height: childrenRect.height + anchors.margins * 2
|
||||
spacing: 6
|
||||
Item {
|
||||
visible: Brightess.monitors[0]
|
||||
anchors {
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
@@ -41,10 +42,11 @@ Column {
|
||||
}
|
||||
font.pixelSize: 16
|
||||
color: "white"
|
||||
text: "Laptop display"
|
||||
text: "Display brightness"
|
||||
}
|
||||
}
|
||||
Widgets.Slider {
|
||||
visible: Brightness.monitors[0]
|
||||
anchors {
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
@@ -134,7 +136,7 @@ Column {
|
||||
}
|
||||
ToggleButton {
|
||||
id: dpmsToggle
|
||||
text: "Screen on"
|
||||
text: "Display"
|
||||
active: true
|
||||
TapHandler {
|
||||
property var resetTimer: Timer {
|
||||
|
||||
@@ -61,6 +61,13 @@ Item {
|
||||
case Qt.Key_Left:
|
||||
list.decrementCurrentIndex();
|
||||
break;
|
||||
case Qt.Key_Backspace:
|
||||
// If control is held when backspace is pressed
|
||||
console.log((event.modifiers & 0x4000000).toString(16))
|
||||
if (event.modifiers & 0x4000000) {
|
||||
input.text = ""
|
||||
}
|
||||
break;
|
||||
}}
|
||||
}
|
||||
}
|
||||
@@ -111,6 +118,7 @@ Item {
|
||||
bottom: parent?.bottom
|
||||
}
|
||||
width: (700 - 6*6)/5
|
||||
radius: 10
|
||||
color: "#20181818"
|
||||
ListView.onIsCurrentItemChanged: ListView.isCurrentItem ? selectAnim.start() : deselectAnim.start()
|
||||
property var selectAnim: ColorAnimation {
|
||||
@@ -128,7 +136,6 @@ Item {
|
||||
duration: 200
|
||||
easing.type: Easing.InQuint
|
||||
}
|
||||
radius: 10
|
||||
function execute() {
|
||||
modelData.emoji
|
||||
? Quickshell.clipboardText = modelData.emoji
|
||||
|
||||
Reference in New Issue
Block a user