Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Material
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
Material
Commits
88cf9092
Commit
88cf9092
authored
Sep 11, 2015
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated colors for cards
parent
aca94665
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
Source/BasicCardView.swift
+5
-5
Source/ImageCardView.swift
+6
-6
No files found.
Source/BasicCardView.swift
View file @
88cf9092
...
@@ -240,7 +240,7 @@ public class BasicCardView : MaterialCardView, Comparable, Equatable {
...
@@ -240,7 +240,7 @@ public class BasicCardView : MaterialCardView, Comparable, Equatable {
if
nil
==
titleLabelContainer
{
if
nil
==
titleLabelContainer
{
titleLabelContainer
=
UIView
()
titleLabelContainer
=
UIView
()
titleLabelContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
titleLabelContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
titleLabelContainer
!.
backgroundColor
=
MaterialTheme
.
blueGrey
.
color
titleLabelContainer
!.
backgroundColor
=
MaterialTheme
.
clear
.
color
addSubview
(
titleLabelContainer
!
)
addSubview
(
titleLabelContainer
!
)
}
}
...
@@ -283,7 +283,7 @@ public class BasicCardView : MaterialCardView, Comparable, Equatable {
...
@@ -283,7 +283,7 @@ public class BasicCardView : MaterialCardView, Comparable, Equatable {
if
nil
==
detailLabelContainer
{
if
nil
==
detailLabelContainer
{
detailLabelContainer
=
UIView
()
detailLabelContainer
=
UIView
()
detailLabelContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
detailLabelContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
detailLabelContainer
!.
backgroundColor
=
MaterialTheme
.
blueGrey
.
color
detailLabelContainer
!.
backgroundColor
=
MaterialTheme
.
clear
.
color
addSubview
(
detailLabelContainer
!
)
addSubview
(
detailLabelContainer
!
)
}
}
...
@@ -332,7 +332,7 @@ public class BasicCardView : MaterialCardView, Comparable, Equatable {
...
@@ -332,7 +332,7 @@ public class BasicCardView : MaterialCardView, Comparable, Equatable {
if
nil
==
buttonsContainer
{
if
nil
==
buttonsContainer
{
buttonsContainer
=
UIView
()
buttonsContainer
=
UIView
()
buttonsContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
buttonsContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
buttonsContainer
!.
backgroundColor
=
MaterialTheme
.
blueGrey
.
color
buttonsContainer
!.
backgroundColor
=
MaterialTheme
.
clear
.
color
addSubview
(
buttonsContainer
!
)
addSubview
(
buttonsContainer
!
)
}
}
}
else
{
}
else
{
...
@@ -351,7 +351,7 @@ public class BasicCardView : MaterialCardView, Comparable, Equatable {
...
@@ -351,7 +351,7 @@ public class BasicCardView : MaterialCardView, Comparable, Equatable {
if
nil
==
buttonsContainer
{
if
nil
==
buttonsContainer
{
buttonsContainer
=
UIView
()
buttonsContainer
=
UIView
()
buttonsContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
buttonsContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
buttonsContainer
!.
backgroundColor
=
MaterialTheme
.
blueGrey
.
color
buttonsContainer
!.
backgroundColor
=
MaterialTheme
.
clear
.
color
addSubview
(
buttonsContainer
!
)
addSubview
(
buttonsContainer
!
)
}
}
}
else
{
}
else
{
...
@@ -400,7 +400,7 @@ public class BasicCardView : MaterialCardView, Comparable, Equatable {
...
@@ -400,7 +400,7 @@ public class BasicCardView : MaterialCardView, Comparable, Equatable {
internal
override
func
prepareView
()
{
internal
override
func
prepareView
()
{
super
.
prepareView
()
super
.
prepareView
()
prepareShadow
()
prepareShadow
()
backgroundColor
=
MaterialTheme
.
clear
.
color
backgroundColor
=
MaterialTheme
.
blueGrey
.
color
}
}
//
//
...
...
Source/ImageCardView.swift
View file @
88cf9092
...
@@ -345,11 +345,11 @@ public class ImageCardView : MaterialCardView, Comparable, Equatable {
...
@@ -345,11 +345,11 @@ public class ImageCardView : MaterialCardView, Comparable, Equatable {
t
.
numberOfLines
=
0
t
.
numberOfLines
=
0
t
.
lineBreakMode
=
.
ByTruncatingTail
t
.
lineBreakMode
=
.
ByTruncatingTail
if
nil
==
imageView
{
if
nil
==
imageView
{
titleLabelContainer
!.
backgroundColor
=
MaterialTheme
.
white
.
color
titleLabelContainer
!.
backgroundColor
=
MaterialTheme
.
clear
.
color
t
.
textColor
=
MaterialTheme
.
black
.
color
t
.
textColor
=
MaterialTheme
.
black
.
color
}
else
{
}
else
{
titleLabelContainer
!.
backgroundColor
=
MaterialTheme
.
clear
.
color
titleLabelContainer
!.
backgroundColor
=
MaterialTheme
.
clear
.
color
t
.
textColor
=
MaterialTheme
.
white
.
color
t
.
textColor
=
MaterialTheme
.
clear
.
color
titleLabelContainer
!.
removeFromSuperview
()
titleLabelContainer
!.
removeFromSuperview
()
imageViewContainer
!.
addSubview
(
titleLabelContainer
!
)
imageViewContainer
!.
addSubview
(
titleLabelContainer
!
)
}
}
...
@@ -384,7 +384,7 @@ public class ImageCardView : MaterialCardView, Comparable, Equatable {
...
@@ -384,7 +384,7 @@ public class ImageCardView : MaterialCardView, Comparable, Equatable {
if
nil
==
detailLabelContainer
{
if
nil
==
detailLabelContainer
{
detailLabelContainer
=
UIView
()
detailLabelContainer
=
UIView
()
detailLabelContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
detailLabelContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
detailLabelContainer
!.
backgroundColor
=
MaterialTheme
.
white
.
color
detailLabelContainer
!.
backgroundColor
=
MaterialTheme
.
clear
.
color
addSubview
(
detailLabelContainer
!
)
addSubview
(
detailLabelContainer
!
)
}
}
...
@@ -433,7 +433,7 @@ public class ImageCardView : MaterialCardView, Comparable, Equatable {
...
@@ -433,7 +433,7 @@ public class ImageCardView : MaterialCardView, Comparable, Equatable {
if
nil
==
buttonsContainer
{
if
nil
==
buttonsContainer
{
buttonsContainer
=
UIView
()
buttonsContainer
=
UIView
()
buttonsContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
buttonsContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
buttonsContainer
!.
backgroundColor
=
MaterialTheme
.
white
.
color
buttonsContainer
!.
backgroundColor
=
MaterialTheme
.
clear
.
color
addSubview
(
buttonsContainer
!
)
addSubview
(
buttonsContainer
!
)
}
}
}
else
{
}
else
{
...
@@ -452,7 +452,7 @@ public class ImageCardView : MaterialCardView, Comparable, Equatable {
...
@@ -452,7 +452,7 @@ public class ImageCardView : MaterialCardView, Comparable, Equatable {
if
nil
==
buttonsContainer
{
if
nil
==
buttonsContainer
{
buttonsContainer
=
UIView
()
buttonsContainer
=
UIView
()
buttonsContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
buttonsContainer
!.
setTranslatesAutoresizingMaskIntoConstraints
(
false
)
buttonsContainer
!.
backgroundColor
=
MaterialTheme
.
white
.
color
buttonsContainer
!.
backgroundColor
=
MaterialTheme
.
clear
.
color
addSubview
(
buttonsContainer
!
)
addSubview
(
buttonsContainer
!
)
}
}
}
else
{
}
else
{
...
@@ -502,7 +502,7 @@ public class ImageCardView : MaterialCardView, Comparable, Equatable {
...
@@ -502,7 +502,7 @@ public class ImageCardView : MaterialCardView, Comparable, Equatable {
internal
override
func
prepareView
()
{
internal
override
func
prepareView
()
{
super
.
prepareView
()
super
.
prepareView
()
prepareShadow
()
prepareShadow
()
backgroundColor
=
MaterialTheme
.
clear
.
color
backgroundColor
=
MaterialTheme
.
white
.
color
}
}
//
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment