motion-prime/styles/form.rb in motion-prime-0.8.9 vs motion-prime/styles/form.rb in motion-prime-0.8.10
- old
+ new
@@ -23,28 +23,32 @@
text_color: :gray,
top: 15,
height: 16,
left: 20,
right: 20,
- font: proc { :app_base.uifont(12) },
+ font_name: :app_base,
+ font_size: 12,
size_to_fit: true
style :field_error_message, mixins: [:multiline],
top: nil,
bottom: 0,
left: 20,
right: 20,
text_color: :app_error,
- font: proc { :app_base.uifont(12) }
+ font_name: :app_base,
+ font_size: 12
style :string_field_input, :password_field_input, :text_field_input,
layer: {
border_width: 1,
border_color: :gray
},
- font: proc { :app_base.uifont(16) },
- placeholder_font: proc { :app_base.uifont(16) },
+ font_name: :app_base,
+ font_size: 16,
+ placeholder_font_name: :app_base,
+ placeholder_font_size: 16,
background_color: :white,
left: 20,
right: 20,
top: 30,
height: 30
@@ -67,11 +71,12 @@
border_color: :gray,
border_width: 1
},
title_color: :gray,
title_label: {
- font: proc {:app_base.uifont(16) }
+ font_name: :app_base,
+ font_size: 16
}
style :select_field_arrow,
image: "images/forms/select_arrow.png",
top: 40,
@@ -84,14 +89,16 @@
right: 20,
width: 51
style :switch_field_label,
top: 10,
- font: proc { :app_base.uifont(16) }
+ font_name: :app_base,
+ font_size: 16
style :switch_field_hint,
top: 40,
- font: proc { :app_base.uifont(12) }
+ font_name: :app_base,
+ font_size: 12
style :field_input_with_errors,
layer: {
border_color: :app_error
},