From 2fafb5440cefadafd865c6254bbfe5199fee52d2 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 9 Apr 2022 21:35:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9A=97=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/src/main/res/values-v29/styles.xml | 9 +++++++ src/components/common/Dialog.js | 4 ++-- src/components/common/Popup.js | 2 +- src/navigation/components/PactModal.js | 2 +- src/navigation/components/VersionModal.js | 2 +- src/screens/PlayDetail/Portrait/Lyric.js | 4 ++-- src/theme/themes/black.js | 24 +++++++++---------- src/theme/themes/index.js | 10 ++------ 8 files changed, 30 insertions(+), 27 deletions(-) create mode 100644 android/app/src/main/res/values-v29/styles.xml diff --git a/android/app/src/main/res/values-v29/styles.xml b/android/app/src/main/res/values-v29/styles.xml new file mode 100644 index 00000000..4079b47b --- /dev/null +++ b/android/app/src/main/res/values-v29/styles.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/src/components/common/Dialog.js b/src/components/common/Dialog.js index efc5e53e..a84fb81b 100644 --- a/src/components/common/Dialog.js +++ b/src/components/common/Dialog.js @@ -16,7 +16,7 @@ const styles = StyleSheet.create({ maxWidth: '90%', minWidth: '60%', maxHeight: '78%', - backgroundColor: 'white', + // backgroundColor: 'white', borderRadius: 4, // shadowColor: '#000', // shadowOffset: { @@ -70,7 +70,7 @@ export default ({ const closeBtnComponent = useMemo(() => closeBtn ? : null, [closeBtn, hideDialog, theme]) return ( - + true}> diff --git a/src/components/common/Popup.js b/src/components/common/Popup.js index 43db1aed..8d9d3571 100644 --- a/src/components/common/Popup.js +++ b/src/components/common/Popup.js @@ -114,7 +114,7 @@ export default ({ }, [position]) return ( - + true}> diff --git a/src/navigation/components/PactModal.js b/src/navigation/components/PactModal.js index 19def98a..dccfcc8f 100644 --- a/src/navigation/components/PactModal.js +++ b/src/navigation/components/PactModal.js @@ -119,7 +119,7 @@ const styles = StyleSheet.create({ flex: 1, justifyContent: 'center', alignItems: 'center', - backgroundColor: 'rgba(0,0,0,0.2)', + backgroundColor: 'rgba(50,50,50,.3)', }, modalView: { maxWidth: '90%', diff --git a/src/navigation/components/VersionModal.js b/src/navigation/components/VersionModal.js index 4cc4d709..51e1a0ce 100644 --- a/src/navigation/components/VersionModal.js +++ b/src/navigation/components/VersionModal.js @@ -236,7 +236,7 @@ const styles = StyleSheet.create({ flex: 1, justifyContent: 'center', alignItems: 'center', - backgroundColor: 'rgba(0,0,0,0.2)', + backgroundColor: 'rgba(50,50,50,.3)', }, modalView: { maxWidth: '90%', diff --git a/src/screens/PlayDetail/Portrait/Lyric.js b/src/screens/PlayDetail/Portrait/Lyric.js index 6e71d534..c10ab21a 100644 --- a/src/screens/PlayDetail/Portrait/Lyric.js +++ b/src/screens/PlayDetail/Portrait/Lyric.js @@ -16,7 +16,7 @@ const LrcLine = memo(({ lrc, line, activeLine }) => { ...styles.lineText, fontSize: playerPortraitStyle.lrcFontSize / 10, lineHeight: playerPortraitStyle.lrcFontSize / 10 * 1.25, - color: activeLine == line ? theme.secondary : theme.normal30, + color: activeLine == line ? theme.secondary : theme.normal50, }}>{lrc.text} { lrc.translation @@ -24,7 +24,7 @@ const LrcLine = memo(({ lrc, line, activeLine }) => { ...styles.lineTranslationText, fontSize: playerPortraitStyle.lrcFontSize / 10 * 0.8, lineHeight: playerPortraitStyle.lrcFontSize / 10 * 0.8 * 1.25, - color: activeLine == line ? theme.secondary : theme.normal30, + color: activeLine == line ? theme.secondary : theme.normal50, }}>{lrc.translation} : null } diff --git a/src/theme/themes/black.js b/src/theme/themes/black.js index 02071ff3..0fae90dd 100644 --- a/src/theme/themes/black.js +++ b/src/theme/themes/black.js @@ -2,21 +2,21 @@ export default { id: 'black', isDark: true, colors: { - primary: '#1a1a1a', + primary: '#000', - normal: '#bfbfbf', - normal10: '#b5b5b5', - normal20: '#ababab', - normal30: '#a1a1a1', - normal35: '#9c9c9c', - normal40: '#919191', - normal50: '#878787', - normal60: '#7d7d7d', - normal70: '#737373', - normal75: '#6e6e6e', + normal: '#a3a3a3', + normal10: '#999', + normal20: '#8f8f8f', + normal30: '#858585', + normal35: '#7a7a7a', + normal40: '#707070', + normal50: '#666', + normal60: '#5c5c5c', + normal70: '#525252', + normal75: '#4c4c4c', secondary_5: '#666', - secondary: '#575757', + secondary: '#999', secondary10: '#474747', secondary20: '#383838', secondary30: '#2e2e2e', diff --git a/src/theme/themes/index.js b/src/theme/themes/index.js index f211dac1..e302c528 100644 --- a/src/theme/themes/index.js +++ b/src/theme/themes/index.js @@ -1,6 +1,7 @@ import green from './green' import blue from './blue' import orange from './orange' +import pink from './pink' import red from './red' import grey from './grey' import black from './black' @@ -9,15 +10,8 @@ export default [ green, blue, orange, + pink, red, grey, black, ] - -export { default as green } from './green' -export { default as blue } from './blue' -export { default as orange } from './orange' -export { default as red } from './red' -export { default as pink } from './pink' -export { default as grey } from './grey' -export { default as black } from './black'