mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
styling seal wizard for dark mode
This commit is contained in:
parent
f4ad6c9a9f
commit
1870aa16af
@ -41,15 +41,16 @@ const LightColors = {
|
||||
enabledIndicator: '#8fbea7',
|
||||
disabledIndicator: '#eeeeee',
|
||||
disconnectedIndicator: '#aa0000',
|
||||
sliderGrip: '#888888',
|
||||
};
|
||||
|
||||
const DarkColors = {
|
||||
tabBar: '#111111',
|
||||
activeTabIcon: '#dddddd',
|
||||
idleTabIcon: '#aaaaaa',
|
||||
activeBorder: '#aa8866',
|
||||
activeBorder: '#aaaaaa',
|
||||
idleBorder: '#eeeeee',
|
||||
activeFill: '#66aa88',
|
||||
activeFill: '#559955',
|
||||
linkText: '#88eecc',
|
||||
dangerText: '#ffaaaa',
|
||||
labelText: '#eeeeee',
|
||||
@ -59,14 +60,14 @@ const DarkColors = {
|
||||
text: '#ffffff',
|
||||
screenBase: '#333333',
|
||||
areaBase: '#555555',
|
||||
modalBase: '#ffffff',
|
||||
modalOverlay: 'rgba(52,52,52,0.8)',
|
||||
modalBase: '#333333',
|
||||
modalOverlay: 'rgba(88,88,88,0.8)',
|
||||
headerBar: '#555555',
|
||||
primaryButton: '#448866',
|
||||
primaryButtonText: '#ffffff',
|
||||
disabledButton: '#aaaaaa',
|
||||
disabledButtonText: '#888888',
|
||||
dangerButton: '#ff888888',
|
||||
disabledButton: '#888888',
|
||||
disabledButtonText: '#eeeeee',
|
||||
dangerButton: '#ff5555',
|
||||
dangerButtonText: '#ffffff',
|
||||
inputBase: '#ffffff',
|
||||
inputPlaceholder: '#888888',
|
||||
@ -84,6 +85,7 @@ const DarkColors = {
|
||||
enabledIndicator: '#8fbea7',
|
||||
disabledIndicator: '#eeeeee',
|
||||
disconnectedIndicator: '#aa0000',
|
||||
sliderGrip: '#eeeeee',
|
||||
};
|
||||
|
||||
function getColor(label) {
|
||||
@ -131,6 +133,7 @@ export const Colors = {
|
||||
enabledIndicator: getColor('enabledIndicator'),
|
||||
disabledIndicator: getColor('disabledIndicator'),
|
||||
disconnectedIndicator: getColor('disconnectedIndicator'),
|
||||
sliderGrip: getColor('sliderGrip'),
|
||||
|
||||
background: '#8fbea7',
|
||||
primary: '#448866',
|
||||
|
@ -67,6 +67,7 @@ export const styles = StyleSheet.create({
|
||||
color: Colors.white,
|
||||
},
|
||||
tabBar: {
|
||||
borderTopWidth: 0,
|
||||
backgroundColor: Colors.primary,
|
||||
maxHeight: 72,
|
||||
},
|
||||
|
@ -41,7 +41,7 @@ export function Settings() {
|
||||
</View>
|
||||
<View style={styles.optionControl}>
|
||||
<Text style={styles.optionLink}>{ state.strings.enableNotifications }</Text>
|
||||
<Switch style={styles.notifications} trackColor={styles.track}/>
|
||||
<Switch value={true} style={styles.notifications} thumbColor={Colors.sliderGrip} ios_backgroundColor={Colors.disabledIndicator} trackColor={styles.track}/>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
<View style={styles.divider} />
|
||||
@ -64,7 +64,7 @@ export function Settings() {
|
||||
<View style={styles.group}>
|
||||
<View style={styles.entry}>
|
||||
<View style={styles.icon}>
|
||||
<MatIcons name="progress-clock" size={20} color={Colors.text} />
|
||||
<MatIcons name="progress-clock" size={20} color={Colors.labelText} />
|
||||
</View>
|
||||
<View style={styles.optionControl}>
|
||||
<Text style={styles.labelText}>{ state.strings.hourMode }</Text>
|
||||
@ -91,7 +91,7 @@ export function Settings() {
|
||||
<View style={styles.divider} />
|
||||
<TouchableOpacity style={styles.entry} activeOpacity={1}>
|
||||
<View style={styles.icon}>
|
||||
<MatIcons name="calendar-month-outline" size={20} color={Colors.text} />
|
||||
<MatIcons name="calendar-month-outline" size={20} color={Colors.labelText} />
|
||||
</View>
|
||||
<View style={styles.optionControl}>
|
||||
<Text style={styles.labelText}>{ state.strings.dateMode }</Text>
|
||||
|
@ -11,7 +11,7 @@ export const styles = StyleSheet.create({
|
||||
backgroundColor: Colors.screenBase,
|
||||
},
|
||||
label: {
|
||||
color: Colors.text,
|
||||
color: Colors.labelText,
|
||||
padding: 4,
|
||||
fontFamily: 'Roboto',
|
||||
},
|
||||
@ -104,8 +104,8 @@ export const styles = StyleSheet.create({
|
||||
fontFamily: 'Roboto',
|
||||
},
|
||||
track: {
|
||||
false: Colors.disabledIndicator,
|
||||
true: Colors.enabledIndicator,
|
||||
false: Colors.idleFill,
|
||||
true: Colors.activeFill,
|
||||
},
|
||||
notifications: {
|
||||
transform: [{ scaleX: .6 }, { scaleY: .6 }],
|
||||
@ -130,7 +130,7 @@ export const styles = StyleSheet.create({
|
||||
modalHeader: {
|
||||
fontSize: 18,
|
||||
paddingTop: 16,
|
||||
color: Colors.text,
|
||||
color: Colors.labelText,
|
||||
fontFamily: 'Roboto',
|
||||
},
|
||||
modalClose: {
|
||||
|
Loading…
Reference in New Issue
Block a user