Skip to content

Commit

Permalink
Support for theme setting API
Browse files Browse the repository at this point in the history
  • Loading branch information
essenciary committed Oct 30, 2024
1 parent 5af52cb commit 69eebe1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/Layout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ function set_theme!(theme::Symbol)
else
THEMES[][Stipple.Theme.THEME_INDEX[]] = Stipple.Theme.to_asset(theme)
end
Stipple.Theme.set_theme(theme)

Stipple.Theme.THEME_INDEX[]
end
Expand Down Expand Up @@ -354,7 +355,7 @@ function theme(; core_theme::Bool = true) :: Vector{String}
end

unique!(THEMES[])
set_theme!(:default) # set the default theme
set_theme!(Stipple.Theme.get_theme()) # set the default theme

for f in THEMES[]
_o = f()
Expand All @@ -365,8 +366,6 @@ function theme(; core_theme::Bool = true) :: Vector{String}
push!(output, _o)
end

@show "Output is going out"

output
end

Expand Down
1 change: 0 additions & 1 deletion src/Theme.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ end

function register_theme(name::Symbol, theme::String)
THEMES[name] = theme
@show THEMES
end


Expand Down

0 comments on commit 69eebe1

Please sign in to comment.