Skip to content

21 improve qt colorgradient widget layout - #35

Merged
otto-link merged 2 commits into
devfrom
21-improve-qt-colorgradient-widget-layout
Aug 18, 2026
Merged

otto-link merged 2 commits into
devfrom
21-improve-qt-colorgradient-widget-layout

Conversation

@otto-link

Copy link
Copy Markdown
Member

No description provided.

…grid and scroll area

- Replace single horizontal preset strip with a responsive PresetGridWidget that wraps presets dynamically based on available width
- Extract gradient bar visualization into a dedicated GradientBarWidget with fixed height to prevent bar and stop handles from squashing during resize
- Host gradient bar and presets within a QScrollArea to ensure vertical scrollability
- Add viewport resize filter for seamless responsive reflow on window resize
- Declare GradientBarWidget in gradient_picker.hpp for standard CMake AUTOMOC compatibility
- Update test harness with a large preset count to validate scrolling

Closes #21
@otto-link otto-link linked an issue Aug 18, 2026 that may be closed by this pull request
4 tasks
@otto-link
otto-link changed the base branch from main to dev August 18, 2026 12:09
…llable

- Pin GradientBarWidget at the top of GradientPicker outside the scroll area
- Enclose only PresetGridWidget inside QScrollArea so only presets scroll
- Update PresetGridWidget reflow to maintain proper height on resize
@otto-link
otto-link merged commit ef71cab into dev Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Qt ColorGradient widget layout

1 participant