Skip to content

Commit

Permalink
perf: improve performance of switching schemes (#687)
Browse files Browse the repository at this point in the history
* perf: improve performance of switching schemes

* move to new section
  • Loading branch information
camc314 authored Feb 19, 2024
1 parent 5d19b06 commit 1231b4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions how-to/workspace-platform-starter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## v17.2.0

- Improved performance of switching schemes

## v17.0.0

- Added support for dock submenus
- Added support for customizing the taskbar icon for the splash screen window
- Added an example of navigating content using navigation controls. Enabled through default window options in the main [manifest.fin.json](./public/manifest.fin.json) and in our developer docs snapshot [developer.snapshot.fin.json](./public/common/snapshots/developer.snapshot.fin.json)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -824,9 +824,7 @@ export function overrideCallback(
*/
public async setSelectedScheme(schemeType: ColorSchemeOptionType): Promise<void> {
// The color scheme has been updated, so update the theme
await setCurrentColorSchemeMode(schemeType);

return super.setSelectedScheme(schemeType);
await Promise.all([setCurrentColorSchemeMode(schemeType), super.setSelectedScheme(schemeType)]);
}

/**
Expand Down

0 comments on commit 1231b4f

Please sign in to comment.