feat(theme): themes as files (theme crate: toml subset + ints, contrast check, wire); whimsy dark + light; display reads themes/, serves THEME/THEME_NAME, init SET_THEME -> THEME_CHANGED to all windows, bar themed; k-ui follows; settings appearance; init keeps choice in sealed users/<id>/settings/, reapplies at sign-in + display restart
This commit is contained in:
37
disk/themes/whimsy-dark.toml
Normal file
37
disk/themes/whimsy-dark.toml
Normal file
@@ -0,0 +1,37 @@
|
||||
# The default theme. Colours are #rrggbb; every pairing text is drawn in
|
||||
# is checked for contrast when the theme is loaded.
|
||||
|
||||
[meta]
|
||||
name = "Whimsy Dark"
|
||||
|
||||
[colour]
|
||||
background = "#0f0e17"
|
||||
surface = "#1a1a2e"
|
||||
surface_raised = "#2a2a44"
|
||||
accent = "#4fc3f7"
|
||||
on_accent = "#0f0e17"
|
||||
text_primary = "#e0e0e0"
|
||||
text_secondary = "#9e9eb8"
|
||||
destructive = "#ef5350"
|
||||
on_destructive = "#1a0a0a"
|
||||
focus = "#ffffff"
|
||||
|
||||
[wallpaper]
|
||||
orbs = ["#3a1c71", "#0f4c5c", "#5b1a4a"]
|
||||
|
||||
[shape]
|
||||
corner_radius = 16
|
||||
|
||||
[spacing]
|
||||
base = 4
|
||||
|
||||
[motion]
|
||||
duration_fast = 150 # ms; 0 turns motion off
|
||||
duration_normal = 280
|
||||
spring_stiffness = 300
|
||||
spring_damping = 30
|
||||
|
||||
[glass]
|
||||
blur_radius = 12
|
||||
panel_opacity = 72 # percent
|
||||
highlight = 18 # percent
|
||||
Reference in New Issue
Block a user