Skip to content

Commit

Permalink
Merge pull request #99 from mendix/develop
Browse files Browse the repository at this point in the history
Merge develop into release
  • Loading branch information
wegiswes committed Oct 21, 2020
2 parents 64b249f + 1462f73 commit a46816e
Show file tree
Hide file tree
Showing 22 changed files with 543 additions and 321 deletions.
4 changes: 3 additions & 1 deletion index-rtl.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

{{themecss}}
{{appicons}}

{{manifest}}
{{startupimages}}

</head>
<body dir="rtl">
<div id="content"></div>
Expand Down
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

{{themecss}}
{{appicons}}

<!-- STARTUP IMAGES -->
<!-- <link href="resources/ios/startup/apple-touch-startup-image-1496x2048.png" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image"> -->
{{manifest}}
{{startupimages}}

</head>
<body dir="ltr">
Expand Down
3 changes: 3 additions & 0 deletions login-with-sso.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<meta name="apple-mobile-web-app-capable" content="yes" />

{{themecss}}
{{appicons}}
{{manifest}}
{{startupimages}}

</head>

Expand Down
4 changes: 4 additions & 0 deletions login.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<meta name="apple-mobile-web-app-capable" content="yes" />

{{themecss}}
{{appicons}}
{{manifest}}
{{startupimages}}

</head>

