Very basic theming support

This commit is contained in:
quadbyte 2025-08-09 12:53:10 -04:00
parent b08944988d
commit 821b4e8cad
6 changed files with 309 additions and 58 deletions

View file

@ -1,45 +1,46 @@
pragma Singleton
import QtQuick
import Quickshell
import Quickshell.Io
Singleton {
id: root
id: root
/*
Preset sizes for font, radii, ?
/*
Preset sizes for font, radii, ?
*/
// Font
property real fontExtraLarge: 32
property real fontLarge: 16
property real fontMedium: 14
property real fontSmall: 12
// Font
property real fontExtraLarge: 32
property real fontLarge: 16
property real fontMedium: 14
property real fontSmall: 12
// Font weight
property int fontWeightRegular: 400
property int fontWeightMedium: 500
property int fontWeightBold: 700
// Font weight
property int fontWeightRegular: 400
property int fontWeightMedium: 500
property int fontWeightBold: 700
// Radii
property int radiusLarge: 20
property int radiusMedium: 16
property int radiusSmall: 12
// Radii
property int radiusLarge: 20
property int radiusMedium: 16
property int radiusSmall: 12
// Border
property int borderThin: 1
property int borderMedium: 2
property int borderThick: 3
// Border
property int borderThin: 1
property int borderMedium: 2
property int borderThick: 3
// Spacing
property int spacingExtraLarge: 20
property int spacingLarge: 16
property int spacingMedium: 12
property int spacingSmall: 8
// Animation duration (ms)
property int animationFast: 150
property int animationNormal: 300
property int animationSlow: 500
}
// Spacing
property int spacingExtraLarge: 20
property int spacingLarge: 16
property int spacingMedium: 12
property int spacingSmall: 8
// Animation duration (ms)
property int animationFast: 150
property int animationNormal: 300
property int animationSlow: 500
}