@@ -16,8 +16,6 @@ import {
1616 CopyButton ,
1717 GLOBAL_SHORTCUTS ,
1818 Logo ,
19- ThemeContext ,
20- ThemePicker ,
2119 Tooltip ,
2220} from '@deephaven/components' ;
2321import { ServerConfigValues , User } from '@deephaven/redux' ;
@@ -26,7 +24,6 @@ import {
2624 BROADCAST_LOGOUT_MESSAGE ,
2725 makeMessage ,
2826} from '@deephaven/jsapi-utils' ;
29- import { assertNotNull } from '@deephaven/utils' ;
3027import { PluginModuleMap } from '@deephaven/plugin' ;
3128import FormattingSectionContent from './FormattingSectionContent' ;
3229import LegalNotice from './LegalNotice' ;
@@ -40,6 +37,7 @@ import {
4037 getFormattedVersionInfo ,
4138} from './SettingsUtils' ;
4239import AdvancedSectionContent from './AdvancedSectionContent' ;
40+ import ThemeSectionContent from './ThemeSectionContent' ;
4341
4442interface SettingsMenuProps {
4543 serverConfigValues : ServerConfigValues ;
@@ -258,33 +256,23 @@ export class SettingsMenu extends Component<
258256 < ColumnSpecificSectionContent scrollTo = { this . handleScrollTo } />
259257 </ SettingsMenuSection >
260258
261- < ThemeContext . Consumer >
262- { contextValue => {
263- assertNotNull ( contextValue , 'ThemeContext value is null' ) ;
264-
265- return contextValue . themes . length > 1 ? (
266- < SettingsMenuSection
267- sectionKey = { SettingsMenu . THEME_SECTION_KEY }
268- isExpanded = { this . isSectionExpanded (
269- SettingsMenu . THEME_SECTION_KEY
270- ) }
271- onToggle = { this . handleSectionToggle }
272- title = {
273- < >
274- < FontAwesomeIcon
275- icon = { vsPaintcan }
276- transform = "grow-4"
277- className = "mr-2"
278- />
279- Theme
280- </ >
281- }
282- >
283- < ThemePicker />
284- </ SettingsMenuSection >
285- ) : null ;
286- } }
287- </ ThemeContext . Consumer >
259+ < SettingsMenuSection
260+ sectionKey = { SettingsMenu . THEME_SECTION_KEY }
261+ isExpanded = { this . isSectionExpanded ( SettingsMenu . THEME_SECTION_KEY ) }
262+ onToggle = { this . handleSectionToggle }
263+ title = {
264+ < >
265+ < FontAwesomeIcon
266+ icon = { vsPaintcan }
267+ transform = "grow-4"
268+ className = "mr-2"
269+ />
270+ Theme
271+ </ >
272+ }
273+ >
274+ < ThemeSectionContent />
275+ </ SettingsMenuSection >
288276
289277 < SettingsMenuSection
290278 sectionKey = { SettingsMenu . SHORTCUT_SECTION_KEY }
0 commit comments