|
|
|
@ -6,7 +6,7 @@ import { BoxModel, ColorPalette, createStyleSheet } from '../../base/styles'; |
|
|
|
|
* @type {Object} |
|
|
|
|
*/ |
|
|
|
|
const button = { |
|
|
|
|
borderRadius: 35, |
|
|
|
|
borderRadius: 30, |
|
|
|
|
borderWidth: 0, |
|
|
|
|
flex: 0, |
|
|
|
|
flexDirection: 'row', |
|
|
|
@ -16,6 +16,22 @@ const button = { |
|
|
|
|
width: 60 |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Small toolbar button. |
|
|
|
|
* |
|
|
|
|
* @type {{borderRadius: number, flex: number, flexDirection: string, |
|
|
|
|
* height: number, justifyContent: string, margin: number, width: number}} |
|
|
|
|
*/ |
|
|
|
|
const smallButton = { |
|
|
|
|
borderRadius: 15, |
|
|
|
|
flex: 0, |
|
|
|
|
flexDirection: 'column', |
|
|
|
|
height: 30, |
|
|
|
|
justifyContent: 'center', |
|
|
|
|
margin: BoxModel.margin / 2, |
|
|
|
|
width: 30 |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The base style for icons. |
|
|
|
|
* |
|
|
|
@ -27,6 +43,16 @@ const icon = { |
|
|
|
|
fontSize: 24 |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Small toolbar button icon. |
|
|
|
|
* |
|
|
|
|
* @type {{fontSize: number}} |
|
|
|
|
*/ |
|
|
|
|
const smallIcon = { |
|
|
|
|
...icon, |
|
|
|
|
fontSize: 16 |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The base style for toolbars. |
|
|
|
|
* |
|
|
|
@ -65,7 +91,7 @@ export const styles = createStyleSheet({ |
|
|
|
|
primaryToolbarButton: { |
|
|
|
|
...button, |
|
|
|
|
backgroundColor: ColorPalette.white, |
|
|
|
|
opacity: 0.8 |
|
|
|
|
opacity: 0.7 |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -76,16 +102,17 @@ export const styles = createStyleSheet({ |
|
|
|
|
...toolbar, |
|
|
|
|
bottom: 0, |
|
|
|
|
flexDirection: 'column', |
|
|
|
|
right: 0, |
|
|
|
|
top: 0 |
|
|
|
|
right: BoxModel.margin, |
|
|
|
|
top: BoxModel.margin * 2 |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The style of button in secondaryToolbar. |
|
|
|
|
*/ |
|
|
|
|
secondaryToolbarButton: { |
|
|
|
|
...button, |
|
|
|
|
backgroundColor: 'transparent' |
|
|
|
|
...smallButton, |
|
|
|
|
backgroundColor: ColorPalette.darkGrey, |
|
|
|
|
opacity: 0.7 |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -105,5 +132,13 @@ export const styles = createStyleSheet({ |
|
|
|
|
whiteIcon: { |
|
|
|
|
...icon, |
|
|
|
|
color: ColorPalette.white |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The secondary toolbar icon style. |
|
|
|
|
*/ |
|
|
|
|
secondaryToolbarIcon: { |
|
|
|
|
...smallIcon, |
|
|
|
|
color: ColorPalette.white |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|