Skip to content

Commit

Permalink
installer: import custom.css before configuring windowcontrols layout (
Browse files Browse the repository at this point in the history
…Fixes #283)
  • Loading branch information
tkashkin committed Nov 10, 2024
1 parent 50c090f commit dbf0160
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,18 @@ def generate_libraryroot(target: Path, extras: list[Path], color_theme: str, win
content += "\n/* Window controls theme */\n"
content += format_import(STEAM_LOOPBACK_ADWAITA, f"windowcontrols/{windowcontrols_theme}.css")

if custom_css:
print(f"{TEXT_BLUE}{TEXT_ARROW} Applying custom css...{TEXT_RESET}")
content += "\n/* Custom CSS */\n"
content += format_import(STEAM_LOOPBACK_ADWAITA, f"custom/{CUSTOM_CSS}")

if windowcontrols_layout:
if ':' not in windowcontrols_layout:
windowcontrols_layout = ':' + windowcontrols_layout
print(f"{TEXT_BLUE}{TEXT_ARROW} Applying window controls layout {TEXT_BOLD}{windowcontrols_layout}{TEXT_RESET}{TEXT_BLUE}...{TEXT_RESET}")
content += f"\n/* Window controls layout - {windowcontrols_layout} */\n"
content += generate_windowcontrols(windowcontrols_layout)

if custom_css:
print(f"{TEXT_BLUE}{TEXT_ARROW} Applying custom css...{TEXT_RESET}")
content += "\n/* Custom CSS */\n"
content += format_import(STEAM_LOOPBACK_ADWAITA, f"custom/{CUSTOM_CSS}")

target.open('w').write(content)

# Color Themes
Expand Down

0 comments on commit dbf0160

Please sign in to comment.