forked from Ivasoft/mattermost-mobile
[Gekidou] Add empty unreads placeholder (#6350)
* Add empty unreads placeholder * ux feedback * Use SidebarText witn 0.12 opacity as the button bg color * Set tertiary button helper to use theme.sidebarText color
This commit is contained in:
@@ -241,16 +241,16 @@ export const buttonBackgroundStyle = (
|
||||
},
|
||||
inverted: {
|
||||
default: {
|
||||
backgroundColor: changeOpacity('#FFFFFF', 0.12),
|
||||
backgroundColor: changeOpacity(theme.sidebarText, 0.12),
|
||||
},
|
||||
hover: {
|
||||
backgroundColor: changeOpacity('#FFFFFF', 0.16),
|
||||
backgroundColor: changeOpacity(theme.sidebarText, 0.16),
|
||||
},
|
||||
active: {
|
||||
backgroundColor: changeOpacity('#FFFFFF', 0.24),
|
||||
backgroundColor: changeOpacity(theme.sidebarText, 0.24),
|
||||
},
|
||||
focus: {
|
||||
backgroundColor: changeOpacity('#FFFFFF', 0.08),
|
||||
backgroundColor: changeOpacity(theme.sidebarText, 0.08),
|
||||
borderColor: theme.sidebarTextActiveBorder, // @to-do; needs 32% white?
|
||||
borderWidth: 2,
|
||||
},
|
||||
@@ -388,6 +388,10 @@ export const buttonTextStyle = (
|
||||
color = theme.buttonBg;
|
||||
}
|
||||
|
||||
if (type === 'inverted' && emphasis === 'tertiary') {
|
||||
color = theme.sidebarText;
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
main: {
|
||||
fontFamily: 'OpenSans-SemiBold',
|
||||
|
||||
Reference in New Issue
Block a user