Moved Sundell theme to Defaults
This commit is contained in:
parent
d6a327c831
commit
128f0929d4
@ -13,6 +13,29 @@ import Foundation
|
|||||||
*/
|
*/
|
||||||
public extension Theme {
|
public extension Theme {
|
||||||
|
|
||||||
|
/// Create a theme matching the "Sundell's Colors" Xcode theme
|
||||||
|
static func sundellsColors(withFont font: Font) -> Theme {
|
||||||
|
return Theme(
|
||||||
|
font: font,
|
||||||
|
plainTextColor: Color(
|
||||||
|
red: 0.66,
|
||||||
|
green: 0.74,
|
||||||
|
blue: 0.74
|
||||||
|
),
|
||||||
|
tokenColors: [
|
||||||
|
.keyword : Color(red: 0.91, green: 0.2, blue: 0.54),
|
||||||
|
.string : Color(red: 0.98, green: 0.39, blue: 0.12),
|
||||||
|
.type : Color(red: 0.51, green: 0.51, blue: 0.79),
|
||||||
|
.call : Color(red: 0.2, green: 0.56, blue: 0.9),
|
||||||
|
.number : Color(red: 0.86, green: 0.44, blue: 0.34),
|
||||||
|
.comment : Color(red: 0.42, green: 0.54, blue: 0.58),
|
||||||
|
.property : Color(red: 0.2, green: 0.56, blue: 0.9),
|
||||||
|
.dotAccess : Color(red: 0.2, green: 0.56, blue: 0.9),
|
||||||
|
.preprocessing : Color(red: 0.896, green: 0.488, blue: 0.284)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
static func midnight(withFont font: Font) -> Theme {
|
static func midnight(withFont font: Font) -> Theme {
|
||||||
return Theme(
|
return Theme(
|
||||||
font: font,
|
font: font,
|
||||||
|
@ -24,28 +24,3 @@ public struct Theme {
|
|||||||
self.tokenColors = tokenColors
|
self.tokenColors = tokenColors
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public extension Theme {
|
|
||||||
/// Create a theme matching the "Sundell's Colors" Xcode theme
|
|
||||||
static func sundellsColors(withFont font: Font) -> Theme {
|
|
||||||
return Theme(
|
|
||||||
font: font,
|
|
||||||
plainTextColor: Color(
|
|
||||||
red: 0.66,
|
|
||||||
green: 0.74,
|
|
||||||
blue: 0.74
|
|
||||||
),
|
|
||||||
tokenColors: [
|
|
||||||
.keyword : Color(red: 0.91, green: 0.2, blue: 0.54),
|
|
||||||
.string : Color(red: 0.98, green: 0.39, blue: 0.12),
|
|
||||||
.type : Color(red: 0.51, green: 0.51, blue: 0.79),
|
|
||||||
.call : Color(red: 0.2, green: 0.56, blue: 0.9),
|
|
||||||
.number : Color(red: 0.86, green: 0.44, blue: 0.34),
|
|
||||||
.comment : Color(red: 0.42, green: 0.54, blue: 0.58),
|
|
||||||
.property : Color(red: 0.13, green: 0.67, blue: 0.62),
|
|
||||||
.dotAccess : Color(red: 0.57, green: 0.7, blue: 0),
|
|
||||||
.preprocessing : Color(red: 0.71, green: 0.54, blue: 0)
|
|
||||||
]
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user