fix: eliminate window flickering and Sketcher icon clipping #172

Merged
forbes merged 2 commits from fix/ui-flicker-and-icon-clipping into main 2026-02-11 01:29:29 +00:00
Owner

Changes

Window flickering (MainWindow.cpp, MainWindow.h):

  • Replace statusBar()->setStyleSheet() with QPalette color changes
  • setStyleSheet() was called on every status message (selection, pan, tooltip hover), forcing Qt to recalculate styles across the entire widget tree and repaint the whole window
  • QPalette changes only repaint the status bar itself

Sketcher icon clipping (KindredCreate.qss):

  • Add min-height: 24px to QListView::item
  • Constraint and element icons are 24x24 but the 4px padding was shrinking the available content area, causing icons to be visually clipped
## Changes **Window flickering** (`MainWindow.cpp`, `MainWindow.h`): - Replace `statusBar()->setStyleSheet()` with `QPalette` color changes - `setStyleSheet()` was called on every status message (selection, pan, tooltip hover), forcing Qt to recalculate styles across the entire widget tree and repaint the whole window - `QPalette` changes only repaint the status bar itself **Sketcher icon clipping** (`KindredCreate.qss`): - Add `min-height: 24px` to `QListView::item` - Constraint and element icons are 24x24 but the 4px padding was shrinking the available content area, causing icons to be visually clipped
forbes added 1 commit 2026-02-11 01:28:36 +00:00
fix: eliminate window flickering and Sketcher icon clipping
Some checks failed
Build and Test / build (pull_request) Has been cancelled
bf637af4e4
- Replace statusBar()->setStyleSheet() with QPalette color changes
  in MainWindow::showStatus() and clearStatus(). The setStyleSheet()
  call triggered full style recalculation on every status message
  (selection, pan, tooltip hover), causing the entire window to flicker.

- Add min-height: 24px to QListView::item in KindredCreate.qss so
  Sketcher constraint and element icons (24x24) are not clipped by
  the 4px padding.
forbes added 1 commit 2026-02-11 01:29:22 +00:00
Merge branch 'main' into fix/ui-flicker-and-icon-clipping
Some checks failed
Build and Test / build (pull_request) Has been cancelled
f535286a66
forbes merged commit e9c6c74785 into main 2026-02-11 01:29:29 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/create#172