mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-07-04 07:19:22 +00:00
Tokenize via an iterator, makes everything much faster
This commit is contained in:
@ -9,7 +9,7 @@ require "xml"
|
||||
module Tartrazine
|
||||
alias Color = Sixteen::Color
|
||||
|
||||
class ThemeFiles
|
||||
struct ThemeFiles
|
||||
extend BakedFileSystem
|
||||
bake_folder "../styles", __DIR__
|
||||
end
|
||||
@ -39,7 +39,7 @@ module Tartrazine
|
||||
themes.to_a.sort!
|
||||
end
|
||||
|
||||
class Style
|
||||
struct Style
|
||||
# These properties are tri-state.
|
||||
# true means it's set
|
||||
# false means it's not set
|
||||
@ -79,7 +79,7 @@ module Tartrazine
|
||||
end
|
||||
end
|
||||
|
||||
class Theme
|
||||
struct Theme
|
||||
property name : String = ""
|
||||
|
||||
property styles = {} of String => Style
|
||||
|
Reference in New Issue
Block a user