Skip to content

Commit

Permalink
fixed other syntax errors for set_current_theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Gertjan Van den Broek committed Aug 21, 2023
1 parent f5a5097 commit 8af5b6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyrevitlib/pyrevit/revit/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ def set_current_theme(theme='Dark'):
Returns:
None
"""
if theme = 'Dark':
return UIThemeManager.CurrentTheme = UITheme.Dark
if theme == 'Dark':
UIThemeManager.CurrentTheme = UITheme.Dark
else:
return UIThemeManager.CurrentTheme = UITheme.Light
UIThemeManager.CurrentTheme = UITheme.Light


def resolve_icon_file(directory, icon_name):
Expand Down

0 comments on commit 8af5b6c

Please sign in to comment.