File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/MindWork AI Studio/Layout Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ protected override async Task OnInitializedAsync()
109
109
// Send a message to start the plugin system:
110
110
await this . MessageBus . SendMessage < bool > ( this , Event . STARTUP_PLUGIN_SYSTEM ) ;
111
111
112
- await this . themeProvider . WatchSystemPreference ( this . SystemeThemeChanged ) ;
112
+ await this . themeProvider . WatchSystemDarkModeAsync ( this . SystemeThemeChanged ) ;
113
113
await this . UpdateThemeConfiguration ( ) ;
114
114
this . LoadNavItems ( ) ;
115
115
@@ -324,7 +324,7 @@ private async Task SystemeThemeChanged(bool isDark)
324
324
private async Task UpdateThemeConfiguration ( )
325
325
{
326
326
if ( this . SettingsManager . ConfigurationData . App . PreferredTheme is Themes . SYSTEM )
327
- this . useDarkMode = await this . themeProvider . GetSystemPreference ( ) ;
327
+ this . useDarkMode = await this . themeProvider . GetSystemDarkModeAsync ( ) ;
328
328
else
329
329
this . useDarkMode = this . SettingsManager . ConfigurationData . App . PreferredTheme == Themes . DARK ;
330
330
You can’t perform that action at this time.
0 commit comments