UI: compact layer controls, layers/details popouts, and preview for selected layers#35
Open
Alyndiar wants to merge 2 commits into
Open
UI: compact layer controls, layers/details popouts, and preview for selected layers#35Alyndiar wants to merge 2 commits into
Alyndiar wants to merge 2 commits into
Conversation
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.
Motivation
Description
LayerListPanelwith a two-rowQGridLayoutand compact symbolic labels, setQSizePolicy.Minimumfor these buttons, and add tooltips mapped to the original texts via_update_button_labels(buttons:+L,+P,✎,✓/✕,↑,↓,T,-,✓A/✕A).QScrollAreaby settingsetVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOn)and hide horizontal scrollbars where appropriate.QToolButton(⤢) tolayers_groupanddetails_groupand implement_open_section_popout/_restore_section_popoutto move a group into aQDialogand restore it on close.QScrollAreawith always-on vertical scrollbar and keep preview centered in its area; set left panel widget stretches when adding to the left layout (layers_groupstretch=4,details_groupstretch=4,preview_groupstretch=2) to approximate 40%/40%/20% vertical allocation.SpiroWindow._refresh_previewrender when alayeris selected (not onlypath) by treating the hole offset/direction as0.0and applyingpath_zoomonly when apathis selected, leaving other math unchanged and reusing existing pen/wheel computations.Testing
Codex Task