统一导航栏按钮颜色

This commit is contained in:
mx1700 2019-08-25 20:39:12 +08:00
parent e65a3a9cf7
commit 729d5405dc
7 changed files with 5 additions and 14 deletions

View file

@ -184,8 +184,6 @@ export default class DiaryDetailPage extends Component {
rightButtons: [{
id: 'navButtonMore',
icon: Icon.navButtonMore,
color: Color.primary // android
}]
}
});

View file

@ -28,8 +28,6 @@ export default class FollowPage extends Component {
rightButtons: [{
id: 'followIcon',
icon: Icon.navButtonUserList,
color: Color.primary // android
}]
},
statusBar: {

View file

@ -26,8 +26,6 @@ export default class NotebookDetailPage extends Component {
topBar.rightButtons = [{
id: 'navButtonNotebookSetting',
icon: Icon.navButtonNotebookSetting,
color: Color.primary
}];
}

View file

@ -28,8 +28,6 @@ export default class NotificationPage extends Component {
rightButtons: [{
id: 'history',
icon: Icon.navButtonTime,
color: Color.primary // android
}]
},
statusBar: {

View file

@ -28,7 +28,6 @@ export default class TopicPage extends Component {
rightButtons: [{
id: 'write',
icon: Icon.navButtonWrite,
color: Color.primary
}]
},
statusBar: {

View file

@ -49,7 +49,7 @@ export default class UserPage extends Component {
},
rightButtons: [{
id: 'followIcon',
icon: Icon.followIcon
icon: Icon.navButtonFollow
}]
},
statusBar: {
@ -66,8 +66,6 @@ export default class UserPage extends Component {
rightButtons: [{
id: 'setting',
icon: Icon.navButtonSetting,
color: Color.primary
}]
},
statusBar: {
@ -103,7 +101,7 @@ export default class UserPage extends Component {
topBar: {
rightButtons: [{
id: 'followIcon',
icon: Icon.followIcon
icon: Icon.navButtonFollow
}]
}
});

View file

@ -1,5 +1,7 @@
import Ionicons from "react-native-vector-icons/Ionicons";
import {Platform} from "react-native";
import Color from '../style/color';
let Icon = {
homeIcon : null,
@ -35,7 +37,7 @@ let Icon = {
};
const outline = Platform.OS === 'ios' ? '-outline' : '';
const iconColor = '#333333';
const iconColor = Platform.OS === 'ios' ? Color.primary : '#333333';
async function loadIcon() {