fixup all the shit and properly add icontheme
This commit is contained in:
parent
a347cbcedb
commit
c02b7e5d5d
5 changed files with 34 additions and 7 deletions
|
|
@ -1,19 +1,45 @@
|
||||||
import Quickshell
|
import Quickshell
|
||||||
|
import Quickshell.Widgets
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import QtQuick.Effects
|
||||||
import qs
|
import qs
|
||||||
import qs.widgets
|
import qs.widgets
|
||||||
import qs.settings
|
import qs.settings
|
||||||
|
|
||||||
BarComponent {
|
BarComponent {
|
||||||
id: root
|
id: root
|
||||||
implicitWidth: clockText.width + 16
|
implicitWidth: clockLayout.width + 16
|
||||||
SystemClock {
|
SystemClock {
|
||||||
id: clock
|
id: clock
|
||||||
precision: SystemClock.Seconds
|
precision: SystemClock.Seconds
|
||||||
}
|
}
|
||||||
StyledText {
|
active: clickHandler.containsMouse
|
||||||
|
RowLayout {
|
||||||
|
id: clockLayout
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
id: clockText
|
IconImage {
|
||||||
text: Qt.formatDateTime(clock.date, "d.M.yy - hh:mm:ss")
|
source: Quickshell.iconPath("clock-applet-symbolic")
|
||||||
|
implicitSize: Config.iconSize
|
||||||
|
layer.enabled: true
|
||||||
|
layer.effect: MultiEffect {
|
||||||
|
colorization: 1.0
|
||||||
|
colorizationColor: Colors.text
|
||||||
|
brightness: 0.5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
StyledText {
|
||||||
|
id: clockText
|
||||||
|
text: Qt.formatDateTime(clock.date, toggleFormat ? "hh:mm:ss | dd.mm.yy" : "hh:mm:ss")
|
||||||
|
property bool toggleFormat: false
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
MouseArea {
|
||||||
|
id: clickHandler
|
||||||
|
anchors.fill: parent
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
hoverEnabled: true
|
||||||
|
onClicked: { clockText.toggleFormat = !clockText.toggleFormat }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
//@ pragma IconTheme Adwaita
|
|
||||||
pragma ComponentBehavior: Bound
|
pragma ComponentBehavior: Bound
|
||||||
import Quickshell.Services.Pipewire
|
import Quickshell.Services.Pipewire
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ BarComponent {
|
||||||
wallPicker.visible = false;
|
wallPicker.visible = false;
|
||||||
}
|
}
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Colors.base00
|
color: Colors.base02
|
||||||
radius: Config.rounding
|
radius: Config.rounding
|
||||||
GridView {
|
GridView {
|
||||||
id: wallpaperLayout
|
id: wallpaperLayout
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ primaryMon=eDP-1
|
||||||
rounding=4
|
rounding=4
|
||||||
showCorners=true
|
showCorners=true
|
||||||
wallDir=file:///home/lucy/.walls
|
wallDir=file:///home/lucy/.walls
|
||||||
wallpaper=@Variant(\0\0\0\x11\0\0\0'/home/lucy/.walls/lance_of_longinus.png)
|
wallpaper=@Variant(\0\0\0\x11\0\0\0!/home/lucy/.walls/frierensuff.png)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
//@ pragma UseQApplication
|
||||||
|
//@ pragma IconTheme Papirus
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import qs.modules.bar
|
import qs.modules.bar
|
||||||
import qs.modules.wallpaper
|
import qs.modules.wallpaper
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue