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