Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogAi committed Dec 13, 2024
1 parent 574bd9d commit 6c09300
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions selfdrive/frogpilot/assets/theme_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,15 @@ def update_wheel_image(image, holiday_theme="stock", random_event=True):

class ThemeManager:
def __init__(self):
self.theme_assets = {}
self.theme_assets = {
"holiday_theme": "stock",
"color_scheme": "stock",
"distance_icons": "stock",
"icon_pack": "stock",
"sound_pack": "stock",
"turn_signal_pack": "stock",
"wheel_image": "stock"
}

@staticmethod
def calculate_thanksgiving(year):
Expand Down Expand Up @@ -393,9 +401,6 @@ def validate_themes(self, frogpilot_toggles):
}

for theme_param, (theme_component, theme_name) in asset_mappings.items():
if not theme_name or theme_name == "stock":
continue

if theme_component == "distance_icons":
theme_path = os.path.join(THEME_SAVE_PATH, theme_component, theme_name)
elif theme_component == "steering_wheels":
Expand All @@ -412,7 +417,6 @@ def validate_themes(self, frogpilot_toggles):
if theme_path is None or not os.path.exists(theme_path):
print(f"{theme_name} for {theme_component} not found. Downloading...")
self.download_theme(theme_component, theme_name, theme_param)
self.theme_assets = {}

def update_themes(self, frogpilot_toggles, boot_run=False):
repo_url = get_repository_url()
Expand Down

0 comments on commit 6c09300

Please sign in to comment.