Add option to reposition toolbars in other corners - #5022
Conversation
|
Great PR! Please pay attention to the following items before merging: Files matching
Files matching
This is an automatically generated QA checklist based on modified files. |
|
Not sure if we really need that. OTOH it was requested twice in 7 years, so OK. Just that the names become increasingly weird. BottomStelBar sounds like a design decision from 2002 (?). Should we think about renaming a few GUI classes, e.g.:
Have you tested how this works together with Oculars plugin GUI (top-right corner), and with the Calendars screen output (bottom-right corner)? What about InfoText output, is that shifted down? Does it move up when the 'BottomStelBar' (now at top) retracts? The checkmarks in the config GUI might look better as Comboboxes: Dialog buttons [Left Edge/Right Edge], Tool Buttons [Bottom Edge/Top Edge] |
Yes the names are a little weird now, but I wanted to keep the changes minimal. I interpreted it like "this tool bar was named BottomStelBar because that where it lives by default and it keeps this name, even if the user decides to optionally show it at the top instead". If you are fine with more code changes, then renaming won't be a problem. It fully overlaps the Oculars plugin, but I do not see this as an issue. If the user wants to use the Oculars GUI, then they shouldn't put the toolbar in the same corner if they want to use it correctly. They can always turn off the Oculars GUI or choose any of the three other corners for the toolbars. I tested the Calendar plugin now and only the vertical bar slightly overlaps, but as far as i can see it, the vertical bar also overlaps the info text even in its default position (bottom left) on smaller screens. With the latest commit, the info panel shifts down and retracts when the horizontal bar is at the top. It also moves to the right if the vertical bar is at the top. As for the comboboxes: sure, changed this in the latest commit. |
|
OK, renamings can be made in a separate commit later. I tried it, and it does work quite well. However, when vertical bar is right, the mouse-over context help (tooltip) is not visible. I even like bottom-right as it avoids the InfoText collision. But the collision with the Oculars plugin button bar should be handled in Oculars. Not sure @alex-w @10110111, just enable a warning in the Oculars config GUI that main GUI should be moved to any other corner? Or can the button panel be moved out of the corner easily? The actual collision looks bad and will cause troubles. Combobox is better, but side-by-side please, not stacked, to make better use of screen space. Or actually, as we in fact have only four settings, a single combobox in the upper area (Planetarium Options, bottom-right I see space for it) and a single enum property could be enough: Menu Bars: [0=bottom-left, 1=bottom-right, 2=top-left, 3=top-right]. |
|
I see issue for pixel distance between text and borders on toolbar (please see text when toolbar on bottom and on top). |
|
I do like your suggestions of DialogMenuBar, ToolMenuBar and calling them "menu bars" together, but the term "toolbars" is already used throughout the project to refer to both of them, so I'd rather just stay consistent with the current code for now. (or rename everything consistenly but thats extra effort and complexity) |
Oculars GUI panel created a bit hackish and I'm not sure that it can be moved easy... In any wat currently top-right variant give ugly look.
Hmm... Are you remember for hidden font settings (available for advanced users)? :) But yes, the new options should be more compact. |
There is empty space right of "Screen button scale". The potentially hidden font area is above. |
|
We could make drawing the Oculars GUI depend on toolbar corner not being top-right. It's not a setting you change all the time. If you use the plugin, just use another corner, or the Oculars GUI toolbar is not available. |
|
Here is a first attempt to move the Oculars panel out of the way. (@10110111 I don't know why, but I cannot apply the new connect syntax here. --> EDIT: Solved) |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
Any further work or comments here? |
I came across issue #4783 and thought "why not?". I decided to give it a try and got this working version:
The "Tools" tab in the Configuration dialog has two checkboxes which let the user move the toolbars to the top, to the right or both. This makes it possible to position the toolbars in any of the four corners, which should be enough customization.
Fixes #685 #4783
Screenshots (if appropriate):
Type of change
How Has This Been Tested?
Manually on MacOS 26.5.1
Checklist: