fix(install): update catppuccin dependency
This commit is contained in:
@@ -1,16 +1,11 @@
|
||||
from catppuccin import Flavour
|
||||
from catppuccin import PALETTE
|
||||
import dataclasses
|
||||
|
||||
|
||||
def get_all_flavors():
|
||||
return [f.name for f in dataclasses.fields(PALETTE)]
|
||||
|
||||
ctp_colors = {
|
||||
"latte": Flavour.latte(),
|
||||
"mocha": Flavour.mocha(),
|
||||
"frappe": Flavour.frappe(),
|
||||
"macchiato": Flavour.macchiato()
|
||||
}
|
||||
|
||||
def get_all_accent():
|
||||
accent = {}
|
||||
for key, value in Flavour.latte().__dict__.items():
|
||||
if key not in ['white', 'black', 'text', 'subtext0', 'subtext1', 'overlay0', 'overlay1', 'overlay2', 'surface0', 'surface1', 'surface2', 'base', 'mantle', 'crust']:
|
||||
accent[key] = value
|
||||
|
||||
return accent
|
||||
exclude = ['white', 'black', 'text', 'subtext0', 'subtext1', 'overlay0', 'overlay1', 'overlay2', 'surface0', 'surface1', 'surface2', 'base', 'mantle', 'crust']
|
||||
return [f.name for f in dataclasses.fields(PALETTE.latte.colors) if f.name not in exclude]
|
||||
|
||||
Reference in New Issue
Block a user