Skip to content

Commit

Permalink
fix: Dark theme for OsReceive screen
Browse files Browse the repository at this point in the history
  • Loading branch information
zatteo committed Jun 25, 2024
1 parent e59eb4b commit fe34b73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/app/view/OsReceive/OsReceiveScreen.styles.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { FlexAlignType } from 'react-native'

import { palette } from '/ui/palette'

export const osReceiveScreenStyles = {
page: {
backgroundColor: palette.Common.white
},
disabled: {
opacity: 0.5
},
Expand Down
7 changes: 4 additions & 3 deletions src/app/view/OsReceive/OsReceiveScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ import { osReceiveScreenStyles } from '/app/view/OsReceive/OsReceiveScreen.style
import { useCozyTheme } from '/ui/CozyTheme/CozyTheme'
import { FileDuotone } from '/ui/Icons/FileDuotone'
import { FileThumbnail } from '/ui/ImageThumbnail'
import { getColorScheme } from '/app/theme/colorScheme'

const defaultFlagshipUI: FlagshipUI = {
bottomTheme: 'dark',
topTheme: 'dark'
bottomTheme: getColorScheme() === 'dark' ? 'light' : 'dark',
topTheme: getColorScheme() === 'dark' ? 'light' : 'dark'
}

export const OsReceiveScreen = (): JSX.Element | null => {
Expand Down Expand Up @@ -90,7 +91,7 @@ export const OsReceiveScreenView = ({
const isMultipleFiles = filesToUpload.length > 1

return (
<Container style={osReceiveScreenStyles.page}>
<Container style={{ backgroundColor: colors.paperBackgroundColor }}>
<Grid container direction="column" justifyContent="space-between">
<Grid alignItems="center">
{isMultipleFiles ? (
Expand Down

0 comments on commit fe34b73

Please sign in to comment.