Dockable UI#2
Closed
ckaiser wants to merge 22 commits into
Closed
Conversation
Owner
Owner
|
There are several direct |
23a7e5e to
276ae2c
Compare
Author
|
Rebased and removed some of the superfluous |
dacap
requested changes
Feb 19, 2025
dacap
left a comment
Owner
There was a problem hiding this comment.
So far so good, I'm making a first set of review comments so you can make some changes, but I'll require more time (or probably merge it after these fixes and continue from there).
dacap
reviewed
Feb 19, 2025
…te#518) Some missing features so far: 1) Restore old layout configuration (color bar split pos, timeline pos, etc.) and migrate to new Dock layout 2) Load/saving Dock layout 3) Create & customize current layoout (drag-and-drop widgets, etc.)
Temporary/created subdocks must be deleted automatically, and children that are not part of the window hierarchy must be deleted explicitly now (using some std::unique_ptrs).
Changes: * Now we use the "user data" icon as the button to expand the layouts combobox * Added a tooltip to this icon * Added buttons to configure the Timeline position in the same combobox * Fixed some bugs in Dock using space for hidden widgets
This happens only in memory at the moment (layouts are not saved in disk yet), and the customization is quite simple (only size of splitters, timeline position). But in the future we should be able to dock elements in any place.
And now we store the TiXmlElement for each Layout, instead of converting from/to text back and forth.
This patch includes: * The layout is updated immediately when docks are resized (before this the layout was like a snapshot of the configuration when the layout was created or overwritten with the "New Layout" option) * Saving the active layout used in preferences.general.workspace_layout so we can restore it after restarting Aseprite * Change "UI Layout" to "Workspace Layout" * Some strings moved to en.ini file for i18n * Fixed a crash on MainWindow::onActiveViewChange() when the application was being closed
This was a new issue with combination of 9b90159, probably we should close the popup when the window is resized (instead of onSizeHint()).
dacap
pushed a commit
that referenced
this pull request
Apr 26, 2025
@dacap's notes: A description of the included changes: * Improve UX auto-saving layouts when docks are modified, and new 'X' icon to delete layouts (or reset the 'Default' layout). * Remove old timeline position controls (Left/Right/Bottom buttons) from the Timeline configuration and from the layout selector * Add support to drag and drop docks to other sides with real-time feedback using a semi-transparent UILayer * Add a context menu w/right-click to dock the widget at the supported sides without drag-and-drop Some review comments in #2
Owner
|
Merged squashed in c6ae828 with some notes about the changes in the commit description. |
dacap
pushed a commit
that referenced
this pull request
May 1, 2025
@dacap's notes: A description of the included changes: * Improve UX auto-saving layouts when docks are modified, and new 'X' icon to delete layouts (or reset the 'Default' layout). * Remove old timeline position controls (Left/Right/Bottom buttons) from the Timeline configuration and from the layout selector * Add support to drag and drop docks to other sides with real-time feedback using a semi-transparent UILayer * Add a context menu w/right-click to dock the widget at the supported sides without drag-and-drop Some review comments in #2
dacap
pushed a commit
that referenced
this pull request
Jul 7, 2025
@dacap's notes: A description of the included changes: * Improve UX auto-saving layouts when docks are modified, and new 'X' icon to delete layouts (or reset the 'Default' layout). * Remove old timeline position controls (Left/Right/Bottom buttons) from the Timeline configuration and from the layout selector * Add support to drag and drop docks to other sides with real-time feedback using a semi-transparent UILayer * Add a context menu w/right-click to dock the widget at the supported sides without drag-and-drop Some review comments in #2
dacap
pushed a commit
that referenced
this pull request
Jul 29, 2025
@dacap's notes: A description of the included changes: * Improve UX auto-saving layouts when docks are modified, and new 'X' icon to delete layouts (or reset the 'Default' layout). * Remove old timeline position controls (Left/Right/Bottom buttons) from the Timeline configuration and from the layout selector * Add support to drag and drop docks to other sides with real-time feedback using a semi-transparent UILayer * Add a context menu w/right-click to dock the widget at the supported sides without drag-and-drop Some review comments in #2
dacap
pushed a commit
that referenced
this pull request
Aug 4, 2025
@dacap's notes: A description of the included changes: * Improve UX auto-saving layouts when docks are modified, and new 'X' icon to delete layouts (or reset the 'Default' layout). * Remove old timeline position controls (Left/Right/Bottom buttons) from the Timeline configuration and from the layout selector * Add support to drag and drop docks to other sides with real-time feedback using a semi-transparent UILayer * Add a context menu w/right-click to dock the widget at the supported sides without drag-and-drop Some review comments in #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Here we are! First draft of the finished Dock & Dockable UI
Some things to finish:
Dockables know where they're docked (aka make the logic).Bonus things:
m_actionButtonin theLayoutSelector::LayoutItemand then only show it when hovering over the item, but I could NOT get it to work reliably.