move lucide to Styling

This commit is contained in:
Benjamin Palko 2025-09-05 17:22:16 -04:00
parent 9fc91a92f7
commit 467c9bc0e3
23 changed files with 91 additions and 135 deletions

View file

@ -1,7 +1,6 @@
pragma ComponentBehavior: Bound
import qs.components
import qs.widgets
import QtQuick
import QtQuick.Layouts
import Quickshell

View file

@ -1,10 +1,10 @@
import qs.components
import qs.constants
import qs.config
StyledIconButton {
id: root
text: Icons.bluetooth
text: Styling.lucide.icons.bluetooth
onClicked: popup.toggle()

View file

@ -2,8 +2,6 @@ pragma ComponentBehavior: Bound
import qs.components
import qs.config
import qs.constants
import qs.widgets
import QtQuick
import QtQuick.Layouts
import Quickshell
@ -34,12 +32,9 @@ StyledLabel {
Loader {
active: root.modelData.batteryAvailable
sourceComponent: RowLayout {
StyledText {
LucideIcon {
id: icon
font.family: Theme.lucide.font.family
font.pixelSize: Dimensions.cpu.iconSize
font.bold: true
text: Icons.batteryFull
text: Styling.lucide.icons.batteryFull
states: [
State {
name: "full"
@ -50,7 +45,7 @@ StyledLabel {
when: root.modelData.battery > 0.33
PropertyChanges {
icon {
text: Icons.batteryFull
text: Styling.lucide.icons.batteryFull
}
}
},
@ -59,7 +54,7 @@ StyledLabel {
when: root.modelData.battery > 0.10
PropertyChanges {
icon {
text: Icons.batteryFull
text: Styling.lucide.icons.batteryFull
}
}
},
@ -68,7 +63,7 @@ StyledLabel {
when: root.modelData.battery > 0.10
PropertyChanges {
icon {
text: Icons.batteryWarning
text: Styling.lucide.icons.batteryWarning
color: Theme.palette.error
}
}