Skip to content

Commit

Permalink
Merge pull request #1899 from GertjanVDBVK/uitheme-syntaxfix
Browse files Browse the repository at this point in the history
fixed other syntax errors for set_current_theme
  • Loading branch information
jmcouffin committed Aug 21, 2023
2 parents 9f30f42 + 8af5b6c commit a302020
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 a302020

Please sign in to comment.