177 lines
3.7 KiB
Python
177 lines
3.7 KiB
Python
# Parameters
|
|
font_family: str = "tabler-icons"
|
|
font_weight: str = "normal"
|
|
|
|
span: str = f"<span font-family='{font_family}' font-weight='{font_weight}'>"
|
|
|
|
# Panels
|
|
apps: str = ""
|
|
dashboard: str = ""
|
|
chat: str = ""
|
|
wallpapers: str = ""
|
|
windows: str = ""
|
|
|
|
# Bar
|
|
colorpicker: str = ""
|
|
media: str = ""
|
|
|
|
# Toolbox
|
|
|
|
toolbox: str = ""
|
|
ssfull: str = ""
|
|
ssregion: str = ""
|
|
sswindow: str = ""
|
|
screenshots: str = ""
|
|
screenrecord: str = ""
|
|
recordings: str = ""
|
|
ocr: str = "ﳃ"
|
|
gamemode: str = ""
|
|
gamemode_off: str = ""
|
|
close: str = ""
|
|
|
|
# Circles
|
|
temp: str = ""
|
|
disk: str = ""
|
|
battery: str = ""
|
|
memory: str = "流"
|
|
cpu: str = ""
|
|
gpu: str = ""
|
|
|
|
# AIchat
|
|
reload: str = ""
|
|
detach: str = ""
|
|
|
|
# Wallpapers
|
|
add: str = ""
|
|
sort: str = ""
|
|
circle: str = ""
|
|
|
|
# Chevrons
|
|
chevron_up: str = ""
|
|
chevron_down: str = ""
|
|
chevron_left: str = ""
|
|
chevron_right: str = ""
|
|
|
|
# Power
|
|
lock: str = ""
|
|
suspend: str = ""
|
|
logout: str = ""
|
|
reboot: str = ""
|
|
shutdown: str = ""
|
|
|
|
# Power Manager
|
|
power_saving: str = ""
|
|
power_balanced: str = "勺"
|
|
power_performance: str = ""
|
|
charging: str = ""
|
|
discharging: str = ""
|
|
alert: str = ""
|
|
bat_charging: str = ""
|
|
bat_discharging: str = ""
|
|
bat_low: str = "="
|
|
bat_full: str = ""
|
|
|
|
|
|
# Applets
|
|
wifi_0: str = ""
|
|
wifi_1: str = ""
|
|
wifi_2: str = ""
|
|
wifi_3: str = ""
|
|
world: str = ""
|
|
world_off: str = ""
|
|
bluetooth: str = ""
|
|
night: str = ""
|
|
coffee: str = ""
|
|
notifications: str = ""
|
|
|
|
wifi_off: str = ""
|
|
bluetooth_off: str = ""
|
|
night_off: str = ""
|
|
notifications_off: str = ""
|
|
|
|
notifications_clear: str = ""
|
|
download: str = ""
|
|
upload: str = ""
|
|
|
|
# Bluetooth
|
|
bluetooth_connected: str = ""
|
|
bluetooth_disconnected: str = ""
|
|
|
|
# Player
|
|
pause: str = ""
|
|
play: str = ""
|
|
stop: str = ""
|
|
skip_back: str = ""
|
|
skip_forward: str = ""
|
|
prev: str = ""
|
|
next: str = ""
|
|
shuffle: str = ""
|
|
repeat: str = ""
|
|
music: str = ""
|
|
rewind_backward_5: str = "謹"
|
|
rewind_forward_5: str = "難"
|
|
|
|
# Volume
|
|
vol_off: str = ""
|
|
vol_mute: str = ""
|
|
vol_medium: str = ""
|
|
vol_high: str = ""
|
|
|
|
mic: str = ""
|
|
mic_mute: str = ""
|
|
|
|
# Overview
|
|
circle_plus: str = ""
|
|
|
|
# Pins
|
|
paperclip: str = ""
|
|
|
|
# Clipboard Manager
|
|
clipboard: str = ""
|
|
clip_text: str = ""
|
|
|
|
# Confirm
|
|
accept: str = ""
|
|
cancel: str = ""
|
|
trash: str = ""
|
|
|
|
# Config
|
|
config: str = ""
|
|
|
|
# Icons
|
|
firefox: str = ""
|
|
chromium: str = ""
|
|
spotify: str = "ﺆ"
|
|
disc: str = "𐀾"
|
|
disc_off: str = ""
|
|
|
|
# Brightness
|
|
brightness_low: str = ""
|
|
brightness_medium: str = ""
|
|
brightness_high: str = ""
|
|
|
|
# Misc
|
|
dot: str = ""
|
|
palette: str = ""
|
|
cloud_off: str = ""
|
|
loader: str = ""
|
|
radar: str = ""
|
|
emoji: str = ""
|
|
keyboard: str = ""
|
|
terminal: str = ""
|
|
timer_off: str = ""
|
|
timer_on: str = ""
|
|
spy: str = ""
|
|
|
|
exceptions: list[str] = ["font_family", "font_weight", "span"]
|
|
|
|
|
|
def apply_span() -> None:
|
|
global_dict = globals()
|
|
for key in global_dict:
|
|
if key not in exceptions and not key.startswith("__"):
|
|
global_dict[key] = f"{span}{global_dict[key]}</span>"
|
|
|
|
|
|
apply_span()
|