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
a3713c07
Commit
a3713c07
authored
Aug 07, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
development: updated button defaults
parent
6861382d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 additions
and
4 deletions
+1
-4
Sources/iOS/Button.swift
+1
-0
Sources/iOS/FlatButton.swift
+0
-1
Sources/iOS/IconButton.swift
+0
-2
Sources/iOS/RaisedButton.swift
+0
-1
No files found.
Sources/iOS/Button.swift
View file @
a3713c07
...
@@ -168,6 +168,7 @@ public class Button: UIButton {
...
@@ -168,6 +168,7 @@ public class Button: UIButton {
*/
*/
public
func
prepareView
()
{
public
func
prepareView
()
{
contentScaleFactor
=
Device
.
scale
contentScaleFactor
=
Device
.
scale
contentEdgeInsetsPreset
=
.
none
prepareVisualLayer
()
prepareVisualLayer
()
}
}
...
...
Sources/iOS/FlatButton.swift
View file @
a3713c07
...
@@ -41,6 +41,5 @@ public class FlatButton: Button {
...
@@ -41,6 +41,5 @@ public class FlatButton: Button {
public
override
func
prepareView
()
{
public
override
func
prepareView
()
{
super
.
prepareView
()
super
.
prepareView
()
cornerRadiusPreset
=
.
cornerRadius1
cornerRadiusPreset
=
.
cornerRadius1
contentEdgeInsetsPreset
=
.
wideRectangle3
}
}
}
}
Sources/iOS/IconButton.swift
View file @
a3713c07
...
@@ -40,9 +40,7 @@ public class IconButton: Button {
...
@@ -40,9 +40,7 @@ public class IconButton: Button {
*/
*/
public
override
func
prepareView
()
{
public
override
func
prepareView
()
{
super
.
prepareView
()
super
.
prepareView
()
cornerRadiusPreset
=
.
cornerRadius1
pulseAnimation
=
.
center
pulseAnimation
=
.
center
shapePreset
=
.
circle
shapePreset
=
.
circle
contentEdgeInsetsPreset
=
.
none
}
}
}
}
Sources/iOS/RaisedButton.swift
View file @
a3713c07
...
@@ -42,7 +42,6 @@ public class RaisedButton: Button {
...
@@ -42,7 +42,6 @@ public class RaisedButton: Button {
super
.
prepareView
()
super
.
prepareView
()
depthPreset
=
.
depth1
depthPreset
=
.
depth1
cornerRadiusPreset
=
.
cornerRadius1
cornerRadiusPreset
=
.
cornerRadius1
contentEdgeInsetsPreset
=
.
wideRectangle3
backgroundColor
=
Color
.
white
backgroundColor
=
Color
.
white
}
}
}
}
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