mirror of
https://github.com/timepill/timepill-app.git
synced 2025-04-30 09:59:31 +08:00
统一导航栏按钮颜色
This commit is contained in:
parent
e65a3a9cf7
commit
729d5405dc
7 changed files with 5 additions and 14 deletions
|
@ -184,8 +184,6 @@ export default class DiaryDetailPage extends Component {
|
||||||
rightButtons: [{
|
rightButtons: [{
|
||||||
id: 'navButtonMore',
|
id: 'navButtonMore',
|
||||||
icon: Icon.navButtonMore,
|
icon: Icon.navButtonMore,
|
||||||
|
|
||||||
color: Color.primary // android
|
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,8 +28,6 @@ export default class FollowPage extends Component {
|
||||||
rightButtons: [{
|
rightButtons: [{
|
||||||
id: 'followIcon',
|
id: 'followIcon',
|
||||||
icon: Icon.navButtonUserList,
|
icon: Icon.navButtonUserList,
|
||||||
|
|
||||||
color: Color.primary // android
|
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
statusBar: {
|
statusBar: {
|
||||||
|
|
|
@ -26,8 +26,6 @@ export default class NotebookDetailPage extends Component {
|
||||||
topBar.rightButtons = [{
|
topBar.rightButtons = [{
|
||||||
id: 'navButtonNotebookSetting',
|
id: 'navButtonNotebookSetting',
|
||||||
icon: Icon.navButtonNotebookSetting,
|
icon: Icon.navButtonNotebookSetting,
|
||||||
|
|
||||||
color: Color.primary
|
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,6 @@ export default class NotificationPage extends Component {
|
||||||
rightButtons: [{
|
rightButtons: [{
|
||||||
id: 'history',
|
id: 'history',
|
||||||
icon: Icon.navButtonTime,
|
icon: Icon.navButtonTime,
|
||||||
|
|
||||||
color: Color.primary // android
|
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
statusBar: {
|
statusBar: {
|
||||||
|
|
|
@ -28,7 +28,6 @@ export default class TopicPage extends Component {
|
||||||
rightButtons: [{
|
rightButtons: [{
|
||||||
id: 'write',
|
id: 'write',
|
||||||
icon: Icon.navButtonWrite,
|
icon: Icon.navButtonWrite,
|
||||||
color: Color.primary
|
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
statusBar: {
|
statusBar: {
|
||||||
|
|
|
@ -49,7 +49,7 @@ export default class UserPage extends Component {
|
||||||
},
|
},
|
||||||
rightButtons: [{
|
rightButtons: [{
|
||||||
id: 'followIcon',
|
id: 'followIcon',
|
||||||
icon: Icon.followIcon
|
icon: Icon.navButtonFollow
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
statusBar: {
|
statusBar: {
|
||||||
|
@ -66,8 +66,6 @@ export default class UserPage extends Component {
|
||||||
rightButtons: [{
|
rightButtons: [{
|
||||||
id: 'setting',
|
id: 'setting',
|
||||||
icon: Icon.navButtonSetting,
|
icon: Icon.navButtonSetting,
|
||||||
|
|
||||||
color: Color.primary
|
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
statusBar: {
|
statusBar: {
|
||||||
|
@ -103,7 +101,7 @@ export default class UserPage extends Component {
|
||||||
topBar: {
|
topBar: {
|
||||||
rightButtons: [{
|
rightButtons: [{
|
||||||
id: 'followIcon',
|
id: 'followIcon',
|
||||||
icon: Icon.followIcon
|
icon: Icon.navButtonFollow
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
import Ionicons from "react-native-vector-icons/Ionicons";
|
import Ionicons from "react-native-vector-icons/Ionicons";
|
||||||
import {Platform} from "react-native";
|
import {Platform} from "react-native";
|
||||||
|
import Color from '../style/color';
|
||||||
|
|
||||||
|
|
||||||
let Icon = {
|
let Icon = {
|
||||||
homeIcon : null,
|
homeIcon : null,
|
||||||
|
@ -35,7 +37,7 @@ let Icon = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const outline = Platform.OS === 'ios' ? '-outline' : '';
|
const outline = Platform.OS === 'ios' ? '-outline' : '';
|
||||||
const iconColor = '#333333';
|
const iconColor = Platform.OS === 'ios' ? Color.primary : '#333333';
|
||||||
|
|
||||||
async function loadIcon() {
|
async function loadIcon() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue