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
|
height: childrenRect.height + anchors.margins * 2
|
||||||
spacing: 6
|
spacing: 6
|
||||||
Item {
|
Item {
|
||||||
|
visible: Brightess.monitors[0]
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
@@ -41,10 +42,11 @@ Column {
|
|||||||
}
|
}
|
||||||
font.pixelSize: 16
|
font.pixelSize: 16
|
||||||
color: "white"
|
color: "white"
|
||||||
text: "Laptop display"
|
text: "Display brightness"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Widgets.Slider {
|
Widgets.Slider {
|
||||||
|
visible: Brightness.monitors[0]
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
@@ -134,7 +136,7 @@ Column {
|
|||||||
}
|
}
|
||||||
ToggleButton {
|
ToggleButton {
|
||||||
id: dpmsToggle
|
id: dpmsToggle
|
||||||
text: "Screen on"
|
text: "Display"
|
||||||
active: true
|
active: true
|
||||||
TapHandler {
|
TapHandler {
|
||||||
property var resetTimer: Timer {
|
property var resetTimer: Timer {
|
||||||
|
|||||||
@@ -61,6 +61,13 @@ Item {
|
|||||||
case Qt.Key_Left:
|
case Qt.Key_Left:
|
||||||
list.decrementCurrentIndex();
|
list.decrementCurrentIndex();
|
||||||
break;
|
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
|
bottom: parent?.bottom
|
||||||
}
|
}
|
||||||
width: (700 - 6*6)/5
|
width: (700 - 6*6)/5
|
||||||
|
radius: 10
|
||||||
color: "#20181818"
|
color: "#20181818"
|
||||||
ListView.onIsCurrentItemChanged: ListView.isCurrentItem ? selectAnim.start() : deselectAnim.start()
|
ListView.onIsCurrentItemChanged: ListView.isCurrentItem ? selectAnim.start() : deselectAnim.start()
|
||||||
property var selectAnim: ColorAnimation {
|
property var selectAnim: ColorAnimation {
|
||||||
@@ -128,7 +136,6 @@ Item {
|
|||||||
duration: 200
|
duration: 200
|
||||||
easing.type: Easing.InQuint
|
easing.type: Easing.InQuint
|
||||||
}
|
}
|
||||||
radius: 10
|
|
||||||
function execute() {
|
function execute() {
|
||||||
modelData.emoji
|
modelData.emoji
|
||||||
? Quickshell.clipboardText = modelData.emoji
|
? Quickshell.clipboardText = modelData.emoji
|
||||||
|
|||||||
3
Wall.qml
3
Wall.qml
@@ -1,4 +1,5 @@
|
|||||||
import Quickshell
|
import Quickshell
|
||||||
|
import Quickshell.Widgets
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Effects
|
import QtQuick.Effects
|
||||||
@@ -6,12 +7,14 @@ import QtQuick.Effects
|
|||||||
Variants {
|
Variants {
|
||||||
model: Quickshell.screens
|
model: Quickshell.screens
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
|
id: bg
|
||||||
anchors {
|
anchors {
|
||||||
top: true
|
top: true
|
||||||
right: true
|
right: true
|
||||||
bottom: true
|
bottom: true
|
||||||
left: true
|
left: true
|
||||||
}
|
}
|
||||||
|
exclusionMode: ExclusionMode.Ignore
|
||||||
aboveWindows: false
|
aboveWindows: false
|
||||||
property var modelData
|
property var modelData
|
||||||
screen: modelData
|
screen: modelData
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ ShellRoot {
|
|||||||
id: notifServer
|
id: notifServer
|
||||||
onNotification: (notif) => notif.tracked = true
|
onNotification: (notif) => notif.tracked = true
|
||||||
}
|
}
|
||||||
Shell.Wall {}
|
// Shell.Wall {}
|
||||||
Shell.TopBar {id: bar}
|
Shell.TopBar {id: bar}
|
||||||
Shell.Boateye {}
|
Shell.Boateye {}
|
||||||
Shell.Lock {
|
Shell.Lock {
|
||||||
@@ -20,6 +20,8 @@ ShellRoot {
|
|||||||
anchors {
|
anchors {
|
||||||
top: true
|
top: true
|
||||||
}
|
}
|
||||||
|
color: "transparent"
|
||||||
|
exclusionMode: ExclusionMode.Ignore
|
||||||
implicitHeight: 1
|
implicitHeight: 1
|
||||||
implicitWidth: 800
|
implicitWidth: 800
|
||||||
HoverHandler {onHoveredChanged: {if (hovered) bar.open() }}
|
HoverHandler {onHoveredChanged: {if (hovered) bar.open() }}
|
||||||
|
|||||||
Reference in New Issue
Block a user