Disable Theme+Defaults on Linux
This commit is contained in:
parent
df73f6d066
commit
530cdad12f
@ -6,13 +6,9 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/*
|
#if !os(Linux)
|
||||||
* Extends the Theme struct with static properties that
|
|
||||||
* represent common Xcode defaults as well as community
|
|
||||||
* favourites.
|
|
||||||
*/
|
|
||||||
public extension Theme {
|
|
||||||
|
|
||||||
|
public extension Theme {
|
||||||
/// Create a theme matching the "Sundell's Colors" Xcode theme
|
/// Create a theme matching the "Sundell's Colors" Xcode theme
|
||||||
static func sundellsColors(withFont font: Font) -> Theme {
|
static func sundellsColors(withFont font: Font) -> Theme {
|
||||||
return Theme(
|
return Theme(
|
||||||
@ -36,6 +32,7 @@ public extension Theme {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Create a theme matching Xcode's "Midnight" theme
|
||||||
static func midnight(withFont font: Font) -> Theme {
|
static func midnight(withFont font: Font) -> Theme {
|
||||||
return Theme(
|
return Theme(
|
||||||
font: font,
|
font: font,
|
||||||
@ -58,6 +55,7 @@ public extension Theme {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Creating a theme matching the colors used for the WWDC 2017 sample code
|
||||||
static func wwdc17(withFont font: Font) -> Theme {
|
static func wwdc17(withFont font: Font) -> Theme {
|
||||||
return Theme(
|
return Theme(
|
||||||
font: font,
|
font: font,
|
||||||
@ -80,6 +78,7 @@ public extension Theme {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Creating a theme matching the colors used for the WWDC 2018 sample code
|
||||||
static func wwdc18(withFont font: Font) -> Theme {
|
static func wwdc18(withFont font: Font) -> Theme {
|
||||||
return Theme(
|
return Theme(
|
||||||
font: font,
|
font: font,
|
||||||
@ -102,6 +101,7 @@ public extension Theme {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Create a theme matching Xcode's "Sunset" theme
|
||||||
static func sunset(withFont font: Font) -> Theme {
|
static func sunset(withFont font: Font) -> Theme {
|
||||||
return Theme(
|
return Theme(
|
||||||
font: font,
|
font: font,
|
||||||
@ -124,6 +124,7 @@ public extension Theme {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Create a theme matching Xcode's "Presentation" theme
|
||||||
static func presentation(withFont font: Font) -> Theme {
|
static func presentation(withFont font: Font) -> Theme {
|
||||||
return Theme(
|
return Theme(
|
||||||
font: font,
|
font: font,
|
||||||
@ -145,5 +146,6 @@ public extension Theme {
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user