Skip to content

reddavis/DVTColorTheme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages