-
-
Notifications
You must be signed in to change notification settings - Fork 837
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
desktop: Add View menu #17042
desktop: Add View menu #17042
Conversation
ui.menu_button(text(locale, "quality"), |ui| { | ||
let items = vec![ | ||
("quality-low", StageQuality::Low), | ||
("quality-medium", StageQuality::Medium), | ||
("quality-high", StageQuality::High), | ||
("quality-best", StageQuality::Best), | ||
("quality-high8x8", StageQuality::High8x8), | ||
("quality-high8x8linear", StageQuality::High8x8Linear), | ||
("quality-high16x16", StageQuality::High16x16), | ||
("quality-high16x16linear", StageQuality::High16x16Linear), |
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.
I'm reusing here strings from settings.ftl
, not sure whether it's a good idea
I think I'd prefer for the 4 scale modes to be together, either in a submenu or just all together in the view menu with a separator below them. I get that it's more Flash-like... but it's not intuitive 😅 We don't need to follow them in UI practices. For wording, maybe "Stretch to Fit" and "Crop to Fit" would be more appropriate too? "100%" and "Show All" are confusing and honestly for all these years, until reading the code for this PR I never knew what they actually meant. Now I know! :D Maybe:
Or I guess just the same text that we show in Open Advanced today? |
Thanks for that! I think I'd prefer to leave letterbox as a separate thing - maybe grey it out if it doesn't make sense for the current mode. Having just "on/off" for letterbox is maybe a bit confusing and inconsistent if in Open Advanced we have 4 options instead of just 2 - but I don't think I care too much either way here. Submenu looks ideal to me, but I'd call it "Scale Mode", not just "Mode". |
will this allow for these options to be changed in real time like FP? |
I think we have 3 options for a letterbox when opening: On, Off, Fullscreen Only. However as long as the third option makes sense when opening a SWF, it does not make too much sense when changing the value at runtime, because if I want to have letterbox enabled at fullscreen, I can just enable it and then enter fullscreen. Regarding the scale mode options when opening a SWF, I think they are confusing — I had to test what they do, exactly as I had to test what FP's Show All does. IMO your suggestions are a lot better (maybe we should even change the Open Advanced translations?). |
Yes, that's the point of these options |
also please don't change the view mode names from what they are now maybe a tooltip can show a mode's aliases, and describe what it does? or a help icon to click? |
3c3894f
to
7994a3f
Compare
7994a3f
to
ccfc02a
Compare
ccfc02a
to
f566925
Compare
f566925
to
4d6ce72
Compare
bf05212
to
fec2283
Compare
be2bdb2
to
2abdfbf
Compare
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.
Thank you very much, sorry again about all the bikeshedding!
2abdfbf
to
3d2cd11
Compare
This PR adds the "View" menu, which is responsible for controlling the view: