路線色の定義
This commit is contained in:
parent
369ae557c7
commit
815734eb07
11
assets/originData/lineColorList.js
Normal file
11
assets/originData/lineColorList.js
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
export default {
|
||||||
|
Y: "#F5AC13",
|
||||||
|
U: "#F5AC13",
|
||||||
|
S: "#9AA7D7",
|
||||||
|
D: "#DC4586",
|
||||||
|
K: "#DC4586",
|
||||||
|
B: "#366481",
|
||||||
|
N: "#881F61",
|
||||||
|
T: "#87CA3B",
|
||||||
|
M: "#0071be",
|
||||||
|
};
|
@ -18,6 +18,7 @@ import {
|
|||||||
widthPercentageToDP as wp,
|
widthPercentageToDP as wp,
|
||||||
heightPercentageToDP as hp,
|
heightPercentageToDP as hp,
|
||||||
} from "react-native-responsive-screen";
|
} from "react-native-responsive-screen";
|
||||||
|
import lineColorList from "../../assets/originData/lineColorList";
|
||||||
|
|
||||||
export const StationDeteilView = (props) => {
|
export const StationDeteilView = (props) => {
|
||||||
const {
|
const {
|
||||||
@ -189,7 +190,9 @@ const NexPreStationLine = ({
|
|||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
height: 50,
|
height: 50,
|
||||||
backgroundColor: "red",
|
backgroundColor: lineName
|
||||||
|
? lineColorList[lineName.split("[")[1].replace("]", "")]
|
||||||
|
: "red",
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
alignContent: "center",
|
alignContent: "center",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
@ -318,6 +321,7 @@ const styleSheet = {
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
alignContent: "center",
|
alignContent: "center",
|
||||||
|
height: wp("10%"),
|
||||||
},
|
},
|
||||||
下枠左右マーク: {
|
下枠左右マーク: {
|
||||||
fontWeight: "bold",
|
fontWeight: "bold",
|
||||||
@ -341,6 +345,8 @@ const styleSheet = {
|
|||||||
fontSize: parseInt("15%"),
|
fontSize: parseInt("15%"),
|
||||||
color: "white",
|
color: "white",
|
||||||
flex: 1,
|
flex: 1,
|
||||||
|
paddingHorizontal: 0,
|
||||||
|
marginVertical: 0,
|
||||||
textAlignVertical: "center",
|
textAlignVertical: "center",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user