-
Notifications
You must be signed in to change notification settings - Fork 69
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 |
|
When reporting #243, someone pointed me to this PR I tested the behavior of numbered marker in this PR and they are really too big (even bigger than before) 😅 From top to bottom, I used And I think this problem is the same for other element, like if you try to create an array with When comparing Satty to previous screenshot editor tool I used, I find that the sizing are not really that useful and often off for example to get a good sized Numbered Marker I would need to use size |
|
This PR aims also at simplifying our ratios for each tools. edit: If you play with this PR and find tool factor that you think are best, it would be cool to share this so I can try them out too! |
|
Numbered marker is something else than the other tools, which are line-based. It might be hard to find its default size (even when related to the line size or image size) that users would find satisfactory/non-surprising. So the user puts the numbered marker kinda "hit or miss" and will sometimes be dissatisfied with the size. So they hit Undo, resize with the slider or otherwise, and try again. And if still not satisfied, try again... Then once they've found the right size, now the size of other tools might be off... Perhaps an alternative would be to have numbered markers resizable as they appear, in similar manner as the "Ellipse tool" is resizable with Shift+Alt held. Then the next marker by default keeps the size of the original one. I think splitting the sizing of Thanks |
Hmm.. I can see some benefit in setting text and line width separately. But since the markers display text as well, surely that could be one setting for both, no? Also, I'd say that resizable markers is not a thing in the other annotation tools I've used. I mean, sure, that's not a good reasoning at all. :D But I'd like to avoid creating something that is equally frustrating ;) |




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?