v0.70.0: customize the toolbar — drag items in and out, resize, fill or exact size; a light/dark button
This commit is contained in:
@@ -192,6 +192,25 @@ persistence) → GUI (Qt widgets that read the manager and connect to its signal
|
||||
share of the width. Since the Library button left the
|
||||
sidebar, `MainWindow` must hand it the first focus, or the playlist tree
|
||||
takes it and opens its first playlist at startup.
|
||||
**Both rows are a customizable toolbar** (Round 101, `gui/toolbar.py`,
|
||||
View › Customize Toolbar… or a right-click on the bar): preferences'
|
||||
`toolbar` is two rows of `{id, size: auto|fill|exact, width}`, and
|
||||
`TransportBar.place_rows` lays them out by hand with the pure
|
||||
`toolbar.lay_out` (fills share the leftover; an *anchored* slot sits at
|
||||
its anchor unless the items before it need the room). "auto" is what
|
||||
reproduces the old bar: the now-playing panel fills row 0, and in row 1
|
||||
the Library button spans the sidebar, the view's header starts at the
|
||||
view and seek/bpm sit under the now-playing panel/DJ box
|
||||
(`ANCHORED_UNDER`) — the Round 69 geometry tests run against the
|
||||
default. Widgets are measured once (`_natural`/`_least`) and then freed
|
||||
of their fixed sizes, so a box can go in either row. Customize mode lays
|
||||
a `CustomizeOverlay` over each row (it takes every click; edges are
|
||||
resize handles → exact width; right-click → Automatic / Fill space /
|
||||
Exact size) and a `CustomizePanel` under them (items not shown, both
|
||||
spacers always; Restore Defaults). Moves are `QDrag`s with
|
||||
`toolbar.MIME`; a toolbar item dropped anywhere that refuses it is
|
||||
removed. Library and the view's header are row-1-only and can't be removed.
|
||||
The light/dark button (`theme` item) is not in the default rows.
|
||||
The transport-bar visualizer tile (`gui/visualizer.py`, Round 86): a
|
||||
click opens it big, and while big the tile stays blank; hovering paints
|
||||
two controls over it — a colour wheel (left: colour / gray / off) and ▲/▼
|
||||
|
||||
Reference in New Issue
Block a user