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

make Checkboxes not inspectable #4706

Open
bjarthur opened this issue Jan 7, 2025 · 1 comment
Open

make Checkboxes not inspectable #4706

bjarthur opened this issue Jan 7, 2025 · 1 comment
Labels
enhancement Feature requests and enhancements

Comments

@bjarthur
Copy link
Contributor

bjarthur commented Jan 7, 2025

don't know why anyone would want DataInspector to show tooltips for a Checkbox. for now i'm hacking this with foreach(x->x.inspectable[]=false, cb.blockscene.plots). maybe this should be done by default? or at least have an inspectable property like plots do to make turning it off easier?

using GLMakie
f = Figure()
cb = Checkbox(f[1,1])
DataInspector()
Image
@bjarthur bjarthur added the enhancement Feature requests and enhancements label Jan 7, 2025
@EdsterG
Copy link
Contributor

EdsterG commented Jan 7, 2025

I think this can easily be done by setting inspectable to false for the checkbox components (this is is similar to what axis does for grid lines):

shp = poly!(
scene,
shape,
color = polycolor,
strokewidth = c.checkboxstrokewidth,
strokecolor = strokecolor,
)

sc = scatter!(
scene,
markerpos,
marker = c.checkmark,
markersize = @lift($(c.size) * $(c.checkmarksize)),
color = checkmarkcolor,
visible = @lift($ischecked || $ishovered),
)

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

No branches or pull requests

2 participants