motion-prime/styles/form.rb in motion-prime-0.7.2 vs motion-prime/styles/form.rb in motion-prime-0.8.0

- old
+ new

@@ -29,11 +29,11 @@ text_color: :gray, top: 15, height: 16, left: 0, right: 0, - font: proc { MotionPrime::Config.font.name.uifont(12) }, + font: proc { :app_base.uifont(12) }, size_to_fit: true style :field_error_message, top: nil, bottom: 0, @@ -41,11 +41,11 @@ left: 0, line_break_mode: :word_wrap, number_of_lines: 0, size_to_fit: true, text_color: :app_error, - font: proc { MotionPrime::Config.font.name.uifont(12) } + font: proc { :app_base.uifont(12) } # available options for input: # @layer: @border_width: FLOAT # @layer: @border_color: COLOR # @background_color: COLOR @@ -53,12 +53,12 @@ style :field_text_field, :field_text_view, layer: { border_width: 1, border_color: :gray }, - font: proc { MotionPrime::Config.font.name.uifont(16) }, - placeholder_font: proc { MotionPrime::Config.font.name.uifont(16) }, + font: proc { :app_base.uifont(16) }, + placeholder_font: proc { :app_base.uifont(16) }, background_color: :white, left: 0, right: 0, top: 30, bottom: 0 @@ -75,11 +75,11 @@ border_color: :gray, border_width: 1 }, title_color: :gray, title_label: { - font: proc { MotionPrime::Config.font.name.uifont(16) } + font: proc {:app_base.uifont(16) } } style :select_field_image, image: "images/forms/select_arrow.png", top: 40, @@ -119,11 +119,11 @@ right: 0, width: 51 style :switch_field_label, top: 10, - font: proc { MotionPrime::Config.font.name.uifont(16) } + font: proc { :app_base.uifont(16) } style :switch_field_hint, top: 40, - font: proc { MotionPrime::Config.font.name.uifont(12) } + font: proc { :app_base.uifont(12) } end \ No newline at end of file