Skip to content

Commit

Permalink
disable themes
Browse files Browse the repository at this point in the history
  • Loading branch information
foglio1024 committed Sep 8, 2022
1 parent caf7c78 commit 6c8e8fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions PieLauncher/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ void OnUnhandledException(object sender, UnhandledExceptionEventArgs e)

public void ApplyTheme(Theme t)
{
return;
var themeUri = $"Resources/{t}Theme.xaml";
if (Current.Resources.MergedDictionaries.Any(d => d.Source.OriginalString == themeUri)) return;
var currentThemeDict = Current.Resources.MergedDictionaries.FirstOrDefault(x => x.Source.OriginalString.EndsWith("Theme.xaml"));
Expand Down
4 changes: 2 additions & 2 deletions PieLauncher/Windows/ConfigWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -568,15 +568,15 @@
VerticalAlignment="Center" />
</ContentControl>

<ContentControl local:ContentControlExtensions.Label="Theme">
<!--<ContentControl local:ContentControlExtensions.Label="Theme">
<ComboBox SelectedValue="{Binding Theme, Mode=TwoWay}"
Style="{StaticResource ComboBoxMainStyle}"
Foreground="{StaticResource DefaultTextBrush}"
VerticalContentAlignment="Center"
ItemsSource="{nsEx:EnumBindingSource {x:Type local:Theme}}"
nsEx:ComboBoxExtensions.DropDownBorderStyle="{StaticResource ComboBoxDropDownBorderStyle}"
/>
</ContentControl>
</ContentControl>-->
</StackPanel>

<Separator Grid.Row="2" Grid.ColumnSpan="2"
Expand Down

0 comments on commit 6c8e8fe

Please sign in to comment.