diff options
| author | Christian Kolset <christian.kolset@gmail.com> | 2026-06-03 16:43:32 -0600 |
|---|---|---|
| committer | Christian Kolset <christian.kolset@gmail.com> | 2026-06-03 16:43:32 -0600 |
| commit | 768c4c23b420e2f74e50c0bed78e3e26637e8339 (patch) | |
| tree | 892c6497bd24731e4a58692dd2003f443a202b56 /ui/style_light.qss | |
| parent | 93e7d0ecdc090fd4f0231b13933fc0fa095a1f22 (diff) | |
| parent | 7651f515728533506391e6cc719fe8ff32c339e7 (diff) | |
Merge plot-builder-layout-feature: dynamic BSP tiling layout canvas
Replaces layout radio buttons (Stacked/Side-by-Side/Grid) with a
drag-and-drop tiling canvas. Three drop zones per tile edge:
- squeeze (outer 1/6, amber): insert between two tiles
- split (1/6–1/3, blue): bisect tile 50/50
- center (green): swap tile positions
BSP tree stores layout; tree_to_grid() converts to rowspan/colspan for
pyqtgraph. _tree_equalize_ratios ensures all tiles share space equally
after any operation. Backward-compatible with existing .labdaq profiles.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'ui/style_light.qss')
| -rw-r--r-- | ui/style_light.qss | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/style_light.qss b/ui/style_light.qss index 38b91f8..e0a1987 100644 --- a/ui/style_light.qss +++ b/ui/style_light.qss @@ -124,3 +124,11 @@ QMenu#profileMenu { background:#ffffff; border:1px solid #e2e8f0; border-radius: QMenu#profileMenu::item { padding:7px 20px; color:#334155; } QMenu#profileMenu::item:selected { background:#dbeafe; color:#1d4ed8; } QMenu#profileMenu::separator { height:1px; background:#e2e8f0; margin:3px 8px; } +/* Layout canvas */ +QWidget#layoutCanvasBar { background-color:#f8fafc; border-bottom:1px solid #e2e8f0; } +QLabel#layoutCanvasLabel { font-family:"IBM Plex Mono",monospace; font-size:10px; font-weight:700; letter-spacing:2px; color:#4338ca; } +QFrame#layoutCanvasWidget { background-color:#f1f5f9; border:1px solid #cbd5e1; border-radius:4px; } +QFrame#layoutTile { background-color:#e2e8f0; border:1px solid #94a3b8; border-radius:5px; } +QFrame#layoutTile:hover { border-color:#4338ca; background-color:#c7d2fe; } +QFrame#layoutTileDragging { background-color:#bfdbfe; border:2px solid #3b82f6; border-radius:5px; } +QLabel#layoutTileLabel { font-family:"IBM Plex Mono",monospace; font-size:11px; font-weight:700; color:#334155; background:transparent; } |
