formatter
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property Accents accents: Accents {}
|
||||
property Accents accents: Accents {
|
||||
}
|
||||
|
||||
component Accents: JsonObject {
|
||||
property string primary: "#4080ff"
|
||||
property string primaryAlt: "#60a0ff"
|
||||
property string warning: "#ff6b6b"
|
||||
property string warningAlt: "#ff8787"
|
||||
}
|
||||
component Accents: JsonObject {
|
||||
property string primary: "#4080ff"
|
||||
property string primaryAlt: "#60a0ff"
|
||||
property string warning: "#ff6b6b"
|
||||
property string warningAlt: "#ff8787"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,12 +3,12 @@ pragma Singleton
|
||||
import Quickshell
|
||||
|
||||
Singleton {
|
||||
// Literally just here to shorten accessing stuff :woe:
|
||||
// Also kinda so I can keep accessing it with `Appearance.xxx` instead of `Conf.appearance.xxx`
|
||||
readonly property AppearanceConf.Rounding rounding: Config.appearance.rounding
|
||||
readonly property AppearanceConf.Spacing spacing: Config.appearance.spacing
|
||||
readonly property AppearanceConf.Padding padding: Config.appearance.padding
|
||||
readonly property AppearanceConf.FontStuff font: Config.appearance.font
|
||||
readonly property AppearanceConf.Anim anim: Config.appearance.anim
|
||||
readonly property AppearanceConf.Transparency transparency: Config.appearance.transparency
|
||||
readonly property AppearanceConf.Anim anim: Config.appearance.anim
|
||||
readonly property AppearanceConf.FontStuff font: Config.appearance.font
|
||||
readonly property AppearanceConf.Padding padding: Config.appearance.padding
|
||||
// Literally just here to shorten accessing stuff :woe:
|
||||
// Also kinda so I can keep accessing it with `Appearance.xxx` instead of `Conf.appearance.xxx`
|
||||
readonly property AppearanceConf.Rounding rounding: Config.appearance.rounding
|
||||
readonly property AppearanceConf.Spacing spacing: Config.appearance.spacing
|
||||
readonly property AppearanceConf.Transparency transparency: Config.appearance.transparency
|
||||
}
|
||||
|
||||
+90
-89
@@ -1,94 +1,95 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property Rounding rounding: Rounding {}
|
||||
property Spacing spacing: Spacing {}
|
||||
property Padding padding: Padding {}
|
||||
property FontStuff font: FontStuff {}
|
||||
property Anim anim: Anim {}
|
||||
property Transparency transparency: Transparency {}
|
||||
property Anim anim: Anim {
|
||||
}
|
||||
property FontStuff font: FontStuff {
|
||||
}
|
||||
property Padding padding: Padding {
|
||||
}
|
||||
property Rounding rounding: Rounding {
|
||||
}
|
||||
property Spacing spacing: Spacing {
|
||||
}
|
||||
property Transparency transparency: Transparency {
|
||||
}
|
||||
|
||||
component Rounding: JsonObject {
|
||||
property real scale: 1
|
||||
property int small: 12 * scale
|
||||
property int normal: 17 * scale
|
||||
property int large: 25 * scale
|
||||
property int full: 1000 * scale
|
||||
}
|
||||
|
||||
component Spacing: JsonObject {
|
||||
property real scale: 1
|
||||
property int small: 7 * scale
|
||||
property int smaller: 10 * scale
|
||||
property int normal: 12 * scale
|
||||
property int larger: 15 * scale
|
||||
property int large: 20 * scale
|
||||
}
|
||||
|
||||
component Padding: JsonObject {
|
||||
property real scale: 1
|
||||
property int small: 5 * scale
|
||||
property int smaller: 7 * scale
|
||||
property int normal: 10 * scale
|
||||
property int larger: 12 * scale
|
||||
property int large: 15 * scale
|
||||
}
|
||||
|
||||
component FontFamily: JsonObject {
|
||||
property string sans: "Segoe UI Variable Text"
|
||||
property string mono: "CaskaydiaCove NF"
|
||||
property string material: "Material Symbols Rounded"
|
||||
property string clock: "Rubik"
|
||||
}
|
||||
|
||||
component FontSize: JsonObject {
|
||||
property real scale: 1
|
||||
property int small: 11 * scale
|
||||
property int smaller: 12 * scale
|
||||
property int normal: 13 * scale
|
||||
property int larger: 15 * scale
|
||||
property int large: 18 * scale
|
||||
property int extraLarge: 28 * scale
|
||||
}
|
||||
|
||||
component FontStuff: JsonObject {
|
||||
property FontFamily family: FontFamily {}
|
||||
property FontSize size: FontSize {}
|
||||
}
|
||||
|
||||
component AnimCurves: JsonObject {
|
||||
property list<real> emphasized: [0.05, 0, 2 / 15, 0.06, 1 / 6, 0.4, 5 / 24, 0.82, 0.25, 1, 1, 1]
|
||||
property list<real> emphasizedAccel: [0.3, 0, 0.8, 0.15, 1, 1]
|
||||
property list<real> emphasizedDecel: [0.05, 0.7, 0.1, 1, 1, 1]
|
||||
property list<real> standard: [0.2, 0, 0, 1, 1, 1]
|
||||
property list<real> standardAccel: [0.3, 0, 1, 1, 1, 1]
|
||||
property list<real> standardDecel: [0, 0, 0, 1, 1, 1]
|
||||
property list<real> expressiveFastSpatial: [0.42, 1.67, 0.21, 0.9, 1, 1]
|
||||
property list<real> expressiveDefaultSpatial: [0.38, 1.21, 0.22, 1, 1, 1]
|
||||
property list<real> expressiveEffects: [0.34, 0.8, 0.34, 1, 1, 1]
|
||||
}
|
||||
|
||||
component AnimDurations: JsonObject {
|
||||
property real scale: 1
|
||||
property int small: 200 * scale
|
||||
property int normal: 400 * scale
|
||||
property int large: 600 * scale
|
||||
property int extraLarge: 1000 * scale
|
||||
property int expressiveFastSpatial: 350 * scale
|
||||
property int expressiveDefaultSpatial: 500 * scale
|
||||
property int expressiveEffects: 200 * scale
|
||||
}
|
||||
|
||||
component Anim: JsonObject {
|
||||
property real mediaGifSpeedAdjustment: 300
|
||||
property real sessionGifSpeed: 0.7
|
||||
property AnimCurves curves: AnimCurves {}
|
||||
property AnimDurations durations: AnimDurations {}
|
||||
}
|
||||
|
||||
component Transparency: JsonObject {
|
||||
property bool enabled: false
|
||||
property real base: 0.85
|
||||
property real layers: 0.4
|
||||
}
|
||||
component Anim: JsonObject {
|
||||
property AnimCurves curves: AnimCurves {
|
||||
}
|
||||
property AnimDurations durations: AnimDurations {
|
||||
}
|
||||
property real mediaGifSpeedAdjustment: 300
|
||||
property real sessionGifSpeed: 0.7
|
||||
}
|
||||
component AnimCurves: JsonObject {
|
||||
property list<real> emphasized: [0.05, 0, 2 / 15, 0.06, 1 / 6, 0.4, 5 / 24, 0.82, 0.25, 1, 1, 1]
|
||||
property list<real> emphasizedAccel: [0.3, 0, 0.8, 0.15, 1, 1]
|
||||
property list<real> emphasizedDecel: [0.05, 0.7, 0.1, 1, 1, 1]
|
||||
property list<real> expressiveDefaultSpatial: [0.38, 1.21, 0.22, 1, 1, 1]
|
||||
property list<real> expressiveEffects: [0.34, 0.8, 0.34, 1, 1, 1]
|
||||
property list<real> expressiveFastSpatial: [0.42, 1.67, 0.21, 0.9, 1, 1]
|
||||
property list<real> standard: [0.2, 0, 0, 1, 1, 1]
|
||||
property list<real> standardAccel: [0.3, 0, 1, 1, 1, 1]
|
||||
property list<real> standardDecel: [0, 0, 0, 1, 1, 1]
|
||||
}
|
||||
component AnimDurations: JsonObject {
|
||||
property int expressiveDefaultSpatial: 500 * scale
|
||||
property int expressiveEffects: 200 * scale
|
||||
property int expressiveFastSpatial: 350 * scale
|
||||
property int extraLarge: 1000 * scale
|
||||
property int large: 600 * scale
|
||||
property int normal: 400 * scale
|
||||
property real scale: 1
|
||||
property int small: 200 * scale
|
||||
}
|
||||
component FontFamily: JsonObject {
|
||||
property string clock: "Rubik"
|
||||
property string material: "Material Symbols Rounded"
|
||||
property string mono: "CaskaydiaCove NF"
|
||||
property string sans: "Segoe UI Variable Text"
|
||||
}
|
||||
component FontSize: JsonObject {
|
||||
property int extraLarge: 28 * scale
|
||||
property int large: 18 * scale
|
||||
property int larger: 15 * scale
|
||||
property int normal: 13 * scale
|
||||
property real scale: 1
|
||||
property int small: 11 * scale
|
||||
property int smaller: 12 * scale
|
||||
}
|
||||
component FontStuff: JsonObject {
|
||||
property FontFamily family: FontFamily {
|
||||
}
|
||||
property FontSize size: FontSize {
|
||||
}
|
||||
}
|
||||
component Padding: JsonObject {
|
||||
property int large: 15 * scale
|
||||
property int larger: 12 * scale
|
||||
property int normal: 10 * scale
|
||||
property real scale: 1
|
||||
property int small: 5 * scale
|
||||
property int smaller: 7 * scale
|
||||
}
|
||||
component Rounding: JsonObject {
|
||||
property int full: 1000 * scale
|
||||
property int large: 25 * scale
|
||||
property int normal: 17 * scale
|
||||
property real scale: 1
|
||||
property int small: 12 * scale
|
||||
}
|
||||
component Spacing: JsonObject {
|
||||
property int large: 20 * scale
|
||||
property int larger: 15 * scale
|
||||
property int normal: 12 * scale
|
||||
property real scale: 1
|
||||
property int small: 7 * scale
|
||||
property int smaller: 10 * scale
|
||||
}
|
||||
component Transparency: JsonObject {
|
||||
property real base: 0.85
|
||||
property bool enabled: false
|
||||
property real layers: 0.4
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@ import Quickshell.Io
|
||||
import qs.Config
|
||||
|
||||
JsonObject {
|
||||
property int wallFadeDuration: MaterialEasing.standardTime
|
||||
property bool enabled: true
|
||||
property bool enabled: true
|
||||
property int wallFadeDuration: MaterialEasing.standardTime
|
||||
}
|
||||
|
||||
@@ -2,9 +2,6 @@ import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property bool autoHide: false
|
||||
property int rounding: 8
|
||||
property Popouts popouts: Popouts {}
|
||||
|
||||
property list<var> entries: [
|
||||
{
|
||||
id: "workspaces",
|
||||
@@ -59,14 +56,17 @@ JsonObject {
|
||||
enabled: true
|
||||
},
|
||||
]
|
||||
property Popouts popouts: Popouts {
|
||||
}
|
||||
property int rounding: 8
|
||||
|
||||
component Popouts: JsonObject {
|
||||
property bool tray: true
|
||||
property bool audio: true
|
||||
property bool activeWindow: true
|
||||
property bool resources: true
|
||||
property bool audio: true
|
||||
property bool clock: true
|
||||
property bool network: true
|
||||
property bool resources: true
|
||||
property bool tray: true
|
||||
property bool upower: true
|
||||
}
|
||||
}
|
||||
|
||||
+309
-297
@@ -4,27 +4,27 @@ import Quickshell
|
||||
import Quickshell.Io
|
||||
import ZShell
|
||||
import QtQuick
|
||||
import qs.Modules as Modules
|
||||
import qs.Helpers
|
||||
import qs.Paths
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
property alias background: adapter.background
|
||||
property alias barConfig: adapter.barConfig
|
||||
property alias lock: adapter.lock
|
||||
property alias overview: adapter.overview
|
||||
property alias services: adapter.services
|
||||
property alias appearance: adapter.appearance
|
||||
property alias background: adapter.background
|
||||
property alias barConfig: adapter.barConfig
|
||||
property alias colors: adapter.colors
|
||||
property alias dashboard: adapter.dashboard
|
||||
property alias general: adapter.general
|
||||
property alias launcher: adapter.launcher
|
||||
property alias lock: adapter.lock
|
||||
property alias notifs: adapter.notifs
|
||||
property alias osd: adapter.osd
|
||||
property alias overview: adapter.overview
|
||||
property bool recentlySaved: false
|
||||
property alias services: adapter.services
|
||||
property alias sidebar: adapter.sidebar
|
||||
property alias utilities: adapter.utilities
|
||||
property alias general: adapter.general
|
||||
property alias dashboard: adapter.dashboard
|
||||
property alias appearance: adapter.appearance
|
||||
property alias osd: adapter.osd
|
||||
property alias launcher: adapter.launcher
|
||||
property alias colors: adapter.colors
|
||||
|
||||
function save(): void {
|
||||
saveTimer.restart();
|
||||
@@ -32,16 +32,266 @@ Singleton {
|
||||
recentSaveCooldown.restart();
|
||||
}
|
||||
|
||||
property bool recentlySaved: false
|
||||
function serializeAppearance(): var {
|
||||
return {
|
||||
rounding: {
|
||||
scale: appearance.rounding.scale
|
||||
},
|
||||
spacing: {
|
||||
scale: appearance.spacing.scale
|
||||
},
|
||||
padding: {
|
||||
scale: appearance.padding.scale
|
||||
},
|
||||
font: {
|
||||
family: {
|
||||
sans: appearance.font.family.sans,
|
||||
mono: appearance.font.family.mono,
|
||||
material: appearance.font.family.material,
|
||||
clock: appearance.font.family.clock
|
||||
},
|
||||
size: {
|
||||
scale: appearance.font.size.scale
|
||||
}
|
||||
},
|
||||
anim: {
|
||||
mediaGifSpeedAdjustment: 300,
|
||||
sessionGifSpeed: 0.7,
|
||||
durations: {
|
||||
scale: appearance.anim.durations.scale
|
||||
}
|
||||
},
|
||||
transparency: {
|
||||
enabled: appearance.transparency.enabled,
|
||||
base: appearance.transparency.base,
|
||||
layers: appearance.transparency.layers
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeBackground(): var {
|
||||
return {
|
||||
wallFadeDuration: background.wallFadeDuration,
|
||||
enabled: background.enabled
|
||||
};
|
||||
}
|
||||
|
||||
function serializeBar(): var {
|
||||
return {
|
||||
autoHide: barConfig.autoHide,
|
||||
rounding: barConfig.rounding,
|
||||
popouts: {
|
||||
tray: barConfig.popouts.tray,
|
||||
audio: barConfig.popouts.audio,
|
||||
activeWindow: barConfig.popouts.activeWindow,
|
||||
resources: barConfig.popouts.resources,
|
||||
clock: barConfig.popouts.clock,
|
||||
network: barConfig.popouts.network,
|
||||
upower: barConfig.popouts.upower
|
||||
},
|
||||
entries: barConfig.entries
|
||||
};
|
||||
}
|
||||
|
||||
function serializeColors(): var {
|
||||
return {
|
||||
schemeType: colors.schemeType
|
||||
};
|
||||
}
|
||||
|
||||
function serializeConfig(): var {
|
||||
return {
|
||||
barConfig: serializeBar(),
|
||||
lock: serializeLock(),
|
||||
general: serializeGeneral(),
|
||||
services: serializeServices(),
|
||||
notifs: serializeNotifs(),
|
||||
sidebar: serializeSidebar(),
|
||||
utilities: serializeUtilities(),
|
||||
dashboard: serializeDashboard(),
|
||||
appearance: serializeAppearance(),
|
||||
osd: serializeOsd(),
|
||||
background: serializeBackground(),
|
||||
launcher: serializeLauncher(),
|
||||
colors: serializeColors()
|
||||
};
|
||||
}
|
||||
|
||||
function serializeDashboard(): var {
|
||||
return {
|
||||
enabled: dashboard.enabled,
|
||||
mediaUpdateInterval: dashboard.mediaUpdateInterval,
|
||||
dragThreshold: dashboard.dragThreshold,
|
||||
sizes: {
|
||||
tabIndicatorHeight: dashboard.sizes.tabIndicatorHeight,
|
||||
tabIndicatorSpacing: dashboard.sizes.tabIndicatorSpacing,
|
||||
infoWidth: dashboard.sizes.infoWidth,
|
||||
infoIconSize: dashboard.sizes.infoIconSize,
|
||||
dateTimeWidth: dashboard.sizes.dateTimeWidth,
|
||||
mediaWidth: dashboard.sizes.mediaWidth,
|
||||
mediaProgressSweep: dashboard.sizes.mediaProgressSweep,
|
||||
mediaProgressThickness: dashboard.sizes.mediaProgressThickness,
|
||||
resourceProgessThickness: dashboard.sizes.resourceProgessThickness,
|
||||
weatherWidth: dashboard.sizes.weatherWidth,
|
||||
mediaCoverArtSize: dashboard.sizes.mediaCoverArtSize,
|
||||
mediaVisualiserSize: dashboard.sizes.mediaVisualiserSize,
|
||||
resourceSize: dashboard.sizes.resourceSize
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeGeneral(): var {
|
||||
return {
|
||||
logo: general.logo,
|
||||
wallpaperPath: general.wallpaperPath,
|
||||
color: {
|
||||
wallust: general.color.wallust,
|
||||
mode: general.color.mode,
|
||||
schemeGeneration: general.color.schemeGeneration,
|
||||
scheduleDarkStart: general.color.scheduleDarkStart,
|
||||
scheduleDarkEnd: general.color.scheduleDarkEnd,
|
||||
neovimColors: general.color.neovimColors
|
||||
},
|
||||
apps: {
|
||||
terminal: general.apps.terminal,
|
||||
audio: general.apps.audio,
|
||||
playback: general.apps.playback,
|
||||
explorer: general.apps.explorer
|
||||
},
|
||||
idle: {
|
||||
timouts: general.idle.timeouts
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeLauncher(): var {
|
||||
return {
|
||||
maxAppsShown: launcher.maxAppsShown,
|
||||
maxWallpapers: launcher.maxWallpapers,
|
||||
actionPrefix: launcher.actionPrefix,
|
||||
specialPrefix: launcher.specialPrefix,
|
||||
useFuzzy: {
|
||||
apps: launcher.useFuzzy.apps,
|
||||
actions: launcher.useFuzzy.actions,
|
||||
schemes: launcher.useFuzzy.schemes,
|
||||
variants: launcher.useFuzzy.variants,
|
||||
wallpapers: launcher.useFuzzy.wallpapers
|
||||
},
|
||||
sizes: {
|
||||
itemWidth: launcher.sizes.itemWidth,
|
||||
itemHeight: launcher.sizes.itemHeight,
|
||||
wallpaperWidth: launcher.sizes.wallpaperWidth,
|
||||
wallpaperHeight: launcher.sizes.wallpaperHeight
|
||||
},
|
||||
actions: launcher.actions
|
||||
};
|
||||
}
|
||||
|
||||
function serializeLock(): var {
|
||||
return {
|
||||
recolorLogo: lock.recolorLogo,
|
||||
enableFprint: lock.enableFprint,
|
||||
maxFprintTries: lock.maxFprintTries,
|
||||
blurAmount: lock.blurAmount,
|
||||
sizes: {
|
||||
heightMult: lock.sizes.heightMult,
|
||||
ratio: lock.sizes.ratio,
|
||||
centerWidth: lock.sizes.centerWidth
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeNotifs(): var {
|
||||
return {
|
||||
expire: notifs.expire,
|
||||
defaultExpireTimeout: notifs.defaultExpireTimeout,
|
||||
clearThreshold: notifs.clearThreshold,
|
||||
expandThreshold: notifs.expandThreshold,
|
||||
actionOnClick: notifs.actionOnClick,
|
||||
groupPreviewNum: notifs.groupPreviewNum,
|
||||
sizes: {
|
||||
width: notifs.sizes.width,
|
||||
image: notifs.sizes.image,
|
||||
badge: notifs.sizes.badge
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeOsd(): var {
|
||||
return {
|
||||
enabled: osd.enabled,
|
||||
hideDelay: osd.hideDelay,
|
||||
enableBrightness: osd.enableBrightness,
|
||||
enableMicrophone: osd.enableMicrophone,
|
||||
allMonBrightness: osd.allMonBrightness,
|
||||
sizes: {
|
||||
sliderWidth: osd.sizes.sliderWidth,
|
||||
sliderHeight: osd.sizes.sliderHeight
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeServices(): var {
|
||||
return {
|
||||
weatherLocation: services.weatherLocation,
|
||||
useFahrenheit: services.useFahrenheit,
|
||||
useTwelveHourClock: services.useTwelveHourClock,
|
||||
gpuType: services.gpuType,
|
||||
audioIncrement: services.audioIncrement,
|
||||
brightnessIncrement: services.brightnessIncrement,
|
||||
maxVolume: services.maxVolume,
|
||||
defaultPlayer: services.defaultPlayer,
|
||||
playerAliases: services.playerAliases
|
||||
};
|
||||
}
|
||||
|
||||
function serializeSidebar(): var {
|
||||
return {
|
||||
enabled: sidebar.enabled,
|
||||
sizes: {
|
||||
width: sidebar.sizes.width
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeUtilities(): var {
|
||||
return {
|
||||
enabled: utilities.enabled,
|
||||
maxToasts: utilities.maxToasts,
|
||||
sizes: {
|
||||
width: utilities.sizes.width,
|
||||
toastWidth: utilities.sizes.toastWidth
|
||||
},
|
||||
toasts: {
|
||||
configLoaded: utilities.toasts.configLoaded,
|
||||
chargingChanged: utilities.toasts.chargingChanged,
|
||||
gameModeChanged: utilities.toasts.gameModeChanged,
|
||||
dndChanged: utilities.toasts.dndChanged,
|
||||
audioOutputChanged: utilities.toasts.audioOutputChanged,
|
||||
audioInputChanged: utilities.toasts.audioInputChanged,
|
||||
capsLockChanged: utilities.toasts.capsLockChanged,
|
||||
numLockChanged: utilities.toasts.numLockChanged,
|
||||
kbLayoutChanged: utilities.toasts.kbLayoutChanged,
|
||||
vpnChanged: utilities.toasts.vpnChanged,
|
||||
nowPlaying: utilities.toasts.nowPlaying
|
||||
},
|
||||
vpn: {
|
||||
enabled: utilities.vpn.enabled,
|
||||
provider: utilities.vpn.provider
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
ElapsedTimer {
|
||||
id: timer
|
||||
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: saveTimer
|
||||
|
||||
interval: 500
|
||||
|
||||
onTriggered: {
|
||||
timer.restart();
|
||||
try {
|
||||
@@ -65,316 +315,78 @@ Singleton {
|
||||
id: recentSaveCooldown
|
||||
|
||||
interval: 2000
|
||||
|
||||
onTriggered: {
|
||||
root.recentlySaved = false;
|
||||
}
|
||||
}
|
||||
|
||||
function serializeConfig(): var {
|
||||
return {
|
||||
barConfig: serializeBar(),
|
||||
lock: serializeLock(),
|
||||
general: serializeGeneral(),
|
||||
services: serializeServices(),
|
||||
notifs: serializeNotifs(),
|
||||
sidebar: serializeSidebar(),
|
||||
utilities: serializeUtilities(),
|
||||
dashboard: serializeDashboard(),
|
||||
appearance: serializeAppearance(),
|
||||
osd: serializeOsd(),
|
||||
background: serializeBackground(),
|
||||
launcher: serializeLauncher(),
|
||||
colors: serializeColors()
|
||||
}
|
||||
}
|
||||
FileView {
|
||||
id: fileView
|
||||
|
||||
function serializeBar(): var {
|
||||
return {
|
||||
autoHide: barConfig.autoHide,
|
||||
rounding: barConfig.rounding,
|
||||
popouts: {
|
||||
tray: barConfig.popouts.tray,
|
||||
audio: barConfig.popouts.audio,
|
||||
activeWindow: barConfig.popouts.activeWindow,
|
||||
resources: barConfig.popouts.resources,
|
||||
clock: barConfig.popouts.clock,
|
||||
network: barConfig.popouts.network,
|
||||
upower: barConfig.popouts.upower
|
||||
},
|
||||
entries: barConfig.entries
|
||||
}
|
||||
}
|
||||
path: `${Paths.config}/config.json`
|
||||
watchChanges: true
|
||||
|
||||
function serializeLock(): var {
|
||||
return {
|
||||
recolorLogo: lock.recolorLogo,
|
||||
enableFprint: lock.enableFprint,
|
||||
maxFprintTries: lock.maxFprintTries,
|
||||
blurAmount: lock.blurAmount,
|
||||
sizes: {
|
||||
heightMult: lock.sizes.heightMult,
|
||||
ratio: lock.sizes.ratio,
|
||||
centerWidth: lock.sizes.centerWidth
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeGeneral(): var {
|
||||
return {
|
||||
logo: general.logo,
|
||||
wallpaperPath: general.wallpaperPath,
|
||||
color: {
|
||||
wallust: general.color.wallust,
|
||||
mode: general.color.mode,
|
||||
schemeGeneration: general.color.schemeGeneration,
|
||||
scheduleDarkStart: general.color.scheduleDarkStart,
|
||||
scheduleDarkEnd: general.color.scheduleDarkEnd,
|
||||
neovimColors: general.color.neovimColors
|
||||
},
|
||||
apps: {
|
||||
terminal: general.apps.terminal,
|
||||
audio: general.apps.audio,
|
||||
playback: general.apps.playback,
|
||||
explorer: general.apps.explorer,
|
||||
},
|
||||
idle: {
|
||||
timouts: general.idle.timeouts
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function serializeServices(): var {
|
||||
return {
|
||||
weatherLocation: services.weatherLocation,
|
||||
useFahrenheit: services.useFahrenheit,
|
||||
useTwelveHourClock: services.useTwelveHourClock,
|
||||
gpuType: services.gpuType,
|
||||
audioIncrement: services.audioIncrement,
|
||||
brightnessIncrement: services.brightnessIncrement,
|
||||
maxVolume: services.maxVolume,
|
||||
defaultPlayer: services.defaultPlayer,
|
||||
playerAliases: services.playerAliases
|
||||
};
|
||||
}
|
||||
|
||||
function serializeNotifs(): var {
|
||||
return {
|
||||
expire: notifs.expire,
|
||||
defaultExpireTimeout: notifs.defaultExpireTimeout,
|
||||
clearThreshold: notifs.clearThreshold,
|
||||
expandThreshold: notifs.expandThreshold,
|
||||
actionOnClick: notifs.actionOnClick,
|
||||
groupPreviewNum: notifs.groupPreviewNum,
|
||||
sizes: {
|
||||
width: notifs.sizes.width,
|
||||
image: notifs.sizes.image,
|
||||
badge: notifs.sizes.badge
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeSidebar(): var {
|
||||
return {
|
||||
enabled: sidebar.enabled,
|
||||
sizes: {
|
||||
width: sidebar.sizes.width
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeUtilities(): var {
|
||||
return {
|
||||
enabled: utilities.enabled,
|
||||
maxToasts: utilities.maxToasts,
|
||||
sizes: {
|
||||
width: utilities.sizes.width,
|
||||
toastWidth: utilities.sizes.toastWidth
|
||||
},
|
||||
toasts: {
|
||||
configLoaded: utilities.toasts.configLoaded,
|
||||
chargingChanged: utilities.toasts.chargingChanged,
|
||||
gameModeChanged: utilities.toasts.gameModeChanged,
|
||||
dndChanged: utilities.toasts.dndChanged,
|
||||
audioOutputChanged: utilities.toasts.audioOutputChanged,
|
||||
audioInputChanged: utilities.toasts.audioInputChanged,
|
||||
capsLockChanged: utilities.toasts.capsLockChanged,
|
||||
numLockChanged: utilities.toasts.numLockChanged,
|
||||
kbLayoutChanged: utilities.toasts.kbLayoutChanged,
|
||||
vpnChanged: utilities.toasts.vpnChanged,
|
||||
nowPlaying: utilities.toasts.nowPlaying
|
||||
},
|
||||
vpn: {
|
||||
enabled: utilities.vpn.enabled,
|
||||
provider: utilities.vpn.provider
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeDashboard(): var {
|
||||
return {
|
||||
enabled: dashboard.enabled,
|
||||
mediaUpdateInterval: dashboard.mediaUpdateInterval,
|
||||
dragThreshold: dashboard.dragThreshold,
|
||||
sizes: {
|
||||
tabIndicatorHeight: dashboard.sizes.tabIndicatorHeight,
|
||||
tabIndicatorSpacing: dashboard.sizes.tabIndicatorSpacing,
|
||||
infoWidth: dashboard.sizes.infoWidth,
|
||||
infoIconSize: dashboard.sizes.infoIconSize,
|
||||
dateTimeWidth: dashboard.sizes.dateTimeWidth,
|
||||
mediaWidth: dashboard.sizes.mediaWidth,
|
||||
mediaProgressSweep: dashboard.sizes.mediaProgressSweep,
|
||||
mediaProgressThickness: dashboard.sizes.mediaProgressThickness,
|
||||
resourceProgessThickness: dashboard.sizes.resourceProgessThickness,
|
||||
weatherWidth: dashboard.sizes.weatherWidth,
|
||||
mediaCoverArtSize: dashboard.sizes.mediaCoverArtSize,
|
||||
mediaVisualiserSize: dashboard.sizes.mediaVisualiserSize,
|
||||
resourceSize: dashboard.sizes.resourceSize
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeOsd(): var {
|
||||
return {
|
||||
enabled: osd.enabled,
|
||||
hideDelay: osd.hideDelay,
|
||||
enableBrightness: osd.enableBrightness,
|
||||
enableMicrophone: osd.enableMicrophone,
|
||||
allMonBrightness: osd.allMonBrightness,
|
||||
sizes: {
|
||||
sliderWidth: osd.sizes.sliderWidth,
|
||||
sliderHeight: osd.sizes.sliderHeight
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeLauncher(): var {
|
||||
return {
|
||||
maxAppsShown: launcher.maxAppsShown,
|
||||
maxWallpapers: launcher.maxWallpapers,
|
||||
actionPrefix: launcher.actionPrefix,
|
||||
specialPrefix: launcher.specialPrefix,
|
||||
useFuzzy: {
|
||||
apps: launcher.useFuzzy.apps,
|
||||
actions: launcher.useFuzzy.actions,
|
||||
schemes: launcher.useFuzzy.schemes,
|
||||
variants: launcher.useFuzzy.variants,
|
||||
wallpapers: launcher.useFuzzy.wallpapers
|
||||
},
|
||||
sizes: {
|
||||
itemWidth: launcher.sizes.itemWidth,
|
||||
itemHeight: launcher.sizes.itemHeight,
|
||||
wallpaperWidth: launcher.sizes.wallpaperWidth,
|
||||
wallpaperHeight: launcher.sizes.wallpaperHeight
|
||||
},
|
||||
actions: launcher.actions
|
||||
}
|
||||
}
|
||||
|
||||
function serializeBackground(): var {
|
||||
return {
|
||||
wallFadeDuration: background.wallFadeDuration,
|
||||
enabled: background.enabled
|
||||
}
|
||||
}
|
||||
|
||||
function serializeAppearance(): var {
|
||||
return {
|
||||
rounding: {
|
||||
scale: appearance.rounding.scale
|
||||
},
|
||||
spacing: {
|
||||
scale: appearance.spacing.scale
|
||||
},
|
||||
padding: {
|
||||
scale: appearance.padding.scale
|
||||
},
|
||||
font: {
|
||||
family: {
|
||||
sans: appearance.font.family.sans,
|
||||
mono: appearance.font.family.mono,
|
||||
material: appearance.font.family.material,
|
||||
clock: appearance.font.family.clock
|
||||
},
|
||||
size: {
|
||||
scale: appearance.font.size.scale
|
||||
}
|
||||
},
|
||||
anim: {
|
||||
mediaGifSpeedAdjustment: 300,
|
||||
sessionGifSpeed: 0.7,
|
||||
durations: {
|
||||
scale: appearance.anim.durations.scale
|
||||
}
|
||||
},
|
||||
transparency: {
|
||||
enabled: appearance.transparency.enabled,
|
||||
base: appearance.transparency.base,
|
||||
layers: appearance.transparency.layers
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function serializeColors(): var {
|
||||
return {
|
||||
schemeType: colors.schemeType,
|
||||
}
|
||||
}
|
||||
|
||||
FileView {
|
||||
id: fileView
|
||||
|
||||
path: `${Paths.config}/config.json`
|
||||
|
||||
watchChanges: true
|
||||
|
||||
onFileChanged: {
|
||||
if ( !root.recentlySaved ) {
|
||||
onFileChanged: {
|
||||
if (!root.recentlySaved) {
|
||||
timer.restart();
|
||||
reload();
|
||||
} else {
|
||||
reload();
|
||||
}
|
||||
}
|
||||
|
||||
onLoadFailed: err => {
|
||||
if (err !== FileViewError.FileNotFound)
|
||||
Toaster.toast(qsTr("Failed to read config"), FileViewError.toString(err), "settings_alert", Toast.Warning);
|
||||
}
|
||||
onLoaded: {
|
||||
ModeScheduler.checkStartup();
|
||||
try {
|
||||
JSON.parse(text());
|
||||
const elapsed = timer.elapsedMs();
|
||||
|
||||
if ( adapter.utilities.toasts.configLoaded && !root.recentlySaved ) {
|
||||
if (adapter.utilities.toasts.configLoaded && !root.recentlySaved) {
|
||||
Toaster.toast(qsTr("Config loaded"), qsTr("Config loaded in %1ms").arg(elapsed), "rule_settings");
|
||||
} else if ( adapter.utilities.toasts.configLoaded && root.recentlySaved ) {
|
||||
} else if (adapter.utilities.toasts.configLoaded && root.recentlySaved) {
|
||||
Toaster.toast(qsTr("Config saved"), qsTr("Config reloaded in %1ms").arg(elapsed), "settings_alert");
|
||||
}
|
||||
} catch (e) {
|
||||
Toaster.toast(qsTr("Failed to load config"), e.message, "settings_alert", Toast.Error);
|
||||
}
|
||||
}
|
||||
|
||||
onLoadFailed: err => {
|
||||
if ( err !== FileViewError.FileNotFound )
|
||||
Toaster.toast(qsTr("Failed to read config"), FileViewError.toString(err), "settings_alert", Toast.Warning);
|
||||
}
|
||||
|
||||
onSaveFailed: err => Toaster.toast(qsTr("Failed to save config"), FileViewError.toString(err), "settings_alert", Toast.Error)
|
||||
|
||||
JsonAdapter {
|
||||
id: adapter
|
||||
property BackgroundConfig background: BackgroundConfig {}
|
||||
property BarConfig barConfig: BarConfig {}
|
||||
property LockConf lock: LockConf {}
|
||||
property Overview overview: Overview {}
|
||||
property Services services: Services {}
|
||||
property NotifConfig notifs: NotifConfig {}
|
||||
property SidebarConfig sidebar: SidebarConfig {}
|
||||
property UtilConfig utilities: UtilConfig {}
|
||||
property General general: General {}
|
||||
property DashboardConfig dashboard: DashboardConfig {}
|
||||
property AppearanceConf appearance: AppearanceConf {}
|
||||
property Osd osd: Osd {}
|
||||
property Launcher launcher: Launcher {}
|
||||
property Colors colors: Colors {}
|
||||
}
|
||||
}
|
||||
JsonAdapter {
|
||||
id: adapter
|
||||
|
||||
property AppearanceConf appearance: AppearanceConf {
|
||||
}
|
||||
property BackgroundConfig background: BackgroundConfig {
|
||||
}
|
||||
property BarConfig barConfig: BarConfig {
|
||||
}
|
||||
property Colors colors: Colors {
|
||||
}
|
||||
property DashboardConfig dashboard: DashboardConfig {
|
||||
}
|
||||
property General general: General {
|
||||
}
|
||||
property Launcher launcher: Launcher {
|
||||
}
|
||||
property LockConf lock: LockConf {
|
||||
}
|
||||
property NotifConfig notifs: NotifConfig {
|
||||
}
|
||||
property Osd osd: Osd {
|
||||
}
|
||||
property Overview overview: Overview {
|
||||
}
|
||||
property Services services: Services {
|
||||
}
|
||||
property SidebarConfig sidebar: SidebarConfig {
|
||||
}
|
||||
property UtilConfig utilities: UtilConfig {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+20
-19
@@ -1,24 +1,25 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property bool enabled: true
|
||||
property int mediaUpdateInterval: 500
|
||||
property int dragThreshold: 50
|
||||
property Sizes sizes: Sizes {}
|
||||
property int dragThreshold: 50
|
||||
property bool enabled: true
|
||||
property int mediaUpdateInterval: 500
|
||||
property Sizes sizes: Sizes {
|
||||
}
|
||||
|
||||
component Sizes: JsonObject {
|
||||
readonly property int tabIndicatorHeight: 3
|
||||
readonly property int tabIndicatorSpacing: 5
|
||||
readonly property int infoWidth: 200
|
||||
readonly property int infoIconSize: 25
|
||||
readonly property int dateTimeWidth: 110
|
||||
readonly property int mediaWidth: 200
|
||||
readonly property int mediaProgressSweep: 180
|
||||
readonly property int mediaProgressThickness: 8
|
||||
readonly property int resourceProgessThickness: 10
|
||||
readonly property int weatherWidth: 250
|
||||
readonly property int mediaCoverArtSize: 150
|
||||
readonly property int mediaVisualiserSize: 80
|
||||
readonly property int resourceSize: 200
|
||||
}
|
||||
component Sizes: JsonObject {
|
||||
readonly property int dateTimeWidth: 110
|
||||
readonly property int infoIconSize: 25
|
||||
readonly property int infoWidth: 200
|
||||
readonly property int mediaCoverArtSize: 150
|
||||
readonly property int mediaProgressSweep: 180
|
||||
readonly property int mediaProgressThickness: 8
|
||||
readonly property int mediaVisualiserSize: 80
|
||||
readonly property int mediaWidth: 200
|
||||
readonly property int resourceProgessThickness: 10
|
||||
readonly property int resourceSize: 200
|
||||
readonly property int tabIndicatorHeight: 3
|
||||
readonly property int tabIndicatorSpacing: 5
|
||||
readonly property int weatherWidth: 250
|
||||
}
|
||||
}
|
||||
|
||||
+235
-233
@@ -9,270 +9,272 @@ import qs.Helpers
|
||||
import qs.Paths
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
id: root
|
||||
|
||||
property bool showPreview
|
||||
property string scheme
|
||||
property string flavour
|
||||
readonly property bool light: showPreview ? previewLight : currentLight
|
||||
property bool currentLight
|
||||
property bool previewLight
|
||||
readonly property M3Palette palette: showPreview ? preview : current
|
||||
readonly property M3TPalette tPalette: M3TPalette {}
|
||||
readonly property M3Palette current: M3Palette {}
|
||||
readonly property M3Palette preview: M3Palette {}
|
||||
readonly property Transparency transparency: Transparency {}
|
||||
readonly property alias wallLuminance: analyser.luminance
|
||||
readonly property M3Palette current: M3Palette {
|
||||
}
|
||||
property bool currentLight
|
||||
property string flavour
|
||||
readonly property bool light: showPreview ? previewLight : currentLight
|
||||
readonly property M3Palette palette: showPreview ? preview : current
|
||||
readonly property M3Palette preview: M3Palette {
|
||||
}
|
||||
property bool previewLight
|
||||
property string scheme
|
||||
property bool showPreview
|
||||
readonly property M3TPalette tPalette: M3TPalette {
|
||||
}
|
||||
readonly property Transparency transparency: Transparency {
|
||||
}
|
||||
readonly property alias wallLuminance: analyser.luminance
|
||||
|
||||
function getLuminance(c: color): real {
|
||||
if (c.r == 0 && c.g == 0 && c.b == 0)
|
||||
return 0;
|
||||
return Math.sqrt(0.299 * (c.r ** 2) + 0.587 * (c.g ** 2) + 0.114 * (c.b ** 2));
|
||||
}
|
||||
function alterColor(c: color, a: real, layer: int): color {
|
||||
const luminance = getLuminance(c);
|
||||
|
||||
function alterColor(c: color, a: real, layer: int): color {
|
||||
const luminance = getLuminance(c);
|
||||
const offset = (!light || layer == 1 ? 1 : -layer / 2) * (light ? 0.2 : 0.3) * (1 - transparency.base) * (1 + wallLuminance * (light ? (layer == 1 ? 3 : 1) : 2.5));
|
||||
const scale = (luminance + offset) / luminance;
|
||||
const r = Math.max(0, Math.min(1, c.r * scale));
|
||||
const g = Math.max(0, Math.min(1, c.g * scale));
|
||||
const b = Math.max(0, Math.min(1, c.b * scale));
|
||||
|
||||
const offset = (!light || layer == 1 ? 1 : -layer / 2) * (light ? 0.2 : 0.3) * (1 - transparency.base) * (1 + wallLuminance * (light ? (layer == 1 ? 3 : 1) : 2.5));
|
||||
const scale = (luminance + offset) / luminance;
|
||||
const r = Math.max(0, Math.min(1, c.r * scale));
|
||||
const g = Math.max(0, Math.min(1, c.g * scale));
|
||||
const b = Math.max(0, Math.min(1, c.b * scale));
|
||||
return Qt.rgba(r, g, b, a);
|
||||
}
|
||||
|
||||
return Qt.rgba(r, g, b, a);
|
||||
}
|
||||
function getLuminance(c: color): real {
|
||||
if (c.r == 0 && c.g == 0 && c.b == 0)
|
||||
return 0;
|
||||
return Math.sqrt(0.299 * (c.r ** 2) + 0.587 * (c.g ** 2) + 0.114 * (c.b ** 2));
|
||||
}
|
||||
|
||||
function layer(c: color, layer: var): color {
|
||||
if (!transparency.enabled)
|
||||
return c;
|
||||
function layer(c: color, layer: var): color {
|
||||
if (!transparency.enabled)
|
||||
return c;
|
||||
|
||||
return layer === 0 ? Qt.alpha(c, transparency.base) : alterColor(c, transparency.layers, layer ?? 1);
|
||||
}
|
||||
return layer === 0 ? Qt.alpha(c, transparency.base) : alterColor(c, transparency.layers, layer ?? 1);
|
||||
}
|
||||
|
||||
function on(c: color): color {
|
||||
if (c.hslLightness < 0.5)
|
||||
return Qt.hsla(c.hslHue, c.hslSaturation, 0.9, 1);
|
||||
return Qt.hsla(c.hslHue, c.hslSaturation, 0.1, 1);
|
||||
}
|
||||
function load(data: string, isPreview: bool): void {
|
||||
const colors = isPreview ? preview : current;
|
||||
const scheme = JSON.parse(data);
|
||||
|
||||
function load(data: string, isPreview: bool): void {
|
||||
const colors = isPreview ? preview : current;
|
||||
const scheme = JSON.parse(data);
|
||||
if (!isPreview) {
|
||||
root.scheme = scheme.name;
|
||||
flavour = scheme.flavor;
|
||||
currentLight = scheme.mode === "light";
|
||||
} else {
|
||||
previewLight = scheme.mode === "light";
|
||||
}
|
||||
|
||||
if (!isPreview) {
|
||||
root.scheme = scheme.name;
|
||||
flavour = scheme.flavor;
|
||||
currentLight = scheme.mode === "light";
|
||||
} else {
|
||||
previewLight = scheme.mode === "light";
|
||||
}
|
||||
for (const [name, color] of Object.entries(scheme.colors)) {
|
||||
const propName = name.startsWith("term") ? name : `m3${name}`;
|
||||
if (colors.hasOwnProperty(propName))
|
||||
colors[propName] = `${color}`;
|
||||
}
|
||||
}
|
||||
|
||||
for (const [name, color] of Object.entries(scheme.colors)) {
|
||||
const propName = name.startsWith("term") ? name : `m3${name}`;
|
||||
if (colors.hasOwnProperty(propName))
|
||||
colors[propName] = `${color}`;
|
||||
}
|
||||
}
|
||||
function on(c: color): color {
|
||||
if (c.hslLightness < 0.5)
|
||||
return Qt.hsla(c.hslHue, c.hslSaturation, 0.9, 1);
|
||||
return Qt.hsla(c.hslHue, c.hslSaturation, 0.1, 1);
|
||||
}
|
||||
|
||||
FileView {
|
||||
path: `${Paths.state}/scheme.json`
|
||||
watchChanges: true
|
||||
onFileChanged: reload()
|
||||
onLoaded: root.load(text(), false)
|
||||
}
|
||||
FileView {
|
||||
path: `${Paths.state}/scheme.json`
|
||||
watchChanges: true
|
||||
|
||||
ImageAnalyser {
|
||||
id: analyser
|
||||
onFileChanged: reload()
|
||||
onLoaded: root.load(text(), false)
|
||||
}
|
||||
|
||||
source: WallpaperPath.currentWallpaperPath
|
||||
}
|
||||
ImageAnalyser {
|
||||
id: analyser
|
||||
|
||||
component Transparency: QtObject {
|
||||
readonly property bool enabled: Appearance.transparency.enabled
|
||||
readonly property real base: Appearance.transparency.base - (root.light ? 0.1 : 0)
|
||||
readonly property real layers: Appearance.transparency.layers
|
||||
}
|
||||
|
||||
component M3TPalette: QtObject {
|
||||
readonly property color m3primary_paletteKeyColor: root.layer(root.palette.m3primary_paletteKeyColor)
|
||||
readonly property color m3secondary_paletteKeyColor: root.layer(root.palette.m3secondary_paletteKeyColor)
|
||||
readonly property color m3tertiary_paletteKeyColor: root.layer(root.palette.m3tertiary_paletteKeyColor)
|
||||
readonly property color m3neutral_paletteKeyColor: root.layer(root.palette.m3neutral_paletteKeyColor)
|
||||
readonly property color m3neutral_variant_paletteKeyColor: root.layer(root.palette.m3neutral_variant_paletteKeyColor)
|
||||
readonly property color m3background: root.layer(root.palette.m3background, 0)
|
||||
readonly property color m3onBackground: root.layer(root.palette.m3onBackground)
|
||||
readonly property color m3surface: root.layer(root.palette.m3surface, 0)
|
||||
readonly property color m3surfaceDim: root.layer(root.palette.m3surfaceDim, 0)
|
||||
readonly property color m3surfaceBright: root.layer(root.palette.m3surfaceBright, 0)
|
||||
readonly property color m3surfaceContainerLowest: root.layer(root.palette.m3surfaceContainerLowest)
|
||||
readonly property color m3surfaceContainerLow: root.layer(root.palette.m3surfaceContainerLow)
|
||||
readonly property color m3surfaceContainer: root.layer(root.palette.m3surfaceContainer)
|
||||
readonly property color m3surfaceContainerHigh: root.layer(root.palette.m3surfaceContainerHigh)
|
||||
readonly property color m3surfaceContainerHighest: root.layer(root.palette.m3surfaceContainerHighest)
|
||||
readonly property color m3onSurface: root.layer(root.palette.m3onSurface)
|
||||
readonly property color m3surfaceVariant: root.layer(root.palette.m3surfaceVariant, 0)
|
||||
readonly property color m3onSurfaceVariant: root.layer(root.palette.m3onSurfaceVariant)
|
||||
readonly property color m3inverseSurface: root.layer(root.palette.m3inverseSurface, 0)
|
||||
readonly property color m3inverseOnSurface: root.layer(root.palette.m3inverseOnSurface)
|
||||
readonly property color m3outline: root.layer(root.palette.m3outline)
|
||||
readonly property color m3outlineVariant: root.layer(root.palette.m3outlineVariant)
|
||||
readonly property color m3shadow: root.layer(root.palette.m3shadow)
|
||||
readonly property color m3scrim: root.layer(root.palette.m3scrim)
|
||||
readonly property color m3surfaceTint: root.layer(root.palette.m3surfaceTint)
|
||||
readonly property color m3primary: root.layer(root.palette.m3primary)
|
||||
readonly property color m3onPrimary: root.layer(root.palette.m3onPrimary)
|
||||
readonly property color m3primaryContainer: root.layer(root.palette.m3primaryContainer)
|
||||
readonly property color m3onPrimaryContainer: root.layer(root.palette.m3onPrimaryContainer)
|
||||
readonly property color m3inversePrimary: root.layer(root.palette.m3inversePrimary)
|
||||
readonly property color m3secondary: root.layer(root.palette.m3secondary)
|
||||
readonly property color m3onSecondary: root.layer(root.palette.m3onSecondary)
|
||||
readonly property color m3secondaryContainer: root.layer(root.palette.m3secondaryContainer)
|
||||
readonly property color m3onSecondaryContainer: root.layer(root.palette.m3onSecondaryContainer)
|
||||
readonly property color m3tertiary: root.layer(root.palette.m3tertiary)
|
||||
readonly property color m3onTertiary: root.layer(root.palette.m3onTertiary)
|
||||
readonly property color m3tertiaryContainer: root.layer(root.palette.m3tertiaryContainer)
|
||||
readonly property color m3onTertiaryContainer: root.layer(root.palette.m3onTertiaryContainer)
|
||||
readonly property color m3error: root.layer(root.palette.m3error)
|
||||
readonly property color m3onError: root.layer(root.palette.m3onError)
|
||||
readonly property color m3errorContainer: root.layer(root.palette.m3errorContainer)
|
||||
readonly property color m3onErrorContainer: root.layer(root.palette.m3onErrorContainer)
|
||||
readonly property color m3success: root.layer(root.palette.m3success)
|
||||
readonly property color m3onSuccess: root.layer(root.palette.m3onSuccess)
|
||||
readonly property color m3successContainer: root.layer(root.palette.m3successContainer)
|
||||
readonly property color m3onSuccessContainer: root.layer(root.palette.m3onSuccessContainer)
|
||||
readonly property color m3primaryFixed: root.layer(root.palette.m3primaryFixed)
|
||||
readonly property color m3primaryFixedDim: root.layer(root.palette.m3primaryFixedDim)
|
||||
readonly property color m3onPrimaryFixed: root.layer(root.palette.m3onPrimaryFixed)
|
||||
readonly property color m3onPrimaryFixedVariant: root.layer(root.palette.m3onPrimaryFixedVariant)
|
||||
readonly property color m3secondaryFixed: root.layer(root.palette.m3secondaryFixed)
|
||||
readonly property color m3secondaryFixedDim: root.layer(root.palette.m3secondaryFixedDim)
|
||||
readonly property color m3onSecondaryFixed: root.layer(root.palette.m3onSecondaryFixed)
|
||||
readonly property color m3onSecondaryFixedVariant: root.layer(root.palette.m3onSecondaryFixedVariant)
|
||||
readonly property color m3tertiaryFixed: root.layer(root.palette.m3tertiaryFixed)
|
||||
readonly property color m3tertiaryFixedDim: root.layer(root.palette.m3tertiaryFixedDim)
|
||||
readonly property color m3onTertiaryFixed: root.layer(root.palette.m3onTertiaryFixed)
|
||||
readonly property color m3onTertiaryFixedVariant: root.layer(root.palette.m3onTertiaryFixedVariant)
|
||||
}
|
||||
|
||||
component M3Palette: QtObject {
|
||||
property color m3primary_paletteKeyColor: "#a8627b"
|
||||
property color m3secondary_paletteKeyColor: "#8e6f78"
|
||||
property color m3tertiary_paletteKeyColor: "#986e4c"
|
||||
property color m3neutral_paletteKeyColor: "#807477"
|
||||
property color m3neutral_variant_paletteKeyColor: "#837377"
|
||||
property color m3background: "#191114"
|
||||
property color m3onBackground: "#efdfe2"
|
||||
property color m3surface: "#191114"
|
||||
property color m3surfaceDim: "#191114"
|
||||
property color m3surfaceBright: "#403739"
|
||||
property color m3surfaceContainerLowest: "#130c0e"
|
||||
property color m3surfaceContainerLow: "#22191c"
|
||||
property color m3surfaceContainer: "#261d20"
|
||||
property color m3surfaceContainerHigh: "#31282a"
|
||||
property color m3surfaceContainerHighest: "#3c3235"
|
||||
property color m3onSurface: "#efdfe2"
|
||||
property color m3surfaceVariant: "#514347"
|
||||
property color m3onSurfaceVariant: "#d5c2c6"
|
||||
property color m3inverseSurface: "#efdfe2"
|
||||
property color m3inverseOnSurface: "#372e30"
|
||||
property color m3outline: "#9e8c91"
|
||||
property color m3outlineVariant: "#514347"
|
||||
property color m3shadow: "#000000"
|
||||
property color m3scrim: "#000000"
|
||||
property color m3surfaceTint: "#ffb0ca"
|
||||
property color m3primary: "#ffb0ca"
|
||||
property color m3onPrimary: "#541d34"
|
||||
property color m3primaryContainer: "#6f334a"
|
||||
property color m3onPrimaryContainer: "#ffd9e3"
|
||||
property color m3inversePrimary: "#8b4a62"
|
||||
property color m3secondary: "#e2bdc7"
|
||||
property color m3onSecondary: "#422932"
|
||||
property color m3secondaryContainer: "#5a3f48"
|
||||
property color m3onSecondaryContainer: "#ffd9e3"
|
||||
property color m3tertiary: "#f0bc95"
|
||||
property color m3onTertiary: "#48290c"
|
||||
property color m3tertiaryContainer: "#b58763"
|
||||
property color m3onTertiaryContainer: "#000000"
|
||||
property color m3error: "#ffb4ab"
|
||||
property color m3onError: "#690005"
|
||||
property color m3errorContainer: "#93000a"
|
||||
property color m3onErrorContainer: "#ffdad6"
|
||||
property color m3success: "#B5CCBA"
|
||||
property color m3onSuccess: "#213528"
|
||||
property color m3successContainer: "#374B3E"
|
||||
property color m3onSuccessContainer: "#D1E9D6"
|
||||
property color m3primaryFixed: "#ffd9e3"
|
||||
property color m3primaryFixedDim: "#ffb0ca"
|
||||
property color m3onPrimaryFixed: "#39071f"
|
||||
property color m3onPrimaryFixedVariant: "#6f334a"
|
||||
property color m3secondaryFixed: "#ffd9e3"
|
||||
property color m3secondaryFixedDim: "#e2bdc7"
|
||||
property color m3onSecondaryFixed: "#2b151d"
|
||||
property color m3onSecondaryFixedVariant: "#5a3f48"
|
||||
property color m3tertiaryFixed: "#ffdcc3"
|
||||
property color m3tertiaryFixedDim: "#f0bc95"
|
||||
property color m3onTertiaryFixed: "#2f1500"
|
||||
property color m3onTertiaryFixedVariant: "#623f21"
|
||||
}
|
||||
source: WallpaperPath.currentWallpaperPath
|
||||
}
|
||||
|
||||
component M3MaccchiatoPalette: QtObject {
|
||||
property color m3primary_paletteKeyColor: "#6a73ac"
|
||||
property color m3secondary_paletteKeyColor: "#72758e"
|
||||
property color m3tertiary_paletteKeyColor: "#9b6592"
|
||||
property color m3background: "#131317"
|
||||
property color m3error: "#ffb4ab"
|
||||
property color m3errorContainer: "#93000a"
|
||||
property color m3inverseOnSurface: "#303034"
|
||||
property color m3inversePrimary: "#525b92"
|
||||
property color m3inverseSurface: "#e4e1e7"
|
||||
property color m3neutral_paletteKeyColor: "#77767b"
|
||||
property color m3neutral_variant_paletteKeyColor: "#767680"
|
||||
property color m3background: "#131317"
|
||||
property color m3onBackground: "#e4e1e7"
|
||||
property color m3onError: "#690005"
|
||||
property color m3onErrorContainer: "#ffdad6"
|
||||
property color m3onPrimary: "#232c60"
|
||||
property color m3onPrimaryContainer: "#ffffff"
|
||||
property color m3onPrimaryFixed: "#0b154b"
|
||||
property color m3onPrimaryFixedVariant: "#3a4378"
|
||||
property color m3onSecondary: "#2c2f44"
|
||||
property color m3onSecondaryContainer: "#b1b3ce"
|
||||
property color m3onSecondaryFixed: "#171a2e"
|
||||
property color m3onSecondaryFixedVariant: "#42455c"
|
||||
property color m3onSuccess: "#213528"
|
||||
property color m3onSuccessContainer: "#D1E9D6"
|
||||
property color m3onSurface: "#e4e1e7"
|
||||
property color m3onSurfaceVariant: "#c6c5d1"
|
||||
property color m3onTertiary: "#4c1f48"
|
||||
property color m3onTertiaryContainer: "#000000"
|
||||
property color m3onTertiaryFixed: "#340831"
|
||||
property color m3onTertiaryFixedVariant: "#66365f"
|
||||
property color m3outline: "#90909a"
|
||||
property color m3outlineVariant: "#46464f"
|
||||
property color m3primary: "#bac3ff"
|
||||
property color m3primaryContainer: "#6a73ac"
|
||||
property color m3primaryFixed: "#dee0ff"
|
||||
property color m3primaryFixedDim: "#bac3ff"
|
||||
property color m3primary_paletteKeyColor: "#6a73ac"
|
||||
property color m3scrim: "#000000"
|
||||
property color m3secondary: "#c3c5e0"
|
||||
property color m3secondaryContainer: "#42455c"
|
||||
property color m3secondaryFixed: "#dfe1fd"
|
||||
property color m3secondaryFixedDim: "#c3c5e0"
|
||||
property color m3secondary_paletteKeyColor: "#72758e"
|
||||
property color m3shadow: "#000000"
|
||||
property color m3success: "#B5CCBA"
|
||||
property color m3successContainer: "#374B3E"
|
||||
property color m3surface: "#131317"
|
||||
property color m3surfaceDim: "#131317"
|
||||
property color m3surfaceBright: "#39393d"
|
||||
property color m3surfaceContainerLowest: "#0e0e12"
|
||||
property color m3surfaceContainerLow: "#1b1b1f"
|
||||
property color m3surfaceContainer: "#1f1f23"
|
||||
property color m3surfaceContainerHigh: "#2a2a2e"
|
||||
property color m3surfaceContainerHighest: "#353438"
|
||||
property color m3onSurface: "#e4e1e7"
|
||||
property color m3surfaceVariant: "#46464f"
|
||||
property color m3onSurfaceVariant: "#c6c5d1"
|
||||
property color m3inverseSurface: "#e4e1e7"
|
||||
property color m3inverseOnSurface: "#303034"
|
||||
property color m3outline: "#90909a"
|
||||
property color m3outlineVariant: "#46464f"
|
||||
property color m3shadow: "#000000"
|
||||
property color m3scrim: "#000000"
|
||||
property color m3surfaceContainerLow: "#1b1b1f"
|
||||
property color m3surfaceContainerLowest: "#0e0e12"
|
||||
property color m3surfaceDim: "#131317"
|
||||
property color m3surfaceTint: "#bac3ff"
|
||||
property color m3primary: "#bac3ff"
|
||||
property color m3onPrimary: "#232c60"
|
||||
property color m3primaryContainer: "#6a73ac"
|
||||
property color m3onPrimaryContainer: "#ffffff"
|
||||
property color m3inversePrimary: "#525b92"
|
||||
property color m3secondary: "#c3c5e0"
|
||||
property color m3onSecondary: "#2c2f44"
|
||||
property color m3secondaryContainer: "#42455c"
|
||||
property color m3onSecondaryContainer: "#b1b3ce"
|
||||
property color m3surfaceVariant: "#46464f"
|
||||
property color m3tertiary: "#f1b3e5"
|
||||
property color m3onTertiary: "#4c1f48"
|
||||
property color m3tertiaryContainer: "#b77ead"
|
||||
property color m3onTertiaryContainer: "#000000"
|
||||
property color m3error: "#ffb4ab"
|
||||
property color m3onError: "#690005"
|
||||
property color m3errorContainer: "#93000a"
|
||||
property color m3onErrorContainer: "#ffdad6"
|
||||
property color m3primaryFixed: "#dee0ff"
|
||||
property color m3primaryFixedDim: "#bac3ff"
|
||||
property color m3onPrimaryFixed: "#0b154b"
|
||||
property color m3onPrimaryFixedVariant: "#3a4378"
|
||||
property color m3secondaryFixed: "#dfe1fd"
|
||||
property color m3secondaryFixedDim: "#c3c5e0"
|
||||
property color m3onSecondaryFixed: "#171a2e"
|
||||
property color m3onSecondaryFixedVariant: "#42455c"
|
||||
property color m3tertiaryFixed: "#ffd7f4"
|
||||
property color m3tertiaryFixedDim: "#f1b3e5"
|
||||
property color m3onTertiaryFixed: "#340831"
|
||||
property color m3onTertiaryFixedVariant: "#66365f"
|
||||
property color m3success: "#B5CCBA"
|
||||
property color m3tertiary_paletteKeyColor: "#9b6592"
|
||||
}
|
||||
component M3Palette: QtObject {
|
||||
property color m3background: "#191114"
|
||||
property color m3error: "#ffb4ab"
|
||||
property color m3errorContainer: "#93000a"
|
||||
property color m3inverseOnSurface: "#372e30"
|
||||
property color m3inversePrimary: "#8b4a62"
|
||||
property color m3inverseSurface: "#efdfe2"
|
||||
property color m3neutral_paletteKeyColor: "#807477"
|
||||
property color m3neutral_variant_paletteKeyColor: "#837377"
|
||||
property color m3onBackground: "#efdfe2"
|
||||
property color m3onError: "#690005"
|
||||
property color m3onErrorContainer: "#ffdad6"
|
||||
property color m3onPrimary: "#541d34"
|
||||
property color m3onPrimaryContainer: "#ffd9e3"
|
||||
property color m3onPrimaryFixed: "#39071f"
|
||||
property color m3onPrimaryFixedVariant: "#6f334a"
|
||||
property color m3onSecondary: "#422932"
|
||||
property color m3onSecondaryContainer: "#ffd9e3"
|
||||
property color m3onSecondaryFixed: "#2b151d"
|
||||
property color m3onSecondaryFixedVariant: "#5a3f48"
|
||||
property color m3onSuccess: "#213528"
|
||||
property color m3successContainer: "#374B3E"
|
||||
property color m3onSuccessContainer: "#D1E9D6"
|
||||
property color m3onSurface: "#efdfe2"
|
||||
property color m3onSurfaceVariant: "#d5c2c6"
|
||||
property color m3onTertiary: "#48290c"
|
||||
property color m3onTertiaryContainer: "#000000"
|
||||
property color m3onTertiaryFixed: "#2f1500"
|
||||
property color m3onTertiaryFixedVariant: "#623f21"
|
||||
property color m3outline: "#9e8c91"
|
||||
property color m3outlineVariant: "#514347"
|
||||
property color m3primary: "#ffb0ca"
|
||||
property color m3primaryContainer: "#6f334a"
|
||||
property color m3primaryFixed: "#ffd9e3"
|
||||
property color m3primaryFixedDim: "#ffb0ca"
|
||||
property color m3primary_paletteKeyColor: "#a8627b"
|
||||
property color m3scrim: "#000000"
|
||||
property color m3secondary: "#e2bdc7"
|
||||
property color m3secondaryContainer: "#5a3f48"
|
||||
property color m3secondaryFixed: "#ffd9e3"
|
||||
property color m3secondaryFixedDim: "#e2bdc7"
|
||||
property color m3secondary_paletteKeyColor: "#8e6f78"
|
||||
property color m3shadow: "#000000"
|
||||
property color m3success: "#B5CCBA"
|
||||
property color m3successContainer: "#374B3E"
|
||||
property color m3surface: "#191114"
|
||||
property color m3surfaceBright: "#403739"
|
||||
property color m3surfaceContainer: "#261d20"
|
||||
property color m3surfaceContainerHigh: "#31282a"
|
||||
property color m3surfaceContainerHighest: "#3c3235"
|
||||
property color m3surfaceContainerLow: "#22191c"
|
||||
property color m3surfaceContainerLowest: "#130c0e"
|
||||
property color m3surfaceDim: "#191114"
|
||||
property color m3surfaceTint: "#ffb0ca"
|
||||
property color m3surfaceVariant: "#514347"
|
||||
property color m3tertiary: "#f0bc95"
|
||||
property color m3tertiaryContainer: "#b58763"
|
||||
property color m3tertiaryFixed: "#ffdcc3"
|
||||
property color m3tertiaryFixedDim: "#f0bc95"
|
||||
property color m3tertiary_paletteKeyColor: "#986e4c"
|
||||
}
|
||||
component M3TPalette: QtObject {
|
||||
readonly property color m3background: root.layer(root.palette.m3background, 0)
|
||||
readonly property color m3error: root.layer(root.palette.m3error)
|
||||
readonly property color m3errorContainer: root.layer(root.palette.m3errorContainer)
|
||||
readonly property color m3inverseOnSurface: root.layer(root.palette.m3inverseOnSurface)
|
||||
readonly property color m3inversePrimary: root.layer(root.palette.m3inversePrimary)
|
||||
readonly property color m3inverseSurface: root.layer(root.palette.m3inverseSurface, 0)
|
||||
readonly property color m3neutral_paletteKeyColor: root.layer(root.palette.m3neutral_paletteKeyColor)
|
||||
readonly property color m3neutral_variant_paletteKeyColor: root.layer(root.palette.m3neutral_variant_paletteKeyColor)
|
||||
readonly property color m3onBackground: root.layer(root.palette.m3onBackground)
|
||||
readonly property color m3onError: root.layer(root.palette.m3onError)
|
||||
readonly property color m3onErrorContainer: root.layer(root.palette.m3onErrorContainer)
|
||||
readonly property color m3onPrimary: root.layer(root.palette.m3onPrimary)
|
||||
readonly property color m3onPrimaryContainer: root.layer(root.palette.m3onPrimaryContainer)
|
||||
readonly property color m3onPrimaryFixed: root.layer(root.palette.m3onPrimaryFixed)
|
||||
readonly property color m3onPrimaryFixedVariant: root.layer(root.palette.m3onPrimaryFixedVariant)
|
||||
readonly property color m3onSecondary: root.layer(root.palette.m3onSecondary)
|
||||
readonly property color m3onSecondaryContainer: root.layer(root.palette.m3onSecondaryContainer)
|
||||
readonly property color m3onSecondaryFixed: root.layer(root.palette.m3onSecondaryFixed)
|
||||
readonly property color m3onSecondaryFixedVariant: root.layer(root.palette.m3onSecondaryFixedVariant)
|
||||
readonly property color m3onSuccess: root.layer(root.palette.m3onSuccess)
|
||||
readonly property color m3onSuccessContainer: root.layer(root.palette.m3onSuccessContainer)
|
||||
readonly property color m3onSurface: root.layer(root.palette.m3onSurface)
|
||||
readonly property color m3onSurfaceVariant: root.layer(root.palette.m3onSurfaceVariant)
|
||||
readonly property color m3onTertiary: root.layer(root.palette.m3onTertiary)
|
||||
readonly property color m3onTertiaryContainer: root.layer(root.palette.m3onTertiaryContainer)
|
||||
readonly property color m3onTertiaryFixed: root.layer(root.palette.m3onTertiaryFixed)
|
||||
readonly property color m3onTertiaryFixedVariant: root.layer(root.palette.m3onTertiaryFixedVariant)
|
||||
readonly property color m3outline: root.layer(root.palette.m3outline)
|
||||
readonly property color m3outlineVariant: root.layer(root.palette.m3outlineVariant)
|
||||
readonly property color m3primary: root.layer(root.palette.m3primary)
|
||||
readonly property color m3primaryContainer: root.layer(root.palette.m3primaryContainer)
|
||||
readonly property color m3primaryFixed: root.layer(root.palette.m3primaryFixed)
|
||||
readonly property color m3primaryFixedDim: root.layer(root.palette.m3primaryFixedDim)
|
||||
readonly property color m3primary_paletteKeyColor: root.layer(root.palette.m3primary_paletteKeyColor)
|
||||
readonly property color m3scrim: root.layer(root.palette.m3scrim)
|
||||
readonly property color m3secondary: root.layer(root.palette.m3secondary)
|
||||
readonly property color m3secondaryContainer: root.layer(root.palette.m3secondaryContainer)
|
||||
readonly property color m3secondaryFixed: root.layer(root.palette.m3secondaryFixed)
|
||||
readonly property color m3secondaryFixedDim: root.layer(root.palette.m3secondaryFixedDim)
|
||||
readonly property color m3secondary_paletteKeyColor: root.layer(root.palette.m3secondary_paletteKeyColor)
|
||||
readonly property color m3shadow: root.layer(root.palette.m3shadow)
|
||||
readonly property color m3success: root.layer(root.palette.m3success)
|
||||
readonly property color m3successContainer: root.layer(root.palette.m3successContainer)
|
||||
readonly property color m3surface: root.layer(root.palette.m3surface, 0)
|
||||
readonly property color m3surfaceBright: root.layer(root.palette.m3surfaceBright, 0)
|
||||
readonly property color m3surfaceContainer: root.layer(root.palette.m3surfaceContainer)
|
||||
readonly property color m3surfaceContainerHigh: root.layer(root.palette.m3surfaceContainerHigh)
|
||||
readonly property color m3surfaceContainerHighest: root.layer(root.palette.m3surfaceContainerHighest)
|
||||
readonly property color m3surfaceContainerLow: root.layer(root.palette.m3surfaceContainerLow)
|
||||
readonly property color m3surfaceContainerLowest: root.layer(root.palette.m3surfaceContainerLowest)
|
||||
readonly property color m3surfaceDim: root.layer(root.palette.m3surfaceDim, 0)
|
||||
readonly property color m3surfaceTint: root.layer(root.palette.m3surfaceTint)
|
||||
readonly property color m3surfaceVariant: root.layer(root.palette.m3surfaceVariant, 0)
|
||||
readonly property color m3tertiary: root.layer(root.palette.m3tertiary)
|
||||
readonly property color m3tertiaryContainer: root.layer(root.palette.m3tertiaryContainer)
|
||||
readonly property color m3tertiaryFixed: root.layer(root.palette.m3tertiaryFixed)
|
||||
readonly property color m3tertiaryFixedDim: root.layer(root.palette.m3tertiaryFixedDim)
|
||||
readonly property color m3tertiary_paletteKeyColor: root.layer(root.palette.m3tertiary_paletteKeyColor)
|
||||
}
|
||||
component Transparency: QtObject {
|
||||
readonly property real base: Appearance.transparency.base - (root.light ? 0.1 : 0)
|
||||
readonly property bool enabled: Appearance.transparency.enabled
|
||||
readonly property real layers: Appearance.transparency.layers
|
||||
}
|
||||
}
|
||||
|
||||
+19
-18
@@ -2,28 +2,29 @@ import Quickshell.Io
|
||||
import Quickshell
|
||||
|
||||
JsonObject {
|
||||
property Apps apps: Apps {
|
||||
}
|
||||
property Color color: Color {
|
||||
}
|
||||
property Idle idle: Idle {
|
||||
}
|
||||
property string logo: ""
|
||||
property string wallpaperPath: Quickshell.env("HOME") + "/Pictures/Wallpapers"
|
||||
property Color color: Color {}
|
||||
property Apps apps: Apps {}
|
||||
property Idle idle: Idle {}
|
||||
|
||||
component Color: JsonObject {
|
||||
property bool wallust: false
|
||||
property bool schemeGeneration: true
|
||||
property string mode: "dark"
|
||||
property int scheduleDarkStart: 0
|
||||
property int scheduleDarkEnd: 0
|
||||
property bool neovimColors: false
|
||||
component Apps: JsonObject {
|
||||
property list<string> audio: ["pavucontrol"]
|
||||
property list<string> explorer: ["dolphin"]
|
||||
property list<string> playback: ["mpv"]
|
||||
property list<string> terminal: ["kitty"]
|
||||
}
|
||||
component Color: JsonObject {
|
||||
property string mode: "dark"
|
||||
property bool neovimColors: false
|
||||
property int scheduleDarkEnd: 0
|
||||
property int scheduleDarkStart: 0
|
||||
property bool schemeGeneration: true
|
||||
property bool wallust: false
|
||||
}
|
||||
|
||||
component Apps: JsonObject {
|
||||
property list<string> terminal: ["kitty"]
|
||||
property list<string> audio: ["pavucontrol"]
|
||||
property list<string> playback: ["mpv"]
|
||||
property list<string> explorer: ["dolphin"]
|
||||
}
|
||||
|
||||
component Idle: JsonObject {
|
||||
property list<var> timeouts: [
|
||||
{
|
||||
|
||||
+69
-69
@@ -1,28 +1,7 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property int maxAppsShown: 10
|
||||
property int maxWallpapers: 7
|
||||
property string actionPrefix: ">"
|
||||
property string specialPrefix: "@"
|
||||
property Sizes sizes: Sizes {}
|
||||
property UseFuzzy useFuzzy: UseFuzzy {}
|
||||
|
||||
component UseFuzzy: JsonObject {
|
||||
property bool apps: false
|
||||
property bool actions: false
|
||||
property bool schemes: false
|
||||
property bool variants: false
|
||||
property bool wallpapers: false
|
||||
}
|
||||
|
||||
component Sizes: JsonObject {
|
||||
property int itemWidth: 600
|
||||
property int itemHeight: 50
|
||||
property int wallpaperWidth: 280
|
||||
property int wallpaperHeight: 200
|
||||
}
|
||||
|
||||
property list<var> actions: [
|
||||
{
|
||||
name: "Calculator",
|
||||
@@ -32,53 +11,74 @@ JsonObject {
|
||||
enabled: true,
|
||||
dangerous: false
|
||||
},
|
||||
{
|
||||
name: "Wallpaper",
|
||||
icon: "image",
|
||||
description: "Change the current wallpaper",
|
||||
command: ["autocomplete", "wallpaper"],
|
||||
enabled: true,
|
||||
dangerous: false
|
||||
},
|
||||
{
|
||||
name: "Shutdown",
|
||||
icon: "power_settings_new",
|
||||
description: "Shutdown the system",
|
||||
command: ["systemctl", "poweroff"],
|
||||
enabled: true,
|
||||
dangerous: true
|
||||
},
|
||||
{
|
||||
name: "Reboot",
|
||||
icon: "cached",
|
||||
description: "Reboot the system",
|
||||
command: ["systemctl", "reboot"],
|
||||
enabled: true,
|
||||
dangerous: true
|
||||
},
|
||||
{
|
||||
name: "Logout",
|
||||
icon: "exit_to_app",
|
||||
description: "Log out of the current session",
|
||||
command: ["loginctl", "terminate-user", ""],
|
||||
enabled: true,
|
||||
dangerous: true
|
||||
},
|
||||
{
|
||||
name: "Lock",
|
||||
icon: "lock",
|
||||
description: "Lock the current session",
|
||||
command: ["loginctl", "lock-session"],
|
||||
enabled: true,
|
||||
dangerous: false
|
||||
},
|
||||
{
|
||||
name: "Sleep",
|
||||
icon: "bedtime",
|
||||
description: "Suspend then hibernate",
|
||||
command: ["systemctl", "suspend-then-hibernate"],
|
||||
enabled: true,
|
||||
dangerous: false
|
||||
},
|
||||
{
|
||||
name: "Wallpaper",
|
||||
icon: "image",
|
||||
description: "Change the current wallpaper",
|
||||
command: ["autocomplete", "wallpaper"],
|
||||
enabled: true,
|
||||
dangerous: false
|
||||
},
|
||||
{
|
||||
name: "Shutdown",
|
||||
icon: "power_settings_new",
|
||||
description: "Shutdown the system",
|
||||
command: ["systemctl", "poweroff"],
|
||||
enabled: true,
|
||||
dangerous: true
|
||||
},
|
||||
{
|
||||
name: "Reboot",
|
||||
icon: "cached",
|
||||
description: "Reboot the system",
|
||||
command: ["systemctl", "reboot"],
|
||||
enabled: true,
|
||||
dangerous: true
|
||||
},
|
||||
{
|
||||
name: "Logout",
|
||||
icon: "exit_to_app",
|
||||
description: "Log out of the current session",
|
||||
command: ["loginctl", "terminate-user", ""],
|
||||
enabled: true,
|
||||
dangerous: true
|
||||
},
|
||||
{
|
||||
name: "Lock",
|
||||
icon: "lock",
|
||||
description: "Lock the current session",
|
||||
command: ["loginctl", "lock-session"],
|
||||
enabled: true,
|
||||
dangerous: false
|
||||
},
|
||||
{
|
||||
name: "Sleep",
|
||||
icon: "bedtime",
|
||||
description: "Suspend then hibernate",
|
||||
command: ["systemctl", "suspend-then-hibernate"],
|
||||
enabled: true,
|
||||
dangerous: false
|
||||
},
|
||||
]
|
||||
property int maxAppsShown: 10
|
||||
property int maxWallpapers: 7
|
||||
property Sizes sizes: Sizes {
|
||||
}
|
||||
property string specialPrefix: "@"
|
||||
property UseFuzzy useFuzzy: UseFuzzy {
|
||||
}
|
||||
|
||||
component Sizes: JsonObject {
|
||||
property int itemHeight: 50
|
||||
property int itemWidth: 600
|
||||
property int wallpaperHeight: 200
|
||||
property int wallpaperWidth: 280
|
||||
}
|
||||
component UseFuzzy: JsonObject {
|
||||
property bool actions: false
|
||||
property bool apps: false
|
||||
property bool schemes: false
|
||||
property bool variants: false
|
||||
property bool wallpapers: false
|
||||
}
|
||||
}
|
||||
|
||||
+10
-9
@@ -1,15 +1,16 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property bool recolorLogo: false
|
||||
property bool enableFprint: true
|
||||
property int maxFprintTries: 3
|
||||
property Sizes sizes: Sizes {}
|
||||
property int blurAmount: 40
|
||||
property bool enableFprint: true
|
||||
property int maxFprintTries: 3
|
||||
property bool recolorLogo: false
|
||||
property Sizes sizes: Sizes {
|
||||
}
|
||||
|
||||
component Sizes: JsonObject {
|
||||
property real heightMult: 0.7
|
||||
property real ratio: 16 / 9
|
||||
property int centerWidth: 600
|
||||
}
|
||||
component Sizes: JsonObject {
|
||||
property int centerWidth: 600
|
||||
property real heightMult: 0.7
|
||||
property real ratio: 16 / 9
|
||||
}
|
||||
}
|
||||
|
||||
+20
-21
@@ -2,26 +2,25 @@ pragma Singleton
|
||||
import Quickshell
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
id: root
|
||||
|
||||
property real scale: Appearance.anim.durations.scale
|
||||
|
||||
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 int emphasizedAccelTime: 200 * scale
|
||||
readonly property list<real> emphasizedDecel: [0.05, 0.7, 0.1, 1, 1, 1]
|
||||
readonly property int emphasizedDecelTime: 400 * scale
|
||||
readonly property int emphasizedTime: 500 * scale
|
||||
readonly property list<real> expressiveDefaultSpatial: [0.38, 1.21, 0.22, 1.00, 1, 1]
|
||||
readonly property int expressiveDefaultSpatialTime: 500 * scale
|
||||
readonly property list<real> expressiveEffects: [0.34, 0.80, 0.34, 1.00, 1, 1]
|
||||
readonly property int expressiveEffectsTime: 200 * scale
|
||||
readonly property list<real> expressiveFastSpatial: [0.42, 1.67, 0.21, 0.90, 1, 1]
|
||||
readonly property int expressiveFastSpatialTime: 350 * scale
|
||||
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 int standardAccelTime: 200 * scale
|
||||
readonly property list<real> standardDecel: [0, 0, 0, 1, 1, 1]
|
||||
readonly property int standardDecelTime: 250 * scale
|
||||
readonly property int standardTime: 300 * scale
|
||||
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 int emphasizedAccelTime: 200 * scale
|
||||
readonly property list<real> emphasizedDecel: [0.05, 0.7, 0.1, 1, 1, 1]
|
||||
readonly property int emphasizedDecelTime: 400 * scale
|
||||
readonly property int emphasizedTime: 500 * scale
|
||||
readonly property list<real> expressiveDefaultSpatial: [0.38, 1.21, 0.22, 1.00, 1, 1]
|
||||
readonly property int expressiveDefaultSpatialTime: 500 * scale
|
||||
readonly property list<real> expressiveEffects: [0.34, 0.80, 0.34, 1.00, 1, 1]
|
||||
readonly property int expressiveEffectsTime: 200 * scale
|
||||
readonly property list<real> expressiveFastSpatial: [0.42, 1.67, 0.21, 0.90, 1, 1]
|
||||
readonly property int expressiveFastSpatialTime: 350 * scale
|
||||
property real scale: Appearance.anim.durations.scale
|
||||
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 int standardAccelTime: 200 * scale
|
||||
readonly property list<real> standardDecel: [0, 0, 0, 1, 1, 1]
|
||||
readonly property int standardDecelTime: 250 * scale
|
||||
readonly property int standardTime: 300 * scale
|
||||
}
|
||||
|
||||
+14
-13
@@ -1,18 +1,19 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property bool expire: true
|
||||
property int defaultExpireTimeout: 5000
|
||||
property real clearThreshold: 0.3
|
||||
property int expandThreshold: 20
|
||||
property bool actionOnClick: false
|
||||
property int groupPreviewNum: 3
|
||||
property bool openExpanded: false
|
||||
property Sizes sizes: Sizes {}
|
||||
property bool actionOnClick: false
|
||||
property real clearThreshold: 0.3
|
||||
property int defaultExpireTimeout: 5000
|
||||
property int expandThreshold: 20
|
||||
property bool expire: true
|
||||
property int groupPreviewNum: 3
|
||||
property bool openExpanded: false
|
||||
property Sizes sizes: Sizes {
|
||||
}
|
||||
|
||||
component Sizes: JsonObject {
|
||||
property int width: 400
|
||||
property int image: 41
|
||||
property int badge: 20
|
||||
}
|
||||
component Sizes: JsonObject {
|
||||
property int badge: 20
|
||||
property int image: 41
|
||||
property int width: 400
|
||||
}
|
||||
}
|
||||
|
||||
+10
-9
@@ -1,15 +1,16 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property bool enabled: true
|
||||
property int hideDelay: 3000
|
||||
property bool enableBrightness: true
|
||||
property bool enableMicrophone: true
|
||||
property bool allMonBrightness: false
|
||||
property Sizes sizes: Sizes {}
|
||||
property bool enableBrightness: true
|
||||
property bool enableMicrophone: true
|
||||
property bool enabled: true
|
||||
property int hideDelay: 3000
|
||||
property Sizes sizes: Sizes {
|
||||
}
|
||||
|
||||
component Sizes: JsonObject {
|
||||
property int sliderWidth: 30
|
||||
property int sliderHeight: 150
|
||||
}
|
||||
component Sizes: JsonObject {
|
||||
property int sliderHeight: 150
|
||||
property int sliderWidth: 30
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property int rows: 2
|
||||
property int columns: 5
|
||||
property real scale: 0.16
|
||||
property bool enable: false
|
||||
property int rows: 2
|
||||
property real scale: 0.16
|
||||
}
|
||||
|
||||
+14
-14
@@ -2,18 +2,18 @@ import Quickshell.Io
|
||||
import QtQuick
|
||||
|
||||
JsonObject {
|
||||
property string weatherLocation: ""
|
||||
property bool useFahrenheit: false
|
||||
property bool useTwelveHourClock: Qt.locale().timeFormat(Locale.ShortFormat).toLowerCase().includes("a")
|
||||
property string gpuType: ""
|
||||
property real audioIncrement: 0.1
|
||||
property real brightnessIncrement: 0.1
|
||||
property real maxVolume: 1.0
|
||||
property string defaultPlayer: "Spotify"
|
||||
property list<var> playerAliases: [
|
||||
{
|
||||
"from": "com.github.th_ch.youtube_music",
|
||||
"to": "YT Music"
|
||||
}
|
||||
]
|
||||
property real audioIncrement: 0.1
|
||||
property real brightnessIncrement: 0.1
|
||||
property string defaultPlayer: "Spotify"
|
||||
property string gpuType: ""
|
||||
property real maxVolume: 1.0
|
||||
property list<var> playerAliases: [
|
||||
{
|
||||
"from": "com.github.th_ch.youtube_music",
|
||||
"to": "YT Music"
|
||||
}
|
||||
]
|
||||
property bool useFahrenheit: false
|
||||
property bool useTwelveHourClock: Qt.locale().timeFormat(Locale.ShortFormat).toLowerCase().includes("a")
|
||||
property string weatherLocation: ""
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property bool enabled: true
|
||||
property Sizes sizes: Sizes {}
|
||||
property bool enabled: true
|
||||
property Sizes sizes: Sizes {
|
||||
}
|
||||
|
||||
component Sizes: JsonObject {
|
||||
property int width: 430
|
||||
}
|
||||
component Sizes: JsonObject {
|
||||
property int width: 430
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property bool enabled: false
|
||||
property real base: 0.85
|
||||
property real layers: 0.4
|
||||
property real base: 0.85
|
||||
property bool enabled: false
|
||||
property real layers: 0.4
|
||||
}
|
||||
|
||||
+30
-30
@@ -1,35 +1,35 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property bool enabled: true
|
||||
property int maxToasts: 4
|
||||
property bool enabled: true
|
||||
property int maxToasts: 4
|
||||
property Sizes sizes: Sizes {
|
||||
}
|
||||
property Toasts toasts: Toasts {
|
||||
}
|
||||
property Vpn vpn: Vpn {
|
||||
}
|
||||
|
||||
property Sizes sizes: Sizes {}
|
||||
property Toasts toasts: Toasts {}
|
||||
property Vpn vpn: Vpn {}
|
||||
|
||||
component Sizes: JsonObject {
|
||||
property int width: 430
|
||||
property int toastWidth: 430
|
||||
}
|
||||
|
||||
component Toasts: JsonObject {
|
||||
property bool configLoaded: true
|
||||
property bool chargingChanged: true
|
||||
property bool gameModeChanged: true
|
||||
property bool dndChanged: true
|
||||
property bool audioOutputChanged: true
|
||||
property bool audioInputChanged: true
|
||||
property bool capsLockChanged: true
|
||||
property bool numLockChanged: true
|
||||
property bool kbLayoutChanged: true
|
||||
property bool kbLimit: true
|
||||
property bool vpnChanged: true
|
||||
property bool nowPlaying: false
|
||||
}
|
||||
|
||||
component Vpn: JsonObject {
|
||||
property bool enabled: false
|
||||
property list<var> provider: ["netbird"]
|
||||
}
|
||||
component Sizes: JsonObject {
|
||||
property int toastWidth: 430
|
||||
property int width: 430
|
||||
}
|
||||
component Toasts: JsonObject {
|
||||
property bool audioInputChanged: true
|
||||
property bool audioOutputChanged: true
|
||||
property bool capsLockChanged: true
|
||||
property bool chargingChanged: true
|
||||
property bool configLoaded: true
|
||||
property bool dndChanged: true
|
||||
property bool gameModeChanged: true
|
||||
property bool kbLayoutChanged: true
|
||||
property bool kbLimit: true
|
||||
property bool nowPlaying: false
|
||||
property bool numLockChanged: true
|
||||
property bool vpnChanged: true
|
||||
}
|
||||
component Vpn: JsonObject {
|
||||
property bool enabled: false
|
||||
property list<var> provider: ["netbird"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property string textColor: "black"
|
||||
property string inactiveTextColor: "white"
|
||||
property string inactiveTextColor: "white"
|
||||
property string textColor: "black"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user