-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.js
129 lines (127 loc) · 3.48 KB
/
styles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import { StyleSheet } from "react-native";
import { Dimensions } from "react-native";
// Light and Dark colour schemes
export const colors = {
purpleColorLighter: "#A42DE8",
blueColorLighter: "#318AFF",
blueColorDarker: "#2D3DE8",
blackColorTranslucentLess: "rgba(0,0,0,0.35)",
blackColorTranslucentMore: "rgba(0,0,0,0.7)",
whiteColor: "#ffffff",
whiteColorTranslucent: "rgba(255,255,255, 0.5)",
light : {
bgColor: "#ffffff",
fgColor: "#800080",
fgColorLighter: "rgba(128,0,128,0.5)",
headerTextColor: "#ffffff"
},
dark : {
bgColor: "#422142",
fgColor: "#f0c4f0",
fgColorLighter: "rgba(210,169,210,0.5)",
headerTextColor: "#f0c4f0",
}
};
export const styles = (mode, height) => {
return StyleSheet.create({
nearbyAndPlayContainer: {
flex: 1,
flexDirection: "column",
justifyContent: "space-between",
padding: 10,
backgroundColor: colors[mode].bgColor
},
heading: {
fontSize: 30,
fontWeight: "bold",
color: colors[mode].fgColor,
paddingBottom: 0
},
subHeading: {
fontSize: 14,
color: colors[mode].fgColor,
paddingBottom: 25
},
songName: {
fontSize: 20,
fontWeight: "bold",
color: colors[mode].fgColor,
paddingBottom: 0
},
location: {
flexDirection: "row",
justifyContent: "space-around",
alignItems: "center",
},
locationHeading: {
fontSize: 20,
fontWeight: "bold",
color: colors[mode].fgColor,
paddingBottom: 6
},
playButton: {
backgroundColor: colors[mode].fgColor,
color: colors[mode].bgColor,
fontWeight: "bold",
padding: 10,
borderRadius: 10,
textAlign: "center",
},
locationIcon: {
width: 35,
height: 105,
},
currentLocation: {
marginBottom: 10
},
ratingComponent: {
paddingTop: 15,
},
profileContainer: {
padding: 20,
backgroundColor: colors[mode].bgColor,
flex: 1
},
input: {
marginTop: 20,
backgroundColor: colors[mode].fgColorLighter,
color: colors[mode].fgColor,
borderRadius: 5,
textAlign: "center",
height: 40
},
photoEmptyView: {
borderWidth: 2,
borderRadius: 10,
borderColor: colors[mode].fgColorLighter,
borderStyle: "dashed",
height: height / 1.625
},
photoFullImage: {
width: "100%",
borderRadius: 10
},
addPhoto: {
backgroundColor: colors[mode].fgColor,
color: colors[mode].bgColor,
fontWeight: "bold",
padding: 10,
borderRadius: 10,
textAlign: "center",
width: "50%",
marginLeft: "25%",
marginTop: -(height / 3.25)
},
changePhoto: {
backgroundColor: colors[mode].fgColor,
color: colors[mode].bgColor,
fontWeight: "bold",
padding: 10,
borderRadius: 10,
textAlign: "center",
width: "50%",
marginLeft: "25%",
marginTop: -(height / 12)
}
});
}