Skip to content

Commit 8f9c0f8

Browse files
committed
Clean up
1 parent b12be79 commit 8f9c0f8

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

DiscordChatExporter.Gui/App.axaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126

127127
<!-- Toggle switch -->
128128
<Style Selector="ToggleSwitch">
129-
<Setter Property="materialAssists:ToggleSwitchAssist.SwitchThumbOffBackground" Value="{DynamicResource MaterialBackgroundBrush}" />
129+
<Setter Property="materialAssists:ToggleSwitchAssist.SwitchThumbOffBackground" Value="{DynamicResource ToggleBackgroundBrush}" />
130130
</Style>
131131

132132
<!-- Tooltip -->
@@ -137,4 +137,17 @@
137137
<Setter Property="TextElement.FontStretch" Value="Normal" />
138138
</Style>
139139
</Application.Styles>
140+
141+
<Application.Resources>
142+
<ResourceDictionary>
143+
<ResourceDictionary.ThemeDictionaries>
144+
<ResourceDictionary x:Key="Default">
145+
<SolidColorBrush x:Key="ToggleBackgroundBrush" Color="#FFFFFF" />
146+
</ResourceDictionary>
147+
<ResourceDictionary x:Key="Dark">
148+
<SolidColorBrush x:Key="ToggleBackgroundBrush" Color="#8E8E8E" />
149+
</ResourceDictionary>
150+
</ResourceDictionary.ThemeDictionaries>
151+
</ResourceDictionary>
152+
</Application.Resources>
140153
</Application>

DiscordChatExporter.Gui/App.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ namespace DiscordChatExporter.Gui;
2020

2121
public class App : Application, IDisposable
2222
{
23+
private readonly DisposableCollector _eventRoot = new();
24+
2325
private readonly ServiceProvider _services;
2426
private readonly SettingsService _settingsService;
2527
private readonly MainViewModel _mainViewModel;
2628

27-
private readonly DisposableCollector _eventRoot = new();
28-
2929
public App()
3030
{
3131
var services = new ServiceCollection();

0 commit comments

Comments
 (0)