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()
109109 // Send a message to start the plugin system:
110110 await this . MessageBus . SendMessage < bool > ( this , Event . STARTUP_PLUGIN_SYSTEM ) ;
111111
112- await this . themeProvider . WatchSystemPreference ( this . SystemeThemeChanged ) ;
112+ await this . themeProvider . WatchSystemDarkModeAsync ( this . SystemeThemeChanged ) ;
113113 await this . UpdateThemeConfiguration ( ) ;
114114 this . LoadNavItems ( ) ;
115115
@@ -324,7 +324,7 @@ private async Task SystemeThemeChanged(bool isDark)
324324 private async Task UpdateThemeConfiguration ( )
325325 {
326326 if ( this . SettingsManager . ConfigurationData . App . PreferredTheme is Themes . SYSTEM )
327- this . useDarkMode = await this . themeProvider . GetSystemPreference ( ) ;
327+ this . useDarkMode = await this . themeProvider . GetSystemDarkModeAsync ( ) ;
328328 else
329329 this . useDarkMode = this . SettingsManager . ConfigurationData . App . PreferredTheme == Themes . DARK ;
330330
You can’t perform that action at this time.
0 commit comments