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
|
||||
34
disk/themes/whimsy-light.toml
Normal file
34
disk/themes/whimsy-light.toml
Normal file
@@ -0,0 +1,34 @@
|
||||
[meta]
|
||||
name = "Whimsy Light"
|
||||
|
||||
[colour]
|
||||
background = "#f3f2f8"
|
||||
surface = "#ffffff"
|
||||
surface_raised = "#e6e4f0"
|
||||
accent = "#0b6bcb"
|
||||
on_accent = "#ffffff"
|
||||
text_primary = "#1a1a2e"
|
||||
text_secondary = "#55556e"
|
||||
destructive = "#c62828"
|
||||
on_destructive = "#ffffff"
|
||||
focus = "#1a1a2e"
|
||||
|
||||
[wallpaper]
|
||||
orbs = ["#c9b8ff", "#a8e6ff", "#ffc6e8"]
|
||||
|
||||
[shape]
|
||||
corner_radius = 16
|
||||
|
||||
[spacing]
|
||||
base = 4
|
||||
|
||||
[motion]
|
||||
duration_fast = 150
|
||||
duration_normal = 280
|
||||
spring_stiffness = 300
|
||||
spring_damping = 30
|
||||
|
||||
[glass]
|
||||
blur_radius = 12
|
||||
panel_opacity = 64
|
||||
highlight = 40
|
||||
Reference in New Issue
Block a user