-
Notifications
You must be signed in to change notification settings - Fork 39
S,M,L connected to SpinButton #178
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
base: main
Are you sure you want to change the base?
Conversation
related #51 |
WDYT @gabm @RobertMueller2 ? I think it way more usable like this but I am biased ofc |
Personally, I kinda like the S,M,L buttons. But I agree, they have some overlap with the annotation size factor, and now that that is exposed, maybe it is too complicated now. Maybe we can use the S/M/L buttons to set certain (configurable?) values for the annotation size? EDIT: I think, maybe relative to the image size, although that could be tricky for different aspect ratios. Let's discuss this a bit more :) |
I think this is what I suggest here (or at least try)
There are not random values, this is values I tried in this PR and showed in the first screenshot. Edit: and then we remove the |
ok, sorry, I suppose I got confused. Does indeed sound like the same thought. |
Size::Medium => (54.0 * size_factor) as i32, | ||
Size::Large => (96.0 * size_factor) as i32, | ||
} | ||
pub fn to_text_size(self) -> f32 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At one point it should be resolved to each tools maybe
At this stage I have s,m,l group buttons that modify the spin value. |
hmm gnome guidelines say:
https://developer.gnome.org/hig/patterns/controls/spin-buttons.html maybe that's a better choice?! |
Maybe
|
slider would also match #51 better. so there's that ;) but I didn't think that far when dealing with annotation size value. |
Ok so we are going closer to the first version I've made without the S/M/L buttons. If you feel this is worth a try I'll dig into that |
I think so.
The solution on main does indeed solve the issue of lacking control, but it also combines the disadvantages of both. I think the slider is perfect here, really, fine control if done right, doesn't expose the technical stuff. |
here are some ideas. I am unsure what GTK offers, Ill check... https://www.justinmind.com/web-design/slider (number 8 looks suitable) EDIT: GTK Scale has marks .. https://docs.gtk.org/gtk4/class.Scale.html |
related to #171
Idea is to simplify the UX a bit.
For now the PR breaks things, like
I find it more intuitive like this but this is maybe me?
WDYT?