motion-form 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f2148d8f02ba7ad77a2b2f268a3eae119193625
4
- data.tar.gz: 3051d088e431e7b8dc89a1af6cba627cfa7b29a3
3
+ metadata.gz: 1b141a0c1221917873375d4716fb35c2ae7e7c26
4
+ data.tar.gz: 1898b6adb9b7b10489a14bda250b75014dcc10ae
5
5
  SHA512:
6
- metadata.gz: 456675c8d4b05bc009f91031a82a9979cd2d0ff85fb9e950d5f155d1db4818b3bed1d8cb474215ba71cbf18d81e9d34084b4c18edbb1198e9c3d65a71998de4b
7
- data.tar.gz: 4436a75ae574dc5939f319cfed6441fc21b6946d06e3f6a57e71d96187886c5cf27e737ccd13980dfec9b838adbf05be6f7de00a14516f5db05f89e634703ad1
6
+ metadata.gz: ced57a9c562879038d87cbc66348444189b43b8413b1bca33618baca5dad43b60b64c5a5958fa76c1d47d593815d359d1069d59202fc1901bc75acd4bfe8d43c
7
+ data.tar.gz: 41c424c5cb5b7e3af7be915b1c2f3f88f5c1ad669d82da11e1f89b423a6c7f2890ae042df18dc24d68bed8967c59c9640c42066fb64edb9c4853fb6519da1913
@@ -3,7 +3,11 @@ motion_require './cells/text_field_cell'
3
3
 
4
4
  module MotionForm
5
5
  class << self
6
- attr_writer :icon_font, :section_header_color, :section_header_text_color, :button_text_color
6
+ attr_writer :icon_font,
7
+ :section_header_color,
8
+ :section_header_text_color,
9
+ :section_header_font,
10
+ :button_text_color
7
11
 
8
12
  def config
9
13
  yield self
@@ -40,6 +44,10 @@ module MotionForm
40
44
  [TextFieldCell, ButtonCell]
41
45
  end
42
46
 
47
+ def section_header_font
48
+ @section_header_font || UIFont.fontWithName('HelveticaNeue-Bold', size: 14.0)
49
+ end
50
+
43
51
  def icon_font
44
52
  @icon_font || UIFont.fontWithName('dscovr', size: 14.0)
45
53
  end
@@ -15,7 +15,7 @@ class SectionHeaderView < UIView
15
15
  @section_title ||= PaddedLabel.alloc.initWithFrame(bounds).tap do |label|
16
16
  label.adjustsFontSizeToFitWidth = true
17
17
  label.backgroundColor = MotionForm.section_header_color
18
- label.font = UIFont.fontWithName('Helvetica Neue', size: 20.0)
18
+ label.font = MotionForm.section_header_font
19
19
  label.padding = 10
20
20
  label.textColor = MotionForm.section_header_text_color
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devon Blandin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-15 00:00:00.000000000 Z
11
+ date: 2013-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: motion-keyboard-avoiding