diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-02-23 09:38:02 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-02-23 09:38:02 -0600 |
commit | 9bf48ed5953bfa25d44f88472bbf56baf3fd634b (patch) | |
tree | 14123b2630151477ba7a1a3e7d3d9ced263e350c /src/view/shell/web/index.tsx | |
parent | e828f380e779b7c6c0b6cb45508ed59516c0feda (diff) | |
download | voidsky-9bf48ed5953bfa25d44f88472bbf56baf3fd634b.tar.zst |
Change web shell to use permanent header
Diffstat (limited to 'src/view/shell/web/index.tsx')
-rw-r--r-- | src/view/shell/web/index.tsx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/view/shell/web/index.tsx b/src/view/shell/web/index.tsx index 7d76c01d8..44f958be8 100644 --- a/src/view/shell/web/index.tsx +++ b/src/view/shell/web/index.tsx @@ -5,6 +5,7 @@ import {IconProp} from '@fortawesome/fontawesome-svg-core' import {useStores} from 'state/index' import {NavigationModel} from 'state/models/navigation' import {match, MatchResult} from '../../routes' +import {DesktopHeader} from './DesktopHeader' import {DesktopLeftColumn} from './DesktopLeftColumn' import {DesktopRightColumn} from './DesktopRightColumn' import {Onboard} from '../../screens/Onboard' @@ -14,10 +15,11 @@ import {Lightbox} from '../../com/lightbox/Lightbox' import {Modal} from '../../com/modals/Modal' import {Composer} from './Composer' import {usePalette} from 'lib/hooks/usePalette' -import {s} from 'lib/styles' +import {useColorSchemeStyle} from 'lib/hooks/useColorSchemeStyle' +import {s, colors} from 'lib/styles' export const WebShell: React.FC = observer(() => { - const pal = usePalette('default') + const pageBg = useColorSchemeStyle(styles.bgLight, styles.bgDark) const store = useStores() const screenRenderDesc = constructScreenRenderDesc(store.nav) @@ -40,7 +42,8 @@ export const WebShell: React.FC = observer(() => { } return ( - <View style={[styles.outerContainer, pal.view]}> + <View style={[styles.outerContainer, pageBg]}> + <DesktopHeader /> {screenRenderDesc.screens.map(({Com, navIdx, params, key, current}) => ( <View key={key} @@ -130,6 +133,12 @@ const styles = StyleSheet.create({ outerContainer: { height: '100%', }, + bgLight: { + backgroundColor: colors.gray1, + }, + bgDark: { + backgroundColor: colors.gray1, // TODO + }, visible: { display: 'flex', }, |