Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Gruvbox theme #33

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Added Gruvbox theme #33

wants to merge 5 commits into from

Conversation

jagot
Copy link

@jagot jagot commented Jul 24, 2024

I have added my favourite colour theme, Gruvbox!

These are just the colours, styling is up the user.

Building the documentation, the test suite fails somewhere else, I think unrelated to this PR.

@asinghvi17
Copy link
Member

Hey, thanks for the PR! The color schemes look good and I will test more when back home.

Yeah, the test failure looks related to the new AlgebraOfGraphics release, so I'll probably have to go in and bugfix that.

@jagot
Copy link
Author

jagot commented Jul 24, 2024

I would like to have a bit more flexibility in choosing the colours, maybe through more keyword arguments, or allowing the user to change the colour cycle by passing in a subset of the symbolic names, but all of that can wait until a later version.

@jagot
Copy link
Author

jagot commented Jul 24, 2024

I added theming for some more elements, here is a simple test code that showcases some of it:

fig = Figure(size=(1280, 679))
Label(fig[0,:], "My fancy super-duper title", fontsize=25)

ax = PolarAxis(fig[1,1])

rs_h = IntervalSlider(fig[2, 1], range = LinRange(0, 1, 1000),
                      startvalues = (0.2, 0.8))
rs_v = IntervalSlider(fig[1, 2], range = LinRange(0, 1, 1000),
                      startvalues = (0.4, 0.9), horizontal = false)
                      
fig[3, 1] = buttongrid = GridLayout(tellwidth = false)

counts = Observable([1, 4, 3, 7, 2])

buttonlabels = [lift(x -> "Count: $(x[i])", counts) for i in 1:3]

buttons = buttongrid[1, 1:3] = [Button(fig, label = l) for l in buttonlabels]

fig[2,3] = Toggle(fig)

fig[2,4] = Menu(fig, options = ["viridis", "heat", "blues"], default = "blues")

fig[3,4] = Textbox(fig, placeholder="Hello there", width=300)

fig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants