|
@@ -177,16 +177,17 @@ export default class Gui extends BaseSystem {
|
|
let pages = Object.keys(this.CoreSystem.Routing.topology.nodes).map((route,index) => {
|
|
let pages = Object.keys(this.CoreSystem.Routing.topology.nodes).map((route,index) => {
|
|
let view = this.CoreSystem.Routing.getView(route)
|
|
let view = this.CoreSystem.Routing.getView(route)
|
|
let background = view === currentView ? PageButtons.activePage :(null)
|
|
let background = view === currentView ? PageButtons.activePage :(null)
|
|
|
|
+ let textColor = view === currentView ? PageButtons.selectedText :(null)
|
|
return (
|
|
return (
|
|
<View style={[PageButtons.page , background ] } onClick = {(e) => {
|
|
<View style={[PageButtons.page , background ] } onClick = {(e) => {
|
|
this.CoreSystem.goto(route)
|
|
this.CoreSystem.goto(route)
|
|
this.forceUpdate()
|
|
this.forceUpdate()
|
|
}}>
|
|
}}>
|
|
- <View style = {{ flex:1,
|
|
|
|
- justifyContent:'center',
|
|
|
|
- alignItems:'center'}}>
|
|
|
|
|
|
+ <View style = {{ flex:1,
|
|
|
|
+ justifyContent:'center',
|
|
|
|
+ alignItems:'center'}}>
|
|
|
|
|
|
- <Text style={PageButtons.text}>{route}</Text>
|
|
|
|
|
|
+ <Text style={[PageButtons.text, textColor]}>{route}</Text>
|
|
</View>
|
|
</View>
|
|
</View>
|
|
</View>
|
|
|
|
|
|
@@ -196,13 +197,11 @@ export default class Gui extends BaseSystem {
|
|
return (
|
|
return (
|
|
<View style={PageButtons.container}>
|
|
<View style={PageButtons.container}>
|
|
<View style={{borderRightWidth:"1px",
|
|
<View style={{borderRightWidth:"1px",
|
|
- borderColor:"#B4b4b4",background:'white'}}>
|
|
|
|
|
|
+ borderColor:"#B4b4b4",
|
|
|
|
+ background:'white', paddingTop: 4}}>
|
|
<Button
|
|
<Button
|
|
-
|
|
|
|
color="white"
|
|
color="white"
|
|
- title={<Icon containerStyle={{paddingLeft:14,paddingRight:14,paddingTop:2,paddingBottom:2}} name='filter'
|
|
|
|
- color="#36BBAD"
|
|
|
|
- />
|
|
|
|
|
|
+ title={<Icon name='filter' color="#36BBAD" />
|
|
}
|
|
}
|
|
/>
|
|
/>
|
|
</View>
|
|
</View>
|
|
@@ -211,7 +210,7 @@ export default class Gui extends BaseSystem {
|
|
<View style={PageButtons.addNew} onClick = {() => this.addFrame()}>
|
|
<View style={PageButtons.addNew} onClick = {() => this.addFrame()}>
|
|
<View style= {PageButtons.addNewContainer}>
|
|
<View style= {PageButtons.addNewContainer}>
|
|
<Text style={PageButtons.addNewText}>Add new </Text>
|
|
<Text style={PageButtons.addNewText}>Add new </Text>
|
|
- <Icon color="white" name='add'/>
|
|
|
|
|
|
+ <Icon color="white" name='add' iconStyle={{fontSize: 12, paddingTop: 8}}/>
|
|
</View>
|
|
</View>
|
|
</View>
|
|
</View>
|
|
|
|
|
|
@@ -229,25 +228,25 @@ const PageButtons = StyleSheet.create({
|
|
container:{
|
|
container:{
|
|
flex:1,
|
|
flex:1,
|
|
flexDirection:'row',
|
|
flexDirection:'row',
|
|
- width:40,
|
|
|
|
|
|
+ width:40
|
|
},
|
|
},
|
|
activePage:{
|
|
activePage:{
|
|
backgroundColor:"#36BBAD",
|
|
backgroundColor:"#36BBAD",
|
|
color:"white"
|
|
color:"white"
|
|
},
|
|
},
|
|
text:{
|
|
text:{
|
|
- fontSize:16,
|
|
|
|
|
|
+ fontSize:14,
|
|
letterSpacing: 0,
|
|
letterSpacing: 0,
|
|
color: '#D9D9D9',
|
|
color: '#D9D9D9',
|
|
opacity: 1,
|
|
opacity: 1,
|
|
},
|
|
},
|
|
|
|
+ selectedText: {
|
|
|
|
+ color: "#FFFFFF"
|
|
|
|
+ },
|
|
page:{
|
|
page:{
|
|
-
|
|
|
|
-
|
|
|
|
borderRightWidth:"1px",
|
|
borderRightWidth:"1px",
|
|
borderColor:"#B4b4b4",
|
|
borderColor:"#B4b4b4",
|
|
-
|
|
|
|
- backgroundColor:"#FFFFFF",
|
|
|
|
|
|
+ backgroundColor:"#F8F8F8",
|
|
cursor:'pointer',
|
|
cursor:'pointer',
|
|
textAlign:"center",
|
|
textAlign:"center",
|
|
overflow:'hidden',
|
|
overflow:'hidden',
|
|
@@ -256,7 +255,7 @@ const PageButtons = StyleSheet.create({
|
|
},
|
|
},
|
|
addNew:{
|
|
addNew:{
|
|
|
|
|
|
- textcolor:"white",
|
|
|
|
|
|
+ color:"white",
|
|
backgroundColor:"#D6D6D6",
|
|
backgroundColor:"#D6D6D6",
|
|
cursor:'pointer',
|
|
cursor:'pointer',
|
|
width:160,
|
|
width:160,
|
|
@@ -271,7 +270,7 @@ const PageButtons = StyleSheet.create({
|
|
},
|
|
},
|
|
|
|
|
|
addNewText:{
|
|
addNewText:{
|
|
- fontSize:16,
|
|
|
|
|
|
+ fontSize:14,
|
|
letterSpacing: 0,
|
|
letterSpacing: 0,
|
|
color: 'white',
|
|
color: 'white',
|
|
opacity: 1,
|
|
opacity: 1,
|