isd-color-palette 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/isd-color-palette/view/isd_color_palette_collection_view_cell.rb +10 -5
- data/lib/resources/ISDColorPalette.storyboardc/DDB-9Z-aLd-view-cjl-ZX-JRH.nib +0 -0
- data/lib/resources/ISDColorPalette.storyboardc/ISDColorPaletteViewController.nib +0 -0
- data/lib/resources/ISDColorPalette.storyboardc/Info.plist +0 -0
- data/lib/resources/ISDColorPalette.storyboardc/Ojg-L0-U3y-view-RZ8-kV-96R.nib +0 -0
- data/lib/resources/ISDColorPalette.storyboardc/UIViewController-DDB-9Z-aLd.nib +0 -0
- data/lib/resources/ISDColorPalette.storyboardc/UIViewController-Ojg-L0-U3y.nib +0 -0
- data/lib/resources/ISDColorPalette.storyboardc/UIViewController-Yhi-Ks-PNF.nib +0 -0
- data/lib/resources/ISDColorPalette.storyboardc/UIViewController-lfU-qe-W46.nib +0 -0
- data/lib/resources/ISDColorPalette.storyboardc/Yhi-Ks-PNF-view-DbN-fh-FRU.nib +0 -0
- data/lib/resources/ISDColorPalette.storyboardc/ccp-rq-upX-view-Gjb-sR-XRJ.nib +0 -0
- metadata +9 -16
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e29e98522f3189531733f6f1d6d54ab388ed64ae
|
4
|
+
data.tar.gz: 862863f9c69cd89c505cbc54b957d626ec755871
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 039e5a24bc0e822e1b9a252353a7159628f9d1928a72f511ec7a3882b21691f5c96140c7cb5783c945f296fdaf5b9874c97b5eaa9590d6e2b4bceff3046357f7
|
7
|
+
data.tar.gz: f3e4b73a32c6333152c0b5e6944ede6fe8871566cecc91489a927201b730624dcee5bc22f178cf97b950e62d0728f4e04653caf76022ade1421a0ef349882bdc
|
@@ -24,19 +24,21 @@ class ISDColorPaletteCollectionViewCell < UICollectionViewCell
|
|
24
24
|
@border_color = :white.uicolor
|
25
25
|
@selected_border_color = :blue.uicolor
|
26
26
|
|
27
|
-
l =
|
27
|
+
l = CALayer.layer
|
28
28
|
l.borderColor = :clear.uicolor.cgcolor
|
29
29
|
l.borderWidth = 3
|
30
30
|
l.cornerRadius = 2
|
31
31
|
l.masksToBounds = true
|
32
32
|
l.frame = CGRectInset self.contentView.bounds, 3, 3
|
33
33
|
@color_layer = l
|
34
|
+
self.contentView.layer.addSublayer @color_layer
|
34
35
|
|
35
36
|
@solid_layer = CALayer.new
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
f = @color_layer.bounds
|
38
|
+
w = f.size.width
|
39
|
+
h = f.size.height
|
40
|
+
x = CGRectGetMaxX(f) - w / 2
|
41
|
+
y = CGRectGetMinY(f) - h / 2
|
40
42
|
@solid_layer.frame = CGRectMake(x, y, w, h)
|
41
43
|
rad = 45 * Math::PI / 180
|
42
44
|
@solid_layer.transform = CATransform3DMakeRotation(rad, 0, 0, 1)
|
@@ -49,6 +51,9 @@ class ISDColorPaletteCollectionViewCell < UICollectionViewCell
|
|
49
51
|
l.cornerRadius = 4
|
50
52
|
l.shadowOpacity = 0.5
|
51
53
|
l.masksToBounds = true
|
54
|
+
l.shadowPath = UIBezierPath.bezierPathWithRect(self.bounds).CGPath
|
55
|
+
l.shouldRasterize = true
|
56
|
+
l.rasterizationScale = UIScreen.mainScreen.scale
|
52
57
|
|
53
58
|
self.selectedBackgroundView = UIView.new
|
54
59
|
l = self.selectedBackgroundView.layer
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,30 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isd-color-palette
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Katsuyoshi Ito
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-05-24 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
description: ISDColorPalette is a color selection panel for the RubyMotion iOS app.
|
@@ -59,29 +56,25 @@ files:
|
|
59
56
|
homepage: https://github.com/ito-soft-design/isd-color-palette
|
60
57
|
licenses:
|
61
58
|
- MIT
|
59
|
+
metadata: {}
|
62
60
|
post_install_message:
|
63
61
|
rdoc_options: []
|
64
62
|
require_paths:
|
65
63
|
- lib
|
66
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
65
|
requirements:
|
69
|
-
- -
|
66
|
+
- - '>='
|
70
67
|
- !ruby/object:Gem::Version
|
71
68
|
version: '0'
|
72
|
-
segments:
|
73
|
-
- 0
|
74
|
-
hash: 4394609946671966429
|
75
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
-
none: false
|
77
70
|
requirements:
|
78
|
-
- -
|
71
|
+
- - '>='
|
79
72
|
- !ruby/object:Gem::Version
|
80
73
|
version: '0'
|
81
74
|
requirements: []
|
82
75
|
rubyforge_project:
|
83
|
-
rubygems_version: 1.
|
76
|
+
rubygems_version: 2.1.11
|
84
77
|
signing_key:
|
85
|
-
specification_version:
|
78
|
+
specification_version: 4
|
86
79
|
summary: ISDColorPalette is a color selection panel for the RubyMotion iOS app.
|
87
80
|
test_files: []
|