mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-06 07:19:29 -05:00
feat: theme spicetify
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
[caelestia]
|
||||
text = $text ; Main text colour
|
||||
subtext = $subtext0 ; Subtext colour
|
||||
main = $base ; Panel backgrounds
|
||||
highlight = $primary ; Doesn't seem to do anything
|
||||
misc = $primary ; Doesn't seem to do anything
|
||||
notification = $overlay0 ; Notifications probably
|
||||
notification-error = $error ; Error notifications probably
|
||||
shadow = $mantle ; Shadow for covers, context menu, also affects playlist/artist banners
|
||||
card = $surface0 ; Context menu and tooltips
|
||||
player = $base ; Doesn't seem to do anything
|
||||
sidebar = $mantle ; Background
|
||||
main-elevated = $surface0 ; Higher layers than main, e.g. search bar
|
||||
selected-row = $text ; Selections, hover, other coloured text and slider background
|
||||
button = $primary ; Slider and text buttons
|
||||
button-active = $primary ; Background buttons
|
||||
button-disabled = $overlay0 ; Disabled buttons
|
||||
@@ -1,4 +1,3 @@
|
||||
import json
|
||||
import subprocess
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
@@ -91,7 +90,17 @@ def apply_discord(scss: str) -> None:
|
||||
try_write(config_dir / client / "themes/caelestia.theme.css", conf)
|
||||
|
||||
|
||||
def apply_spicetify(colours: dict[str, str]) -> None:
|
||||
template = (templates_dir / "spicetify.ini").read_text()
|
||||
|
||||
for name, colour in colours.items():
|
||||
template = template.replace(f"${name}", colour)
|
||||
|
||||
try_write(config_dir / "spicetify/Themes/caelestia/color.ini", template)
|
||||
|
||||
|
||||
def apply_colours(colours: dict[str, str]) -> None:
|
||||
apply_terms(gen_sequences(colours))
|
||||
apply_hypr(gen_conf(colours))
|
||||
apply_discord(gen_scss(colours))
|
||||
apply_spicetify(colours)
|
||||
|
||||
Reference in New Issue
Block a user