Skip to content

Instantly share code, notes, and snippets.

@jkrumbiegel
Created November 18, 2024 10:43
Show Gist options
  • Save jkrumbiegel/b456d384be51c072670022858bb5f3a8 to your computer and use it in GitHub Desktop.
Save jkrumbiegel/b456d384be51c072670022858bb5f3a8 to your computer and use it in GitHub Desktop.
Makie top menu bar
using GLMakie
f = Figure(figure_padding = 0)
topbar = GridLayout(f[1, 1], default_colgap = 1, halign = :left, tellwidth = false)
Box(f[1, 1], strokewidth = 0)
Button(topbar[1, 1], label = "Button", cornerradius = 0)
Menu(topbar[1, 2], options = ["Menu A", "Menu B", "Menu C"], width = 100)
maingl = GridLayout(f[2, 1], alignmode = Outside(16))
Axis(maingl[1, 1])
f
@jkrumbiegel
Copy link
Author

grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment