Skip to content

Commit 7b1c34a

Browse files
use theme service on settings load
1 parent 5087ff0 commit 7b1c34a

File tree

1 file changed

+1
-6
lines changed
  • arduino-ide-extension/src/browser/dialogs/settings

1 file changed

+1
-6
lines changed

arduino-ide-extension/src/browser/dialogs/settings/settings.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ export class SettingsService {
122122
languages,
123123
currentLanguage,
124124
editorFontSize,
125-
themeId,
126125
autoSave,
127126
quickSuggestions,
128127
autoScaleInterface,
@@ -137,10 +136,6 @@ export class SettingsService {
137136
['en', ...(await this.localizationProvider.getAvailableLanguages())],
138137
this.localizationProvider.getCurrentLanguage(),
139138
this.preferenceService.get<number>(FONT_SIZE_SETTING, 12),
140-
this.preferenceService.get<string>(
141-
'workbench.colorTheme',
142-
'arduino-theme'
143-
),
144139
this.preferenceService.get<Settings.AutoSave>(
145140
AUTO_SAVE_SETTING,
146141
Settings.AutoSave.DEFAULT_ON
@@ -165,7 +160,7 @@ export class SettingsService {
165160
const sketchbookPath = await this.fileService.fsPath(new URI(sketchDirUri));
166161
return {
167162
editorFontSize,
168-
themeId,
163+
themeId: ThemeService.get().getCurrentTheme().id,
169164
languages,
170165
currentLanguage,
171166
autoSave,

0 commit comments

Comments
 (0)