diff options
author | bobzel <zzzman@gmail.com> | 2023-09-19 14:15:52 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-09-19 14:15:52 -0400 |
commit | 9bff82f5d53f7d13802f8affc4759db0953d7dc7 (patch) | |
tree | a41f4244a0e757504c7b9324b74541ee13c5f036 /src/client/views/MainView.tsx | |
parent | 84aa8806a62e2e957e8281d7d492139e3d8225f2 (diff) |
made goldenlayout tabs/buttons follow color scheme + added hover highlights. got rid of old color scheme code.
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r-- | src/client/views/MainView.tsx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index 707cf3a34..6d08c01fa 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -112,9 +112,6 @@ export class MainView extends React.Component { @computed private get userDoc() { return Doc.UserDoc(); } - @computed private get colorScheme() { - return StrCast(Doc.ActiveDashboard?.colorScheme); - } @observable mainDoc: Opt<Doc>; @computed private get mainContainer() { if (window.location.pathname.startsWith('/doc/') && Doc.CurrentUserEmail === 'guest') { @@ -800,7 +797,7 @@ export class MainView extends React.Component { return ( <> {this._hideUI ? null : this.leftMenuPanel} - <div key="inner" className={`mainView-innerContent${this.colorScheme}`}> + <div key="inner" className="mainView-innerContent"> {this.flyout} <div className="mainView-libraryHandle" @@ -843,7 +840,7 @@ export class MainView extends React.Component { ).observe(r); }} style={{ - color: this.colorScheme === ColorScheme.Dark ? 'rgb(205,205,205)' : 'black', + color: 'black', height: `calc(100% - ${this.topOfDashUI + this.topMenuHeight()}px)`, width: '100%', }}> @@ -1003,7 +1000,7 @@ export class MainView extends React.Component { render() { return ( <div - className={`mainView-container ${this.colorScheme}`} + className="mainView-container" style={{ color: SettingsManager.userColor, background: SettingsManager.userBackgroundColor, |