Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes inline keyword from styling functions #60

Merged
merged 1 commit into from
Jun 25, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/Styles.fs
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ let [<Literal>] titleFontSize = 17.
let [<Literal>] borderRadius = 4.


let inline renderText fontSize =
let renderText fontSize =
TextProperties.Style [
TextStyle.Color textColor
TextStyle.TextAlign TextAlignment.Center
FlexStyle.Margin 3.
TextStyle.FontSize fontSize
]

let inline defaultText<'a> = renderText fontSizeBase
let inline mediumText<'a> = renderText mediumFontSize
let inline smallText<'a> = renderText smallFontSize
let inline titleText<'a> = renderText titleFontSize
let defaultText<'a> = renderText fontSizeBase
let mediumText<'a> = renderText mediumFontSize
let smallText<'a> = renderText smallFontSize
let titleText<'a> = renderText titleFontSize

let inline whitespace<'a> = text [ smallText ] ""
let whitespace<'a> = text [ smallText ] ""

let inline sceneBackground<'a> =
let sceneBackground<'a> =
ViewProperties.Style [
FlexStyle.AlignSelf Alignment.Stretch
FlexStyle.Padding 20.
Expand All @@ -56,7 +56,7 @@ let inline sceneBackground<'a> =
ViewStyle.BackgroundColor backgroundColor
]

let inline viewPagerBackground<'a> =
let viewPagerBackground<'a> =
ViewPagerAndroidProperties.Style [
FlexStyle.AlignSelf Alignment.Stretch
FlexStyle.Padding 20.
Expand All @@ -68,7 +68,7 @@ let inline viewPagerBackground<'a> =
ViewStyle.BackgroundColor backgroundColor
]

let inline button label onPress =
let button label onPress =
button [
ButtonProperties.Title label
ButtonProperties.OnPress onPress
Expand Down