Theme+Defaults: Nitpicky code style fixes

This commit is contained in:
John Sundell 2018-10-09 23:21:35 +02:00 committed by GitHub
parent 1c6998d5f5
commit cb3f05d3e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,9 +42,9 @@ public extension Theme {
return Theme(
font: font,
plainTextColor: Color(
red: 1.0,
green: 1.0,
blue: 1.0
red: 1,
green: 1,
blue: 1
),
tokenColors: [
.keyword : Color(red: 0.828, green: 0.095, blue: 0.583),
@ -86,9 +86,9 @@ public extension Theme {
.preprocessing : Color(red: 0.992, green: 0.791, blue: 0.45)
],
backgroundColor: Color(
red:0.18,
green:0.19,
blue:0.20
red: 0.18,
green: 0.19,
blue: 0.2
)
)
}
@ -98,9 +98,9 @@ public extension Theme {
return Theme(
font: font,
plainTextColor: Color(
red: 1.0,
green: 1.0,
blue: 1.0
red: 1,
green: 1,
blue: 1
),
tokenColors: [
.keyword : Color(red: 0.948, green: 0.140, blue: 0.547),
@ -126,9 +126,9 @@ public extension Theme {
return Theme(
font: font,
plainTextColor: Color(
red: 0.0,
green: 0.0,
blue: 0.0
red: 0,
green: 0,
blue: 0
),
tokenColors: [
.keyword : Color(red: 0.161, green: 0.259, blue: 0.467),
@ -142,9 +142,9 @@ public extension Theme {
.preprocessing : Color(red: 0.392, green: 0.391, blue: 0.52)
],
backgroundColor: Color(
red:1.00,
green:0.99,
blue:0.90
red: 1,
green: 0.99,
blue: 0.9
)
)
}
@ -154,9 +154,9 @@ public extension Theme {
return Theme(
font: font,
plainTextColor: Color(
red: 0.0,
green: 0.0,
blue: 0.0
red: 0,
green: 0,
blue: 0
),
tokenColors: [
.keyword : Color(red: 0.706, green: 0.0, blue: 0.384),
@ -170,9 +170,9 @@ public extension Theme {
.preprocessing : Color(red: 0.431, green: 0.125, blue: 0.051)
],
backgroundColor: Color(
red:1.0,
green:1.0,
blue:1.0
red: 1,
green: 1,
blue: 1
)
)
}