Skip to content

Commit

Permalink
Sync Theme with a Revit version
Browse files Browse the repository at this point in the history
  • Loading branch information
Nice3point committed Jan 28, 2025
1 parent 7a454c1 commit 31fc5fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/RevitLookup/Services/Settings/SettingsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ public void ResetGeneralSettings()
{
_generalSettings = new GeneralSettings
{
#if REVIT2024_OR_GREATER
Theme = ApplicationTheme.Auto,
#else
Theme = ApplicationTheme.Light,
#endif
Background = WindowBackdropType.None,
Transition = Transition.None,
IncludeStatic = true,
Expand Down
2 changes: 2 additions & 0 deletions source/RevitLookup/ViewModels/Settings/SettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ public SettingsViewModel(

public List<ApplicationTheme> Themes { get; } =
[
#if REVIT2024_OR_GREATER
ApplicationTheme.Auto,
#endif
ApplicationTheme.Light,
ApplicationTheme.Dark
// ApplicationTheme.HighContrast
Expand Down

0 comments on commit 31fc5fa

Please sign in to comment.