summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-09-02 18:26:45 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-09-02 18:26:45 +0800
commitf7a43077fe4e139dd7e3f46f448e0951740ec148 (patch)
treef6a68248fe42bd899e99049bab7fdb7e5d26ea60 /config
parent2f7576faf493b4667b02dcb60ddbf3aa0a9f654b (diff)
fix: qmlfmt
IListView: animation
Diffstat (limited to 'config')
-rw-r--r--config/Bar.qml60
-rw-r--r--config/Colors.qml76
-rw-r--r--config/General.qml28
-rw-r--r--config/Icons.qml112
-rw-r--r--config/Launcher.qml100
-rw-r--r--config/Style.qml142
6 files changed, 259 insertions, 259 deletions
diff --git a/config/Bar.qml b/config/Bar.qml
index 5506fa0..d02e006 100644
--- a/config/Bar.qml
+++ b/config/Bar.qml
@@ -3,43 +3,43 @@ pragma Singleton
import Quickshell
Singleton {
- id: root
+ id: root
- readonly property int height: 40
- readonly property int borderRadius: Style.rounding.small
- readonly property int topMargin: Style.spacing.small
- readonly property int leftMargin: Style.spacing.small
- readonly property int rightMargin: Style.spacing.small
+ readonly property int height: 40
+ readonly property int borderRadius: Style.rounding.small
+ readonly property int topMargin: Style.spacing.small
+ readonly property int leftMargin: Style.spacing.small
+ readonly property int rightMargin: Style.spacing.small
- readonly property int moduleLeftMargin: Style.spacing.larger
- readonly property int moduleRightMargin: Style.spacing.small
+ readonly property int moduleLeftMargin: Style.spacing.larger
+ readonly property int moduleRightMargin: Style.spacing.small
- readonly property int leftModuleSpacing: Style.spacing.smaller
- readonly property int rightModuleSpacing: Style.spacing.smaller
+ readonly property int leftModuleSpacing: Style.spacing.smaller
+ readonly property int rightModuleSpacing: Style.spacing.smaller
- readonly property var windowStrip: [" — Zen Browser"]
+ readonly property var windowStrip: [" — Zen Browser"]
- readonly property int wss: 10
- readonly property int wsIconSize: 32
- readonly property int wsSpacing: 2
- readonly property int wsHorizontalSpacing: Style.spacing.smaller
- readonly property int wsActiveIconSize: wsIconSize * 1.5
- readonly property int wsRounding: Style.rounding.small
- readonly property double wsOpacity: 0.8
- readonly property int wsActiveOpacity: 1
- readonly property double wsEmptyOpacity: 0.2
- // wsAnimationEasing using Hyprland's actual ws animation easing
- readonly property int wsAnimationDuration: 200
- readonly property int wsExtraMouseArea: wsHorizontalSpacing / 2
+ readonly property int wss: 10
+ readonly property int wsIconSize: 32
+ readonly property int wsSpacing: 2
+ readonly property int wsHorizontalSpacing: Style.spacing.smaller
+ readonly property int wsActiveIconSize: wsIconSize * 1.5
+ readonly property int wsRounding: Style.rounding.small
+ readonly property double wsOpacity: 0.8
+ readonly property int wsActiveOpacity: 1
+ readonly property double wsEmptyOpacity: 0.2
+ // wsAnimationEasing using Hyprland's actual ws animation easing
+ readonly property int wsAnimationDuration: 200
+ readonly property int wsExtraMouseArea: wsHorizontalSpacing / 2
- readonly property int resourceIconTextSpacing: Style.spacing.small
+ readonly property int resourceIconTextSpacing: Style.spacing.small
- readonly property int moduleRadius: Style.rounding.small
+ readonly property int moduleRadius: Style.rounding.small
- readonly property double mediaPausedOpacity: 0.75
- readonly property double mediaScrollScale: 1 / 25 // 5sec
- readonly property double hoverScale: 1.2
- readonly property string preferedPlayer: "spotify"
+ readonly property double mediaPausedOpacity: 0.75
+ readonly property double mediaScrollScale: 1 / 25 // 5sec
+ readonly property double hoverScale: 1.2
+ readonly property string preferedPlayer: "spotify"
- readonly property double bgTransparency: 0.25
+ readonly property double bgTransparency: 0.25
}
diff --git a/config/Colors.qml b/config/Colors.qml
index 259ec73..e223ca6 100644
--- a/config/Colors.qml
+++ b/config/Colors.qml
@@ -3,44 +3,44 @@ import Quickshell
import QtQuick
Singleton {
- readonly property color background1: WallustColors.color8
- // readonly property color background2: WallustColors.color0
- readonly property color background2: Qt.rgba(WallustColors.color0.r, WallustColors.color0.g, WallustColors.color0.b, General.accentTransparency)
- readonly property color background3: WallustColors.background
- readonly property color a1: WallustColors.color9
- readonly property color a2: WallustColors.color1
- readonly property color b1: WallustColors.color10
- readonly property color b2: WallustColors.color2
- readonly property color c1: WallustColors.color11
- readonly property color c2: WallustColors.color3
- readonly property color d1: WallustColors.color12
- readonly property color d2: WallustColors.color4
- readonly property color e1: WallustColors.color13
- readonly property color e2: WallustColors.color5
- readonly property color f1: WallustColors.color14
- readonly property color f2: WallustColors.color6
- readonly property color foreground1: WallustColors.foreground
- readonly property color foreground2: WallustColors.color15
- readonly property color foreground3: WallustColors.color7
- readonly property color cursor: WallustColors.cursor
+ readonly property color background1: WallustColors.color8
+ // readonly property color background2: WallustColors.color0
+ readonly property color background2: Qt.rgba(WallustColors.color0.r, WallustColors.color0.g, WallustColors.color0.b, General.accentTransparency)
+ readonly property color background3: WallustColors.background
+ readonly property color a1: WallustColors.color9
+ readonly property color a2: WallustColors.color1
+ readonly property color b1: WallustColors.color10
+ readonly property color b2: WallustColors.color2
+ readonly property color c1: WallustColors.color11
+ readonly property color c2: WallustColors.color3
+ readonly property color d1: WallustColors.color12
+ readonly property color d2: WallustColors.color4
+ readonly property color e1: WallustColors.color13
+ readonly property color e2: WallustColors.color5
+ readonly property color f1: WallustColors.color14
+ readonly property color f2: WallustColors.color6
+ readonly property color foreground1: WallustColors.foreground
+ readonly property color foreground2: WallustColors.color15
+ readonly property color foreground3: WallustColors.color7
+ readonly property color cursor: WallustColors.cursor
- readonly property color accent: background2
- readonly property color accentAlt: background1
+ readonly property color accent: background2
+ readonly property color accentAlt: background1
- readonly property color black: Qt.rgba(59 / 255, 66 / 255, 82 / 255, 1)
- readonly property color red: Qt.rgba(191 / 255, 97 / 255, 106 / 255, 1)
- readonly property color green: Qt.rgba(163 / 255, 190 / 255, 140 / 255, 1)
- readonly property color yellow: Qt.rgba(235 / 255, 203 / 255, 139 / 255, 1)
- readonly property color blue: Qt.rgba(129 / 255, 161 / 255, 193 / 255, 1)
- readonly property color magenta: Qt.rgba(180 / 255, 142 / 255, 173 / 255, 1)
- readonly property color cyan: Qt.rgba(136 / 255, 192 / 255, 208 / 255, 1)
- readonly property color white: Qt.rgba(229 / 255, 233 / 255, 240 / 255, 1)
- readonly property color altBlack: Qt.rgba(76 / 255, 86 / 255, 106 / 255, 1)
- readonly property color altRed: Qt.rgba(191 / 255, 97 / 255, 106 / 255, 1)
- readonly property color altGreen: Qt.rgba(163 / 255, 190 / 255, 140 / 255, 1)
- readonly property color altYellow: Qt.rgba(235 / 255, 203 / 255, 139 / 255, 1)
- readonly property color altBlue: Qt.rgba(129 / 255, 161 / 255, 193 / 255, 1)
- readonly property color altMagenta: Qt.rgba(180 / 255, 142 / 255, 173 / 255, 1)
- readonly property color altCyan: Qt.rgba(143 / 255, 188 / 255, 187 / 255, 1)
- readonly property color altWhite: Qt.rgba(236 / 255, 239 / 255, 244 / 255, 1)
+ readonly property color black: Qt.rgba(59 / 255, 66 / 255, 82 / 255, 1)
+ readonly property color red: Qt.rgba(191 / 255, 97 / 255, 106 / 255, 1)
+ readonly property color green: Qt.rgba(163 / 255, 190 / 255, 140 / 255, 1)
+ readonly property color yellow: Qt.rgba(235 / 255, 203 / 255, 139 / 255, 1)
+ readonly property color blue: Qt.rgba(129 / 255, 161 / 255, 193 / 255, 1)
+ readonly property color magenta: Qt.rgba(180 / 255, 142 / 255, 173 / 255, 1)
+ readonly property color cyan: Qt.rgba(136 / 255, 192 / 255, 208 / 255, 1)
+ readonly property color white: Qt.rgba(229 / 255, 233 / 255, 240 / 255, 1)
+ readonly property color altBlack: Qt.rgba(76 / 255, 86 / 255, 106 / 255, 1)
+ readonly property color altRed: Qt.rgba(191 / 255, 97 / 255, 106 / 255, 1)
+ readonly property color altGreen: Qt.rgba(163 / 255, 190 / 255, 140 / 255, 1)
+ readonly property color altYellow: Qt.rgba(235 / 255, 203 / 255, 139 / 255, 1)
+ readonly property color altBlue: Qt.rgba(129 / 255, 161 / 255, 193 / 255, 1)
+ readonly property color altMagenta: Qt.rgba(180 / 255, 142 / 255, 173 / 255, 1)
+ readonly property color altCyan: Qt.rgba(143 / 255, 188 / 255, 187 / 255, 1)
+ readonly property color altWhite: Qt.rgba(236 / 255, 239 / 255, 244 / 255, 1)
}
diff --git a/config/General.qml b/config/General.qml
index a9f9929..77bc177 100644
--- a/config/General.qml
+++ b/config/General.qml
@@ -4,29 +4,29 @@ import Quickshell
import qs.components
Singleton {
- id: root
+ id: root
- readonly property int resourceUpdateInterval: 1
+ readonly property int resourceUpdateInterval: 1
- readonly property real iconSize: Style.font.size.larger
+ readonly property real iconSize: Style.font.size.larger
- readonly property string cpuThermalPath: "/sys/class/thermal/thermal_zone0/temp"
+ readonly property string cpuThermalPath: "/sys/class/thermal/thermal_zone0/temp"
- readonly property int rectMargin: Style.spacing.small
+ readonly property int rectMargin: Style.spacing.small
- readonly property int appIconSize: 25
+ readonly property int appIconSize: 25
- readonly property int appSearchFuzzySearchThreshold: 5
+ readonly property int appSearchFuzzySearchThreshold: 5
- readonly property int fontSize: Style.font.size.larger
+ readonly property int fontSize: Style.font.size.larger
- readonly property int animationDuration: Style.anim.durations.normal
- readonly property real springAnimationSpring: 8
- readonly property real springAnimationDamping: 0.4
+ readonly property int animationDuration: Style.anim.durations.normal
+ readonly property real springAnimationSpring: 8
+ readonly property real springAnimationDamping: 0.4
- readonly property double accentTransparency: 0.15
+ readonly property double accentTransparency: 0.15
- readonly property int defaultSearchAlgorithm: Searchable.SearchAlgorithm.Include
+ readonly property int defaultSearchAlgorithm: Searchable.SearchAlgorithm.Include
- readonly property int maxClipPreviewChar: 100
+ readonly property int maxClipPreviewChar: 100
}
diff --git a/config/Icons.qml b/config/Icons.qml
index 240be6b..f2a80ff 100644
--- a/config/Icons.qml
+++ b/config/Icons.qml
@@ -3,67 +3,67 @@ pragma Singleton
import Quickshell
Singleton {
- id: root
+ id: root
- readonly property var ws: ({
- 1: "",
- 2: "",
- 3: "",
- 4: "",
- 5: "",
- 6: "",
- 7: "",
- 8: "",
- 9: "",
- 10: "",
- urgent: "",
- active: "",
- default: " "
- })
+ readonly property var ws: ({
+ 1: "",
+ 2: "",
+ 3: "",
+ 4: "",
+ 5: "",
+ 6: "",
+ 7: "",
+ 8: "",
+ 9: "",
+ 10: "",
+ urgent: "",
+ active: "",
+ default: " "
+ })
- readonly property var media: ({
- play: "",
- pause: "",
- stop: "",
- // next: "",
- // prev: "",
- mute: "",
- unmute: ""
- })
+ readonly property var media: ({
+ play: "",
+ pause: "",
+ stop: "",
+ // next: "",
+ // prev: "",
+ mute: "",
+ unmute: ""
+ })
- readonly property var wifi: ({
- min: "󰤯",
- low: "󰤟",
- mid: "󰤢",
- high: "󰤥",
- max: "󰤨"
- })
+ readonly property var wifi: ({
+ min: "󰤯",
+ low: "󰤟",
+ mid: "󰤢",
+ high: "󰤥",
+ max: "󰤨"
+ })
- readonly property var network: ({
- disconnected: "󰤭",
- download: "",
- upload: "",
- wifi: wifi
- })
+ readonly property var network: ({
+ disconnected: "󰤭",
+ download: "",
+ upload: "",
+ wifi: wifi
+ })
- readonly property list<string> clock: ['', '', '', '', '', '', '', '', '', '', '', '']
+ readonly property list<string> clock: ['', '', '', '', '', '', '', '', '', '', '', '']
- readonly property var resource: ({
- cpu: "",
- memory: "󰍛",
- disk: "",
- gpu: "󱓞",
- temp: "",
- network: network,
- clock: clock,
- calendar: ""
- })
+ readonly property var resource: ({
+ cpu: "",
+ memory: "󰍛",
+ disk: "",
+ gpu: "󱓞",
+ temp: "",
+ network: network,
+ clock: clock,
+ calendar: ""
+ })
- readonly property var power: ({
- shutdown: "",
- dpms: "󰶐",
- lock: "󰍁",
- suspend: "󰤄",
- reboot: ""
- })
+ readonly property var power: ({
+ shutdown: "",
+ dpms: "󰶐",
+ lock: "󰍁",
+ suspend: "󰤄",
+ reboot: ""
+ })
}
diff --git a/config/Launcher.qml b/config/Launcher.qml
index d93b8a7..5df5c85 100644
--- a/config/Launcher.qml
+++ b/config/Launcher.qml
@@ -5,66 +5,66 @@ import QtQuick
import qs.popups.launcher.components
Singleton {
- id: root
+ id: root
- readonly property int defaultWidth: 500
+ readonly property int defaultWidth: 500
- readonly property int widgetWidth: 700
- readonly property int widgetHeight: 200
+ readonly property int widgetWidth: 700
+ readonly property int widgetHeight: 200
- readonly property int innerMargin: 5
+ readonly property int innerMargin: 5
- readonly property int borderRadius: Style.rounding.large
- readonly property int borderWidth: 1
+ readonly property int borderRadius: Style.rounding.large
+ readonly property int borderWidth: 1
- readonly property int widgetRadius: Style.rounding.small
- readonly property int widgetFontSize: Style.font.size.large
+ readonly property int widgetRadius: Style.rounding.small
+ readonly property int widgetFontSize: Style.font.size.large
- readonly property double bgTransparency: 0.4
- readonly property double widgetBgTransparency: 0.3
- readonly property double widgetTitleBgTransparency: 0.2 // as it's on top of it
+ readonly property double bgTransparency: 0.4
+ readonly property double widgetBgTransparency: 0.3
+ readonly property double widgetTitleBgTransparency: 0.2 // as it's on top of it
- readonly property bool showWidgetTitle: false
+ readonly property bool showWidgetTitle: false
- readonly property int topMargin: 400
+ readonly property int topMargin: 400
- readonly property int predictiveCompletionRadius: 6
+ readonly property int predictiveCompletionRadius: 6
- readonly property int maxPreviewLen: 20
+ readonly property int maxPreviewLen: 20
- readonly property int duckduckgoSpacing: 25
+ readonly property int duckduckgoSpacing: 25
- readonly property list<Component> widgets: [
- // recommanded order:
- // 1. components with .startswith
- // 2. utils
- // 3. app launcher
- Component {
- Emoji {}
- },
- Component {
- Clip {}
- },
- Component {
- Spell {}
- },
- Component {
- Calc {}
- },
- Component {
- DateTime {}
- },
- Component {
- Unit {}
- },
- Component {
- Currency {}
- },
- Component {
- App {}
- },
- Component {
- DuckDuckGo {}
- }
- ]
+ readonly property list<Component> widgets: [
+ // recommanded order:
+ // 1. components with .startswith
+ // 2. utils
+ // 3. app launcher
+ Component {
+ Emoji {}
+ },
+ Component {
+ Clip {}
+ },
+ Component {
+ Spell {}
+ },
+ Component {
+ Calc {}
+ },
+ Component {
+ DateTime {}
+ },
+ Component {
+ Unit {}
+ },
+ Component {
+ Currency {}
+ },
+ Component {
+ App {}
+ },
+ Component {
+ DuckDuckGo {}
+ }
+ ]
}
diff --git a/config/Style.qml b/config/Style.qml
index 25bf6dc..2ec507a 100644
--- a/config/Style.qml
+++ b/config/Style.qml
@@ -4,85 +4,85 @@ import Quickshell
import QtQuick
Singleton {
- id: root
+ id: root
- readonly property Rounding rounding: Rounding {}
- readonly property Spacing spacing: Spacing {}
- readonly property Padding padding: Padding {}
- readonly property Font font: Font {}
- readonly property Anim anim: Anim {}
+ readonly property Rounding rounding: Rounding {}
+ readonly property Spacing spacing: Spacing {}
+ readonly property Padding padding: Padding {}
+ readonly property Font font: Font {}
+ readonly property Anim anim: Anim {}
- component Rounding: QtObject {
- readonly property int smaller: 10
- readonly property int small: 12
- readonly property int normal: 17
- readonly property int large: 25
- readonly property int full: 1000
- }
+ component Rounding: QtObject {
+ readonly property int smaller: 10
+ readonly property int small: 12
+ readonly property int normal: 17
+ readonly property int large: 25
+ readonly property int full: 1000
+ }
- component Spacing: QtObject {
- readonly property int small: 7
- readonly property int smaller: 10
- readonly property int normal: 12
- readonly property int larger: 15
- readonly property int largerr: 17
- readonly property int large: 20
- }
+ component Spacing: QtObject {
+ readonly property int small: 7
+ readonly property int smaller: 10
+ readonly property int normal: 12
+ readonly property int larger: 15
+ readonly property int largerr: 17
+ readonly property int large: 20
+ }
- component Padding: QtObject {
- readonly property int small: 5
- readonly property int smaller: 7
- readonly property int normal: 10
- readonly property int larger: 12
- readonly property int large: 15
- }
+ component Padding: QtObject {
+ readonly property int small: 5
+ readonly property int smaller: 7
+ readonly property int normal: 10
+ readonly property int larger: 12
+ readonly property int large: 15
+ }
- component FontFamily: QtObject {
- readonly property string sans: "SF Pro Text"
- readonly property string symbols: "Symbols Nerd Font Mono"
- readonly property string iosevka: "Iosevka Nerd Font"
- readonly property string mono: "JetBrains Mono"
- }
+ component FontFamily: QtObject {
+ readonly property string sans: "SF Pro Text"
+ readonly property string symbols: "Symbols Nerd Font Mono"
+ readonly property string iosevka: "Iosevka Nerd Font"
+ readonly property string mono: "JetBrains Mono"
+ }
- component FontSize: QtObject {
- readonly property int small: 11
- readonly property int smaller: 12
- readonly property int normal: 13
- readonly property int larger: 15
- readonly property int largerr: 17
- readonly property int large: 18
- readonly property int extraLarge: 28
- }
+ component FontSize: QtObject {
+ readonly property int small: 11
+ readonly property int smaller: 12
+ readonly property int normal: 13
+ readonly property int larger: 15
+ readonly property int largerr: 17
+ readonly property int large: 18
+ readonly property int extraLarge: 28
+ }
- component Font: QtObject {
- readonly property FontFamily family: FontFamily {}
- readonly property FontSize size: FontSize {}
- }
+ component Font: QtObject {
+ readonly property FontFamily family: FontFamily {}
+ readonly property FontSize size: FontSize {}
+ }
- component AnimCurves: QtObject {
- readonly property list<real> emphasized: [0.05, 0, 2 / 15, 0.06, 1 / 6, 0.4, 5 / 24, 0.82, 0.25, 1, 1, 1]
- readonly property list<real> emphasizedAccel: [0.3, 0, 0.8, 0.15, 1, 1]
- readonly property list<real> emphasizedDecel: [0.05, 0.7, 0.1, 1, 1, 1]
- readonly property list<real> standard: [0.2, 0, 0, 1, 1, 1]
- readonly property list<real> standardAccel: [0.3, 0, 1, 1, 1, 1]
- readonly property list<real> standardDecel: [0, 0, 0, 1, 1, 1]
- readonly property list<real> expressiveFastSpatial: [0.42, 1.67, 0.21, 0.9, 1, 1]
- readonly property list<real> expressiveDefaultSpatial: [0.38, 1.21, 0.22, 1, 1, 1]
- readonly property list<real> expressiveEffects: [0.34, 0.8, 0.34, 1, 1, 1]
- }
+ component AnimCurves: QtObject {
+ readonly property list<real> emphasized: [0.05, 0, 2 / 15, 0.06, 1 / 6, 0.4, 5 / 24, 0.82, 0.25, 1, 1, 1]
+ readonly property list<real> emphasizedAccel: [0.3, 0, 0.8, 0.15, 1, 1]
+ readonly property list<real> emphasizedDecel: [0.05, 0.7, 0.1, 1, 1, 1]
+ readonly property list<real> standard: [0.2, 0, 0, 1, 1, 1]
+ readonly property list<real> standardAccel: [0.3, 0, 1, 1, 1, 1]
+ readonly property list<real> standardDecel: [0, 0, 0, 1, 1, 1]
+ readonly property list<real> expressiveFastSpatial: [0.42, 1.67, 0.21, 0.9, 1, 1]
+ readonly property list<real> expressiveDefaultSpatial: [0.38, 1.21, 0.22, 1, 1, 1]
+ readonly property list<real> expressiveEffects: [0.34, 0.8, 0.34, 1, 1, 1]
+ }
- component AnimDurations: QtObject {
- readonly property int small: 200
- readonly property int normal: 400
- readonly property int large: 600
- readonly property int extraLarge: 1000
- readonly property int expressiveFastSpatial: 350
- readonly property int expressiveDefaultSpatial: 500
- readonly property int expressiveEffects: 200
- }
+ component AnimDurations: QtObject {
+ readonly property int small: 200
+ readonly property int normal: 400
+ readonly property int large: 600
+ readonly property int extraLarge: 1000
+ readonly property int expressiveFastSpatial: 350
+ readonly property int expressiveDefaultSpatial: 500
+ readonly property int expressiveEffects: 200
+ }
- component Anim: QtObject {
- readonly property AnimCurves curves: AnimCurves {}
- readonly property AnimDurations durations: AnimDurations {}
- }
+ component Anim: QtObject {
+ readonly property AnimCurves curves: AnimCurves {}
+ readonly property AnimDurations durations: AnimDurations {}
+ }
}