<body>
Expand Down
3 changes: 3 additions & 0 deletions manifest-overrides.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"background_color": "#FFFFFF"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"react-native-device-info": "^5.5.3"
},
"dependencies": {}
}
}
74 changes: 42 additions & 32 deletions styles/native/js/app/custom-variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@ export const input = {
labelColorDisabled: font.labelColorDisabled,
borderColor: contrast.lower,
backgroundColor: background.primary,
backgroundColorDisabled: background.secondary,
backgroundColorDisabled: contrast.lowest,
selectionColor: contrast.lower,
placeholderTextColor: contrast.regular,
underlineColorAndroid: "transparent",
inputContainerUnderlayColor: `rgba(${anyColorToRgbString(contrast.low)},0.4)`,
// Sizes
fontSize: font.size,
fontFamily: font.family,
Expand Down Expand Up @@ -201,6 +202,34 @@ export const navigation = {
},
};
//
// Badge Styles
export const badge = {
fontWeight: font.weightBold,
borderRadius: 30,
paddingVertical: 3,
paddingHorizontal: spacing.smaller,
default: {
color: contrast.higher,
backgroundColor: contrast.lower,
},
primary: {
color: brand.primary,
backgroundColor: brand.primaryLight,
},
success: {
color: brand.success,
backgroundColor: brand.successLight,
},
warning: {
color: brand.warning,
backgroundColor: brand.warningLight,
},
danger: {
color: brand.danger,
backgroundColor: brand.dangerLight,
},
};
//
// Tabcontainer Styles
export const tabContainer = {
tabBar: {
Expand All @@ -221,6 +250,18 @@ export const tabContainer = {
fontWeight: font.weightBold,
textTransform: "uppercase",
},
badgeContainer: {
borderRadius: badge.borderRadius,
backgroundColor: badge.default.backgroundColor,
paddingVertical: badge.paddingVertical,
paddingHorizontal: badge.paddingHorizontal,
marginLeft: 8
},
badgeCaption: {
fontSize: font.size,
color: badge.default.color,
fontWeight: badge.fontWeight,
}
};
//
// ListView Styles
Expand All @@ -235,34 +276,3 @@ export const listView = {
export const layoutGrid = {
gutterSize: 15,
};
//
//
//== Pluggable Widgets
//-------------------------------------------------------------------------------------------------------------------//
// Badge Styles
export const badge = {
fontWeight: font.weightBold,
borderRadius: 30,
paddingVertical: 3,
paddingHorizontal: spacing.smaller,
default: {
color: contrast.higher,
backgroundColor: contrast.lower,
},
primary: {
color: brand.primary,
backgroundColor: brand.primaryLight,
},
success: {
color: brand.success,
backgroundColor: brand.successLight,
},
warning: {
color: brand.warning,
backgroundColor: brand.warningLight,
},
danger: {
color: brand.danger,
backgroundColor: brand.dangerLight,
},
};
73 changes: 42 additions & 31 deletions styles/native/js/core/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ let input = {
selectionColor: contrast.lower,
placeholderTextColor: contrast.regular,
underlineColorAndroid: "transparent",
inputContainerUnderlayColor: `rgba(${anyColorToRgbString(contrast.low)},0.4)`,
// Sizes
fontSize: font.size,
fontFamily: font.family,
Expand Down Expand Up @@ -203,6 +204,35 @@ let navigation = {
};
navigation = merge(navigation, custom.navigation || {});
//
// Badge Styles
let badge = {
fontWeight: font.weightBold,
borderRadius: 30,
paddingVertical: 3,
paddingHorizontal: spacing.smaller,
default: {
color: contrast.higher,
backgroundColor: contrast.lower,
},
primary: {
color: brand.primary,
backgroundColor: brand.primaryLight,
},
success: {
color: brand.success,
backgroundColor: brand.successLight,
},
warning: {
color: brand.warning,
backgroundColor: brand.warningLight,
},
danger: {
color: brand.danger,
backgroundColor: brand.dangerLight,
},
};
badge = merge(badge, custom.badge || {});
//
// Tabcontainer Styles
let tabContainer = {
tabBar: {
Expand All @@ -223,6 +253,18 @@ let tabContainer = {
fontWeight: font.weightBold,
textTransform: "uppercase",
},
badgeContainer: {
borderRadius: badge.borderRadius,
backgroundColor: badge.default.backgroundColor,
paddingVertical: badge.paddingVertical,
paddingHorizontal: badge.paddingHorizontal,
marginLeft: 8
},
badgeCaption: {
fontSize: font.size,
color: badge.default.color,
fontWeight: badge.fontWeight,
}
};
tabContainer = merge(tabContainer, custom.tabContainer || {});
//
Expand All @@ -241,35 +283,4 @@ let layoutGrid = {
};
layoutGrid = merge(layoutGrid, custom.layoutGrid || {});
//
//## Pluggable Widgets
//-------------------------------------------------------------------------------------------------------------------//
// Badge Styles
let badge = {
fontWeight: font.weightBold,
borderRadius: 30,
paddingVertical: 3,
paddingHorizontal: spacing.smaller,
default: {
color: contrast.higher,
backgroundColor: contrast.lower,
},
primary: {
color: brand.primary,
backgroundColor: brand.primaryLight,
},
success: {
color: brand.success,
backgroundColor: brand.successLight,
},
warning: {
color: brand.warning,
backgroundColor: brand.warningLight,
},
danger: {
color: brand.danger,
backgroundColor: brand.dangerLight,
},
};
badge = merge(badge, custom.badge || {});
//
export { brand, background, border, contrast, font, spacing, button, input, navigation, tabContainer, listView, layoutGrid, badge, };
6 changes: 4 additions & 2 deletions styles/native/js/core/widgets/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const DropDown = {
},
/* New dropdown styles start */
valueContainer: {
// All ViewStyle properties & rippleColor are allowed
// All ViewStyle properties & rippleColor & activeOpacity & underlayColor are allowed
},
valueContainerDisabled: {
// All ViewStyle properties are allowed
Expand All @@ -64,13 +64,15 @@ export const DropDown = {
shadowOpacity: 0.2,
shadowRadius: 10,
elevation: 16,
backgroundColor: input.backgroundColor,
},
itemContainer: {
// All ViewStyle properties are allowed
// All ViewStyle properties & rippleColor & activeOpacity & underlayColor are allowed
maxWidth: 500,
paddingVertical: 6,
paddingHorizontal: 16,
backgroundColor: input.backgroundColor,
underlayColor: input.inputContainerUnderlayColor,
},
item: {
// All TextStlye properties are allowed
Expand Down
Loading

0 comments on commit a46816e

Please sign in to comment.