motion-prime 0.8.9 → 0.8.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/files/Gemfile +1 -1
- data/motion-prime/styles/base.rb +4 -3
- data/motion-prime/styles/form.rb +14 -7
- data/motion-prime/version.rb +1 -1
- data/motion-prime/views/styles.rb +1 -0
- data/motion-prime/views/view_styler.rb +16 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGJiNzlkZDEwMDg5OTE0MmRmYTE5OTdhNTYxNzE1NTI5NjJiNzNiMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmVlMzZmYmYwZWY2Y2Y1ZjMwYWQ1ODMyMDUzNDk2ZDQ1MDE3OGJhOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGM2N2VhZmIyMGFmYTQ1MjJkZjdlZjc0NTkwYWViMTkzNjYxMzc0YjVkZTQ3
|
10
|
+
YjdjNDE0MGVhNmZkYzhhZTA3NWYwOGMzYTdmN2ExZWU0MjhhMWZjOWMzNTAy
|
11
|
+
ZTQxY2QwMGQ5YjQxYjQ3OTIwN2UzZDBlN2JkYTIwMGUyMDQzMmU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2E0ZTZjMzBkMDZiMTRjZTE5NTM4MjFkZmZhN2Y3YTRiY2U0ZTZjMjZlOTE0
|
14
|
+
OGM3ZTdkOWU2YjFhZDU1OGJiMmU1MGFiMmQyMDJiZmY2ZmU1MzFkYWUyYjU3
|
15
|
+
YWFiZDYxMTk0MWFhNjI0NTA1ZjUzMmY1ZGZmN2QyZGZhMmFiYzQ=
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/files/Gemfile
CHANGED
data/motion-prime/styles/base.rb
CHANGED
@@ -49,12 +49,13 @@ MotionPrime::Styles.define :base do
|
|
49
49
|
style :spinner,
|
50
50
|
annular: true,
|
51
51
|
center: proc { screen.view.center }, width: 37, height: 37,
|
52
|
-
progress_tint_color:
|
53
|
-
background_tint_color:
|
52
|
+
progress_tint_color: :app_base.uicolor,
|
53
|
+
background_tint_color: :black.uicolor(0.05),
|
54
54
|
progress: 0.25
|
55
55
|
|
56
56
|
style :spinner_message, mixins: [:multiline],
|
57
57
|
top: proc { screen.view.center.y + 38 }, left: 50, width: 220, text_alignment: :center,
|
58
|
-
|
58
|
+
font_name: :app_base,
|
59
|
+
font_size: 18,
|
59
60
|
line_spacing: 6
|
60
61
|
end
|
data/motion-prime/styles/form.rb
CHANGED
@@ -25,7 +25,8 @@ MotionPrime::Styles.define :base_form do
|
|
25
25
|
height: 16,
|
26
26
|
left: 20,
|
27
27
|
right: 20,
|
28
|
-
|
28
|
+
font_name: :app_base,
|
29
|
+
font_size: 12,
|
29
30
|
size_to_fit: true
|
30
31
|
|
31
32
|
style :field_error_message, mixins: [:multiline],
|
@@ -34,15 +35,18 @@ MotionPrime::Styles.define :base_form do
|
|
34
35
|
left: 20,
|
35
36
|
right: 20,
|
36
37
|
text_color: :app_error,
|
37
|
-
|
38
|
+
font_name: :app_base,
|
39
|
+
font_size: 12
|
38
40
|
|
39
41
|
style :string_field_input, :password_field_input, :text_field_input,
|
40
42
|
layer: {
|
41
43
|
border_width: 1,
|
42
44
|
border_color: :gray
|
43
45
|
},
|
44
|
-
|
45
|
-
|
46
|
+
font_name: :app_base,
|
47
|
+
font_size: 16,
|
48
|
+
placeholder_font_name: :app_base,
|
49
|
+
placeholder_font_size: 16,
|
46
50
|
background_color: :white,
|
47
51
|
left: 20,
|
48
52
|
right: 20,
|
@@ -69,7 +73,8 @@ MotionPrime::Styles.define :base_form do
|
|
69
73
|
},
|
70
74
|
title_color: :gray,
|
71
75
|
title_label: {
|
72
|
-
|
76
|
+
font_name: :app_base,
|
77
|
+
font_size: 16
|
73
78
|
}
|
74
79
|
|
75
80
|
style :select_field_arrow,
|
@@ -86,11 +91,13 @@ MotionPrime::Styles.define :base_form do
|
|
86
91
|
|
87
92
|
style :switch_field_label,
|
88
93
|
top: 10,
|
89
|
-
|
94
|
+
font_name: :app_base,
|
95
|
+
font_size: 16
|
90
96
|
|
91
97
|
style :switch_field_hint,
|
92
98
|
top: 40,
|
93
|
-
|
99
|
+
font_name: :app_base,
|
100
|
+
font_size: 12
|
94
101
|
|
95
102
|
style :field_input_with_errors,
|
96
103
|
layer: {
|
data/motion-prime/version.rb
CHANGED
@@ -52,7 +52,22 @@ module MotionPrime
|
|
52
52
|
options[:attributed_text] = html ? html_string(text_options) : attributed_string(text_options)
|
53
53
|
|
54
54
|
# ios 7 bug fix when text is invisible
|
55
|
-
|
55
|
+
if text_options.slice(:line_height, :line_spacing, :text_alignment, :line_break_mode).any? && options.fetch(:number_of_lines, 1) == 1
|
56
|
+
options[:number_of_lines] = 0
|
57
|
+
end
|
58
|
+
end
|
59
|
+
extract_font_options(options)
|
60
|
+
extract_font_options(options, 'placeholder')
|
61
|
+
end
|
62
|
+
|
63
|
+
def extract_font_options(options, prefix = nil)
|
64
|
+
key = [prefix, 'font'].compact.join('_').to_sym
|
65
|
+
name_key = [prefix, 'font_name'].compact.join('_').to_sym
|
66
|
+
size_key = [prefix, 'font_size'].compact.join('_').to_sym
|
67
|
+
if options.slice(size_key, name_key).any?
|
68
|
+
font_name = options.delete(name_key) || :system
|
69
|
+
font_size = options.delete(size_key) || 14
|
70
|
+
options[key] ||= font_name.uifont(font_size)
|
56
71
|
end
|
57
72
|
end
|
58
73
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-prime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iskander Haziev
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|