text tweaks

This commit is contained in:
austinried 2021-08-23 10:56:44 +09:00
parent dd97cd4391
commit 5879694c8c
6 changed files with 14 additions and 14 deletions

View File

@ -170,7 +170,7 @@ const OptionViewArtist = React.memo<{
IconComponent={IconFA} IconComponent={IconFA}
name="microphone" name="microphone"
size={26} size={26}
text="View artist" text="View Artist"
onSelect={() => navigation.navigate('artist', { id: artistId, title: artist })} onSelect={() => navigation.navigate('artist', { id: artistId, title: artist })}
/> />
) )
@ -190,7 +190,7 @@ const OptionViewAlbum = React.memo<{
IconComponent={IconFA5} IconComponent={IconFA5}
name="compact-disc" name="compact-disc"
size={26} size={26}
text="View album" text="View Album"
onSelect={() => navigation.navigate('album', { id: albumId, title: album })} onSelect={() => navigation.navigate('album', { id: albumId, title: album })}
/> />
) )

View File

@ -18,7 +18,7 @@ import { RefreshControl, ScrollView, StatusBar, StyleSheet, Text, View } from 'r
const titles: { [key in GetAlbumListType]?: string } = { const titles: { [key in GetAlbumListType]?: string } = {
recent: 'Recent Albums', recent: 'Recent Albums',
random: 'Random Albums', random: 'Random Albums',
frequent: 'Frequent Albums', frequent: 'Frequently Played',
starred: 'Starred Albums', starred: 'Starred Albums',
} }

View File

@ -45,15 +45,15 @@ const AlbumListRenderItem: React.FC<{
}> = ({ item }) => <AlbumItem album={item.album} size={item.size} height={item.height} /> }> = ({ item }) => <AlbumItem album={item.album} size={item.size} height={item.height} />
const filterOptions: OptionData[] = [ const filterOptions: OptionData[] = [
{ text: 'By name', value: 'alphabeticalByName' }, { text: 'By Name', value: 'alphabeticalByName' },
{ text: 'By artist', value: 'alphabeticalByArtist' }, { text: 'By Artist', value: 'alphabeticalByArtist' },
{ text: 'Newest', value: 'newest' }, { text: 'Newest', value: 'newest' },
{ text: 'Frequent', value: 'frequent' }, { text: 'Frequent', value: 'frequent' },
{ text: 'Recent', value: 'recent' }, { text: 'Recent', value: 'recent' },
{ text: 'Starred', value: 'starred' }, { text: 'Starred', value: 'starred' },
{ text: 'Random', value: 'random' }, { text: 'Random', value: 'random' },
// { text: 'By year...', value: 'byYear' }, // { text: 'By Year...', value: 'byYear' },
// { text: 'By genre...', value: 'byGenre' }, // { text: 'By Genre...', value: 'byGenre' },
] ]
const AlbumsList = () => { const AlbumsList = () => {

View File

@ -15,7 +15,7 @@ const ArtistRenderItem: React.FC<{ item: Artist }> = ({ item }) => (
) )
const filterOptions: OptionData[] = [ const filterOptions: OptionData[] = [
{ text: 'By name', value: 'alphabeticalByName' }, { text: 'By Name', value: 'alphabeticalByName' },
{ text: 'Starred', value: 'starred' }, { text: 'Starred', value: 'starred' },
{ text: 'Random', value: 'random' }, { text: 'Random', value: 'random' },
] ]

View File

@ -120,7 +120,7 @@ const ServerView: React.FC<{
setTesting(false) setTesting(false)
} }
ping() ping()
}, [createServer, pingServer, setTesting]) }, [createServer, pingServer])
const disableControls = useCallback(() => { const disableControls = useCallback(() => {
return !validate() || testing || removing || saving return !validate() || testing || removing || saving
@ -135,7 +135,7 @@ const ServerView: React.FC<{
placeholderTextColor="grey" placeholderTextColor="grey"
selectionColor={colors.text.secondary} selectionColor={colors.text.secondary}
textContentType="URL" textContentType="URL"
placeholder="Address" placeholder="http://demo.navidrome.org"
value={address} value={address}
onChangeText={setAddress} onChangeText={setAddress}
/> />
@ -146,7 +146,7 @@ const ServerView: React.FC<{
selectionColor={colors.text.secondary} selectionColor={colors.text.secondary}
textContentType="username" textContentType="username"
autoCompleteType="username" autoCompleteType="username"
placeholder="Username" placeholder="demo"
value={username} value={username}
onChangeText={setUsername} onChangeText={setUsername}
/> />
@ -158,7 +158,7 @@ const ServerView: React.FC<{
textContentType="password" textContentType="password"
autoCompleteType="password" autoCompleteType="password"
secureTextEntry={true} secureTextEntry={true}
placeholder="Password" placeholder="demo"
value={password} value={password}
onChangeText={setPassword} onChangeText={setPassword}
/> />

View File

@ -71,7 +71,7 @@ export const createSettingsSlice = (set: SetState<Store>, get: GetState<Store>):
servers: [], servers: [],
screens: { screens: {
home: { home: {
lists: ['recent', 'random', 'frequent', 'starred'], lists: ['frequent', 'recent', 'starred', 'random'],
}, },
library: { library: {
albums: { albums: {
@ -89,7 +89,7 @@ export const createSettingsSlice = (set: SetState<Store>, get: GetState<Store>):
estimateContentLength: true, estimateContentLength: true,
maxBitrateWifi: 0, maxBitrateWifi: 0,
maxBitrateMobile: 192, maxBitrateMobile: 192,
minBuffer: 10, minBuffer: 6,
maxBuffer: 60, maxBuffer: 60,
}, },