No description or website provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DVTColorTheme.xcodeproj
DVTColorTheme
DVTColorThemeTests
.gitignore
README.md

README.md

DVTColorTheme

An Xcode Theme Parser

BuddyBuild

Install

github "reddavis/DVTColorTheme"

Example

To initialize:

let theme = try DVTColorTheme(fileURL: url)

// OR

let theme = try DVTColorTheme(data: data)

Examples:

theme.sourceEditor // => DVTColorTheme.SourceEditor
theme.console // => DVTColorTheme.Console

theme.sourceEditor.backgroundColor // => NSColor
theme.sourceEditor.textSelectionColor // => NSColor

theme.sourceEditor.classes // => DVTColorTheme.Attribute
theme.sourceEditor.numbers // => DVTColorTheme.Attribute

theme.sourceEditor.plainText.color // => NSColor

theme.sourceEditor.plainText.font // => DVTColorTheme.Font
theme.sourceEditor.plainText.font.name // => String
theme.sourceEditor.plainText.font.size // => Double
theme.sourceEditor.plainText.font.isInstalled // => Bool
theme.sourceEditor.plainText.font.font // => NSFont

To find all available properties, checkout: Console.swift and SourceEditor.swift

Note

This library is part of a larger project I'm working on, therefore the API is likely to change a lot.

License

MIT License.