Skip to content

Commit

Permalink
UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ray committed Nov 29, 2023
1 parent 85ba8bc commit 85a1f04
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
3 changes: 2 additions & 1 deletion apps/app/app/(torrents)/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,12 @@ export default function Torrents() {
placeholder={i18n.t('torrents.filterListPlaceholder')}
value={filter}
onChangeText={setFilter}
bc={/^light/.test(theme) ? 'white' : 'black'}
borderTopWidth={0}
borderRightWidth={0}
borderLeftWidth={0}
br={0}
bc={/^light/.test(theme) ? 'white' : 'black'}
placeholderTextColor={'$color'}
/>
</XStack>
</Card>
Expand Down
3 changes: 2 additions & 1 deletion apps/app/app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { migrate } from '../lib/migrations'
const screenOptions = {
title: 'PikaTorrent',
headerShown: false,
// lazy: false FIXME: Status bar becomes transparent
}

SplashScreen.preventAutoHideAsync()
Expand Down Expand Up @@ -146,7 +147,7 @@ const ThemedLayout = () => {
<Stack
f={1}
{...(Platform.OS === 'web' ? { h: '100vh' } : {})}
bc="$backgroundStrong"
backgroundColor={theme === 'dark' ? 'black' : 'white'}
>
<TorrentsProvider>
<Header />
Expand Down
2 changes: 1 addition & 1 deletion apps/app/components/Navigation/ButtonLink.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { Link, useSegments } from 'expo-router'
import { Button, XStack, useMedia, useThemeName } from 'tamagui'
import { Button, useMedia, useThemeName } from 'tamagui'

export const ButtonLink = ({ title, href, segment, icon }) => {
const media = useMedia()
Expand Down
8 changes: 3 additions & 5 deletions apps/app/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,17 @@ export const SearchBar = () => {
borderRightWidth={0}
borderLeftWidth={0}
br={0}
placeholderTextColor={'$color'}
/>
<SearchEngineSelector
engines={engines}
value={selectedSearchEngineUrl}
onValueChange={handleEngineChange}
/>
<Form.Trigger
asChild
disabled={query.length === 0}
o={query.length === 0 ? 0.5 : 1}
>
<Form.Trigger asChild>
<Button
icon={Search}
disabled={query.length === 0}
scaleIcon={1.3}
borderColor={'$gray7'}
bc={/^light/.test(theme) ? 'white' : 'black'}
Expand Down
2 changes: 0 additions & 2 deletions apps/app/components/reusable/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ const Dialog = ({
const [localOpen, setLocalOpen] = useState(defaultOpen)
const theme = useThemeName()

console.log('theme', theme)

useEffect(() => {
if (Platform.OS === 'web') {
return
Expand Down

0 comments on commit 85a1f04

Please sign in to comment.