Compare commits
No commits in common. "4bda51f02c6da34acbc71553213ca6005c7c767a" and "112ed0d6de08dfde12f1eeac437bfa943ac1aa7e" have entirely different histories.
4bda51f02c
...
112ed0d6de
17 changed files with 95 additions and 79 deletions
|
|
@ -1,9 +1,12 @@
|
|||
import qs.config
|
||||
import QtQuick
|
||||
import Quickshell.Widgets
|
||||
|
||||
Rectangle {
|
||||
WrapperRectangle {
|
||||
id: root
|
||||
margin: 8
|
||||
radius: Styling.theme.radiusBox
|
||||
color: Styling.theme.base100
|
||||
color: Styling.theme.base200
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
duration: Styling.animations.speed.normal
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ import QtQuick
|
|||
import Quickshell.Widgets
|
||||
|
||||
WrapperRectangle {
|
||||
margin: 8
|
||||
radius: Styling.theme.radiusBox
|
||||
color: Styling.theme.base100
|
||||
Behavior on color {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ StyledWrapperRectangle {
|
|||
border.color: Styling.theme.base200
|
||||
|
||||
margin: 4
|
||||
color: Styling.theme.base100
|
||||
|
||||
RowLayout {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
import qs.components
|
||||
import Quickshell
|
||||
|
||||
StyledText {
|
||||
text: ` ${Qt.formatDateTime(clock.date, "hh:mm:ss AP")}`
|
||||
SystemClock {
|
||||
id: clock
|
||||
precision: SystemClock.Seconds
|
||||
StyledRectangle {
|
||||
StyledText {
|
||||
text: ` ${Qt.formatDateTime(clock.date, "hh:mm:ss AP")}`
|
||||
SystemClock {
|
||||
id: clock
|
||||
precision: SystemClock.Seconds
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,17 +5,20 @@ import qs.utils
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
RowLayout {
|
||||
StyledRectangle {
|
||||
|
||||
Ref {
|
||||
service: SystemInfo
|
||||
}
|
||||
RowLayout {
|
||||
|
||||
LucideIcon {
|
||||
text: Styling.lucide.icons.memoryStick
|
||||
}
|
||||
Ref {
|
||||
service: SystemInfo
|
||||
}
|
||||
|
||||
StyledText {
|
||||
text: ` ${(SystemInfo.memPerc * 100).toFixed()}%`
|
||||
LucideIcon {
|
||||
text: Styling.lucide.icons.memoryStick
|
||||
}
|
||||
|
||||
StyledText {
|
||||
text: ` ${(SystemInfo.memPerc * 100).toFixed()}%`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,48 +5,51 @@ import qs.utils
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
RowLayout {
|
||||
StyledRectangle {
|
||||
|
||||
Ref {
|
||||
service: NetworkService
|
||||
}
|
||||
RowLayout {
|
||||
|
||||
LucideIcon {
|
||||
id: icon
|
||||
text: Styling.lucide.icons.wifiOff
|
||||
states: [
|
||||
State {
|
||||
name: "high"
|
||||
when: NetworkService.active?.strength > 50
|
||||
PropertyChanges {
|
||||
icon {
|
||||
text: Styling.lucide.icons.wifi
|
||||
Ref {
|
||||
service: NetworkService
|
||||
}
|
||||
|
||||
LucideIcon {
|
||||
id: icon
|
||||
text: Styling.lucide.icons.wifiOff
|
||||
states: [
|
||||
State {
|
||||
name: "high"
|
||||
when: NetworkService.active?.strength > 50
|
||||
PropertyChanges {
|
||||
icon {
|
||||
text: Styling.lucide.icons.wifi
|
||||
}
|
||||
}
|
||||
},
|
||||
State {
|
||||
name: "medium"
|
||||
when: NetworkService.active?.strength > 25
|
||||
PropertyChanges {
|
||||
icon {
|
||||
text: Styling.lucide.icons.wifiHigh
|
||||
}
|
||||
}
|
||||
},
|
||||
State {
|
||||
name: "low"
|
||||
when: NetworkService.active?.strength > 0
|
||||
PropertyChanges {
|
||||
icon {
|
||||
text: Styling.lucide.icons.wifiLow
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
State {
|
||||
name: "medium"
|
||||
when: NetworkService.active?.strength > 25
|
||||
PropertyChanges {
|
||||
icon {
|
||||
text: Styling.lucide.icons.wifiHigh
|
||||
}
|
||||
}
|
||||
},
|
||||
State {
|
||||
name: "low"
|
||||
when: NetworkService.active?.strength > 0
|
||||
PropertyChanges {
|
||||
icon {
|
||||
text: Styling.lucide.icons.wifiLow
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
StyledText {
|
||||
id: text
|
||||
text: ` ${(NetworkService.active?.strength ?? 0).toFixed()}%`
|
||||
StyledText {
|
||||
id: text
|
||||
text: ` ${(NetworkService.active?.strength ?? 0).toFixed()}%`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,19 +5,22 @@ import qs.utils
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
RowLayout {
|
||||
StyledRectangle {
|
||||
|
||||
Ref {
|
||||
service: SystemInfo
|
||||
}
|
||||
RowLayout {
|
||||
|
||||
LucideIcon {
|
||||
text: Styling.lucide.icons.hardDrive
|
||||
}
|
||||
Ref {
|
||||
service: SystemInfo
|
||||
}
|
||||
|
||||
StyledText {
|
||||
id: text
|
||||
LucideIcon {
|
||||
text: Styling.lucide.icons.hardDrive
|
||||
}
|
||||
|
||||
text: ` ${(SystemInfo.storagePerc * 100).toFixed()}%`
|
||||
StyledText {
|
||||
id: text
|
||||
|
||||
text: ` ${(SystemInfo.storagePerc * 100).toFixed()}%`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,21 +1,20 @@
|
|||
pragma ComponentBehavior: Bound
|
||||
|
||||
import qs.components
|
||||
import qs.config
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import Quickshell.Bluetooth
|
||||
import Quickshell.Widgets
|
||||
|
||||
StyledWrapperRectangle {
|
||||
StyledRectangle {
|
||||
id: root
|
||||
required property BluetoothDevice modelData
|
||||
|
||||
RowLayout {
|
||||
id: row
|
||||
|
||||
spacing: Styling.layout.spacing.base
|
||||
spacing: 8
|
||||
|
||||
Loader {
|
||||
active: root.modelData?.icon != undefined
|
||||
|
|
|
|||
|
|
@ -8,14 +8,14 @@ import Quickshell
|
|||
import Quickshell.Bluetooth
|
||||
import Quickshell.Widgets
|
||||
|
||||
StyledWrapperRectangle {
|
||||
StyledRectangle {
|
||||
id: root
|
||||
required property BluetoothDevice modelData
|
||||
|
||||
RowLayout {
|
||||
id: row
|
||||
|
||||
spacing: Styling.layout.spacing.base
|
||||
spacing: 8
|
||||
|
||||
Loader {
|
||||
active: root.modelData?.icon != undefined
|
||||
|
|
|
|||
|
|
@ -2,20 +2,21 @@ pragma ComponentBehavior: Bound
|
|||
|
||||
import qs.components
|
||||
import qs.config
|
||||
import qs.widgets
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import Quickshell.Bluetooth
|
||||
import Quickshell.Widgets
|
||||
|
||||
StyledWrapperRectangle {
|
||||
StyledRectangle {
|
||||
id: root
|
||||
required property BluetoothDevice modelData
|
||||
|
||||
RowLayout {
|
||||
id: row
|
||||
|
||||
spacing: Styling.layout.spacing.base
|
||||
spacing: 8
|
||||
|
||||
Loader {
|
||||
active: root.modelData?.icon != undefined
|
||||
|
|
|
|||
|
|
@ -1,16 +1,18 @@
|
|||
pragma ComponentBehavior: Bound
|
||||
|
||||
import qs.components
|
||||
import qs.widgets
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import Quickshell.Widgets
|
||||
|
||||
StyledWrapperRectangle {
|
||||
StyledRectangle {
|
||||
id: root
|
||||
|
||||
required property var modelData
|
||||
|
||||
margin: 16
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
pragma ComponentBehavior: Bound
|
||||
|
||||
import qs.components
|
||||
import qs.config
|
||||
import qs.services
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
|
@ -24,8 +25,9 @@ StyledPopupWindow {
|
|||
onClicked: Notifications.clear()
|
||||
}
|
||||
|
||||
StyledWrapperRectangle {
|
||||
StyledRectangle {
|
||||
Layout.columnSpan: 2
|
||||
color: Styling.theme.base200
|
||||
StyledListView {
|
||||
id: notifications
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import Quickshell.Wayland
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
StyledPanelWindow {
|
||||
StyledWindow {
|
||||
id: root
|
||||
name: "launcher"
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import Quickshell.Wayland
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
StyledPanelWindow {
|
||||
StyledWindow {
|
||||
id: root
|
||||
name: "pomodoro"
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import Quickshell.Wayland
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
StyledPanelWindow {
|
||||
StyledWindow {
|
||||
id: root
|
||||
name: "powermenu"
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import QtQuick
|
|||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
StyledPanelWindow {
|
||||
StyledWindow {
|
||||
id: root
|
||||
name: "storybook"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue