Skip to content

Commit acaa176

Browse files
committed
Add: monochromatic theme #95
1 parent b5e9f1e commit acaa176

3 files changed

Lines changed: 43 additions & 3 deletions

File tree

app/contexts/theme.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,46 @@ export const themes = {
190190

191191
barStyle: 'dark',
192192
},
193+
'light mono': {
194+
primaryBack: '#ffffff',
195+
secondaryBack: '#f2f2f2',
196+
tertiaryBack: '#dcdcd4',
197+
198+
primaryText: '#000000',
199+
secondaryText: '#808080',
200+
201+
primaryTouch: '#000000',
202+
secondaryTouch: '#333333',
203+
innerTouch: '#ffffff',
204+
backgroundTouch: '#dcdcd4',
205+
206+
playerBackground: '#b2b2b2ff',
207+
playerPrimaryText: '#000000',
208+
playerSecondaryText: '#404040',
209+
playerButton: '#000000',
210+
211+
barStyle: 'dark',
212+
},
213+
'dark mono': {
214+
primaryBack: '#000000',
215+
secondaryBack: '#1e1e1e',
216+
tertiaryBack: '#2e2e2e',
217+
218+
primaryText: '#FFFFFF',
219+
secondaryText: '#808080',
220+
221+
primaryTouch: '#b9b9b9ff',
222+
secondaryTouch: '#B3B3B3',
223+
innerTouch: '#000000',
224+
backgroundTouch: '#2e2e2e',
225+
226+
playerBackground: '#1e1e1e',
227+
playerPrimaryText: '#f5f5dc',
228+
playerSecondaryText: '#808080',
229+
playerButton: '#FFFFFF',
230+
231+
barStyle: 'light',
232+
},
193233
}
194234

195235
export const themesPlayer = {

app/screens/Pres/Favorited.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ import RandomButton from '~/components/button/RandomButton'
1414
import size from '~/styles/size'
1515
import SongItem from '~/components/item/SongItem'
1616

17-
const Favorited = ({ route: { params } }) => {
17+
const Favorited = () => {
1818
const insets = useSafeAreaInsets()
1919
const theme = useTheme()
2020
const [indexOptions, setIndexOptions] = React.useState(-1)
2121
const { t } = useTranslation()
2222
const [isOption, setIsOption] = React.useState(false)
2323

24-
const [favorited] = useCachedFirst(params?.favorited || [], 'getStarred2', null, (json, setData) => {
24+
const [favorited] = useCachedFirst([], 'getStarred2', null, (json, setData) => {
2525
setData(json?.starred2?.song || [])
2626
}, [])
2727

app/screens/tabs/Playlists.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const Playlists = ({ navigation }) => {
8888
</View>
8989
<Pressable
9090
style={({ pressed }) => ([mainStyles.opacity({ pressed }), styles.subTitleParent, { marginTop: 0 }])}
91-
onPress={() => navigation.navigate('Favorited', { favorited })}
91+
onPress={() => navigation.navigate('Favorited')}
9292
>
9393
<Icon name="heart" size={size.icon.small} color={theme.primaryTouch} style={{ marginEnd: 10 }} />
9494
<Text style={[mainStyles.subTitle(theme), { flex: 1 }]}>{t('Favorited')}</Text>

0 commit comments

Comments
 (0)