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 +4 -4
- data/lib/project/motion-form.rb +9 -1
- data/lib/project/views/section_header_view.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b141a0c1221917873375d4716fb35c2ae7e7c26
|
4
|
+
data.tar.gz: 1898b6adb9b7b10489a14bda250b75014dcc10ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ced57a9c562879038d87cbc66348444189b43b8413b1bca33618baca5dad43b60b64c5a5958fa76c1d47d593815d359d1069d59202fc1901bc75acd4bfe8d43c
|
7
|
+
data.tar.gz: 41c424c5cb5b7e3af7be915b1c2f3f88f5c1ad669d82da11e1f89b423a6c7f2890ae042df18dc24d68bed8967c59c9640c42066fb64edb9c4853fb6519da1913
|
data/lib/project/motion-form.rb
CHANGED
@@ -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,
|
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 =
|
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.
|
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-
|
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
|