more qs changes
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
Scope {
|
Scope {
|
||||||
id: root
|
id: root
|
||||||
@@ -19,6 +20,28 @@ Scope {
|
|||||||
|
|
||||||
implicitHeight: 20
|
implicitHeight: 20
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
visible: true
|
||||||
|
height: parent.height
|
||||||
|
anchors {
|
||||||
|
top: parent.top
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
// bottomMargin: 2
|
||||||
|
leftMargin: 5
|
||||||
|
rightMargin: 5
|
||||||
|
}
|
||||||
|
RowLayout {
|
||||||
|
// Left
|
||||||
|
Layout.alignment: Qt.AlignLeft
|
||||||
|
}
|
||||||
|
RowLayout {
|
||||||
|
// Center
|
||||||
|
Layout.alignment: Qt.AlignCenter
|
||||||
|
}
|
||||||
|
RowLayout {
|
||||||
|
// Right
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: meow.width
|
width: meow.width
|
||||||
height: meow.height
|
height: meow.height
|
||||||
@@ -29,8 +52,11 @@ Scope {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
Text {
|
Text {
|
||||||
id: meow
|
id: meow
|
||||||
|
// font.pointSize: 24
|
||||||
text: Clock.time
|
text: Clock.time
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ Singleton {
|
|||||||
readonly property string time: {
|
readonly property string time: {
|
||||||
// The passed format string matches the default output of
|
// The passed format string matches the default output of
|
||||||
// the `date` command.
|
// the `date` command.
|
||||||
Qt.formatDateTime(clock.date, "ddd MMM d hh:mm:ss AP t yyyy");
|
Qt.formatDateTime(clock.date, "ddd MMM d HH:mm");
|
||||||
}
|
}
|
||||||
|
|
||||||
SystemClock {
|
SystemClock {
|
||||||
id: clock
|
id: clock
|
||||||
precision: SystemClock.Seconds
|
precision: SystemClock.minutes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user