summaryrefslogtreecommitdiffhomepage
path: root/app/components/styled/AppButtonStyles.android.js
diff options
context:
space:
mode:
authoranderklander <anderklander@gmail.com>2018-04-11 13:10:37 +0200
committeranderklander <anderklander@gmail.com>2018-04-11 13:45:43 +0200
commit0752afe7f1aa9d91384bc47f49c034503ccfd4ec (patch)
treeb89b4846b403619617659c51955006719a7928ef /app/components/styled/AppButtonStyles.android.js
parent2611996ba1a7ba2d4afdc5c76c96db6152847e74 (diff)
downloadmullvadvpn-0752afe7f1aa9d91384bc47f49c034503ccfd4ec.tar.xz
mullvadvpn-0752afe7f1aa9d91384bc47f49c034503ccfd4ec.zip
New AppButton differentiation and blur fix
Diffstat (limited to 'app/components/styled/AppButtonStyles.android.js')
-rw-r--r--app/components/styled/AppButtonStyles.android.js80
1 files changed, 80 insertions, 0 deletions
diff --git a/app/components/styled/AppButtonStyles.android.js b/app/components/styled/AppButtonStyles.android.js
new file mode 100644
index 0000000000..847949edba
--- /dev/null
+++ b/app/components/styled/AppButtonStyles.android.js
@@ -0,0 +1,80 @@
+import { colors } from '../../config';
+
+import { createViewStyles, createTextStyles } from '../../lib/styles';
+
+export default {
+ ...createViewStyles({
+ red:{
+ backgroundColor: colors.red95,
+ },
+ redHover: {
+ backgroundColor: colors.red,
+ },
+ green:{
+ backgroundColor: colors.green,
+ },
+ greenHover:{
+ backgroundColor: colors.green90,
+ },
+ blue:{
+ backgroundColor: colors.blue80,
+ },
+ blueHover:{
+ backgroundColor: colors.blue60,
+ },
+ transparent:{
+ backgroundColor: colors.white20,
+ },
+ transparentHover:{
+ backgroundColor: colors.white40,
+ },
+ redTransparent:{
+ backgroundColor: colors.red40,
+ },
+ redTransparentHover:{
+ backgroundColor: colors.red45,
+ },
+ white80:{
+ color: colors.white80,
+ },
+ white: {
+ color: colors.white,
+ },
+ icon:{
+ position: 'absolute',
+ alignSelf: 'flex-end',
+ right: 8,
+ marginLeft: 8,
+ },
+ iconTransparent:{
+ position: 'absolute',
+ alignSelf: 'flex-end',
+ right: 42,
+ },
+ common:{
+ paddingTop: 9,
+ paddingLeft: 9,
+ paddingRight: 9,
+ paddingBottom: 9,
+ marginTop: 8,
+ marginBottom: 8,
+ marginLeft: 24,
+ marginRight: 24,
+ borderRadius: 4,
+ flex: 1,
+ flexDirection: 'column',
+ alignContent: 'center',
+ justifyContent: 'center',
+ },
+ }),
+ ...createTextStyles({
+ label:{
+ alignSelf: 'center',
+ fontFamily: 'DINPro',
+ fontSize: 20,
+ fontWeight: '900',
+ lineHeight: 26,
+ flex: 1,
+ },
+ }),
+}; \ No newline at end of file