From 9102af6b07b7c70f06f51c0a2e9e838a99e0af21 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 3 Apr 2023 16:19:22 -0500 Subject: More darkmode fixes (#381) * Update confirm modal to use theming system (close #347) * Add dark mode styles to serverinput modal * Fix lint --- src/view/com/modals/ServerInput.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/view/com/modals/ServerInput.tsx') diff --git a/src/view/com/modals/ServerInput.tsx b/src/view/com/modals/ServerInput.tsx index 1d352cec9..078abbf64 100644 --- a/src/view/com/modals/ServerInput.tsx +++ b/src/view/com/modals/ServerInput.tsx @@ -8,6 +8,7 @@ import {ScrollView, TextInput} from './util' import {Text} from '../util/text/Text' import {useStores} from 'state/index' import {s, colors} from 'lib/styles' +import {usePalette} from 'lib/hooks/usePalette' import {useTheme} from 'lib/ThemeContext' import {LOCAL_DEV_SERVICE, STAGING_SERVICE, PROD_SERVICE} from 'state/index' import {LOGIN_INCLUDE_DEV_SERVERS} from 'lib/build-flags' @@ -16,6 +17,7 @@ export const snapPoints = ['80%'] export function Component({onSelect}: {onSelect: (url: string) => void}) { const theme = useTheme() + const pal = usePalette('default') const store = useStores() const [customUrl, setCustomUrl] = useState('') @@ -28,8 +30,10 @@ export function Component({onSelect}: {onSelect: (url: string) => void}) { } return ( - - Choose Service + + + Choose Service + {LOGIN_INCLUDE_DEV_SERVERS ? ( @@ -66,11 +70,11 @@ export function Component({onSelect}: {onSelect: (url: string) => void}) { - Other service + Other service void}) { /> doSelect(customUrl)}> @@ -112,18 +116,15 @@ const styles = StyleSheet.create({ textInput: { flex: 1, borderWidth: 1, - borderColor: colors.gray3, borderTopLeftRadius: 6, borderBottomLeftRadius: 6, paddingHorizontal: 14, paddingVertical: 12, fontSize: 16, - color: colors.black, }, textInputBtn: { borderWidth: 1, borderLeftWidth: 0, - borderColor: colors.gray3, borderTopRightRadius: 6, borderBottomRightRadius: 6, paddingHorizontal: 14, -- cgit 1.4.1