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
WIP: Toolbar icon/font resize improvements. #887
base: master
Are you sure you want to change the base?
Conversation
Like I commented above, I really feel that for a nice and reasonably polished UX, the window width thresholds that establish when toolbar icons should be displayed in small/medium/large sizes should vary with the UI language: for example, there is a huge, >100px difference in DE vs ZH, for example, with EN and PT being somewhere in between, and FR being ~halfway between EN/PT and DE. TextbookA possible "textbook" solution would be creating a
This brings a few challenges:
Going crazyA completely crazy but that might actually work idea is as follows:
Notes:
Parting thoughtsThis is clearly a hack. However, if properly documented, it somehow feels kind of right: all the translation "info" is in the same file, edited at the same time, committed in a single "unit". Please tell me this is not acceptable and that we should follow a "textbook" approach. :) :) :) |
OK... I like where this is going. However, one of the final "alpha" features I want to implement is for the user to override/define icon size on buttons. This feedback was given several times by teachers and speakers (Dave Beazley, no less) when they've been telling me how they use Mu as a tool of pedagogical presentation... they felt the attention should be on the code so, "please can we have a way to say less buttons". Any thoughts on this? Personally, we could introspect the width of the button widgets, sum them together, add a little bit for heuristic reasons and set the width of the whole editor to that. |
If the main reason is to emphasise the code over the editor UI, maybe a focus mode also serves this purpose and might be easier for users to use? Enabling/disabling, rather than configure values in the settings, just a thought. |
Thanks for your input. You catch me on my way to a very-much-needed holiday week ahead, so I'll probably only get back to this in a week or two, but I wouldn't want to go without at least commenting back. :)
I had that specific use case in mind and was deferring additional capabilities to complementary PRs, mostly for two reasons:
What I was trying to "solve" was the single problem of improving the existing auto button sizing code, such that all buttons are visible all the time, growing/shrinking as the window width allows (of course, when the window is not wide enough, not all buttons will be visible, and that's ok). The code to solve that is mostly in place, pending a decision around the idea of "how to specify" per-language window width / icon size thresholds:
(I'll share a few thoughts on the "set button size preference" below.)
I'm not sure I understand this note: it seems to dictate a constraint source/destination that I haven't identified in this context. AFAIU, your words say "add up button widths and set the window width from there", while what I'm looking to improve is essentially the other way around, "determining button sizes from a given window width" -- in the sense that it is up to the users to size the window as they see fit, and that buttons should adjust accordingly. Am I missing something? :) Possible UI/UX for setting preferred button sizeThere are currently three auto selected toolbar button sizes: small, medium, and large. These are automatically set -- something this PR is trying to improve to be more consistent and UI language independent. Question:
UI/UX options:
Entering "listen mode"... Thank you! :) |
Working towards addressing #758.
Challenges:
Current status:
What I'll do next: