A layer's parts could be added to the mask or taken out of it, and nothing else. The selections that need composing most are the ones that are neither: the sky that is also bright, the subject that is also skin. With union and subtract alone, "this and that" had to be spelled as "this minus everything that is not that", which needs a second part that selects the complement and rarely exists. Join gains Intersect, stored as "intersect" in the part block of a sidecar. It is the product of the two coverages, dst * src, which is one more fixed-function blend state beside union's max and subtract's dst * (1 - src) (mask-editing.md 5.2): the same scratch texture, the same three vertices, no shader arithmetic. The product equals the minimum wherever either side is fully in or out, and is the softer reading where two soft edges overlap. Join::apply spells the three operations on the CPU so the GPU tests can be held to one definition. A layer that intersects with a part covering nothing now reports that it covers nothing, so it is not rasterised as an empty slice. Old sidecars never contain the word, so they read as before; a build from before this reads "intersect" as a union, the existing unknown-join fallback, which keeps the part visible rather than dropping it. Join::ALL keeps union and subtract at indices 0 and 1 so a stored panel index still means the same join.
22 KiB
How the application is driven
Every entry here is extracted from the comment beside the code that implements it, so this file cannot describe a gesture the application does not have. Add one by writing a GESTURE: block next to the implementation; there is nowhere else to write it.
48 gestures, in 4 places.
Develop
Set the white balance from the photograph
- Touch — Press "pick" in the group's heading, then tap something neutral in the picture
- Pointer — Press "pick", then click something neutral
Sampling a neutral is the first move of the tonal pass — every colour judgement afterwards is measured against where the grey was put — and guessing at two sliders until a wall stops looking green is the wrong way round. One click is one sample and one step to undo; the sliders stay, because a sampled neutral is where the decision starts rather than where it ends.
ui/dr-ui/ui/adjust.slint:158
Magnify the photograph by any amount
- Touch — Pinch it with two fingers
- Pointer — The scroll wheel over it
Anchored on the fingers' midpoint, and on the pointer, so the gesture reads as magnifying the picture rather than sliding it about. Double-tap is the way to an exact 1:1; this is the way to everything in between. Past 1:1 the pixels are shown as they are, square and unsmoothed; below it, filtered.
ui/dr-ui/ui/app.slint:1715
Move a magnified photograph about
- Touch — Drag it
- Pointer — Drag it
Only once there is something outside the viewport to reach, which is why the cursor becomes a hand exactly then. The view is clamped to the frame: panning past the edge would show undefined area beside the photograph, and that reads as a rendering fault rather than as the end of the picture.
ui/dr-ui/ui/app.slint:1808
Paint a mask by hand
- Touch — Choose Paint or Erase, then drag on the photograph
- Pointer — Choose Paint or Erase, then drag
A model's mask stops inside a shoulder and leaks into the hair, and no single edge control fixes two errors that go opposite ways. The whole stroke is one step in the history, so taking a mark back costs one press however long it took to make.
ui/dr-ui/ui/app.slint:1895
Take back the last change
- Touch — Tap the step above the current one in the History list
- Pointer — Click it, or press Undo in the History header
- Keyboard — Ctrl+Z
A whole drag is one step, so undo takes back a decision rather than a frame of a gesture. The list is there because arriving six steps back costs what arriving from one does.
ui/dr-ui/ui/app.slint:2123
Do it again after taking it back
- Touch — Tap the step below the current one in the History list
- Pointer — Click it, or press Redo in the History header
- Keyboard — Ctrl+Shift+Z
ui/dr-ui/ui/app.slint:2136
Copy the settings from this photograph
- Touch — Press Copy in the top bar
- Pointer — Press Copy in the top bar
- Keyboard — Ctrl+C
The button is the copy that has to work: a tablet has no modifier key to hold and no menu bar to hang the action from. The shortcut is an accelerator for a control that is on screen either way.
ui/dr-ui/ui/app.slint:2169
Paste the settings onto this photograph
- Touch — Press Paste in the top bar
- Pointer — Press Paste in the top bar
- Keyboard — Ctrl+V
The button names what would be pasted — "3 adjustments", and whether the crop is coming with it — which the shortcut cannot say. Both paste the same scope.
ui/dr-ui/ui/app.slint:2181
Choose which kinds of edit a copy carries
- Touch — Open Presets and toggle the kinds
- Pointer — Open Presets and toggle the kinds
- Keyboard — Ctrl+Shift+C, which offers Copy beside them
Lightroom's Copy Settings. Pasting a look across a shoot usually means leaving each frame's crop and rotation alone, and that is a choice to make at the moment of copying.
ui/dr-ui/ui/app.slint:2198
Export this photograph as the last one was
- Touch — Press Export in the top bar
- Pointer — Press Export in the top bar
- Keyboard — Ctrl+Shift+E
Every export runs on the defaults in Settings, so "as the last one was" is what the button already does. The chord is Lightroom's and darktable's, kept so hands that learned it there need not learn it again.
ui/dr-ui/ui/app.slint:2227
Choose how to export, then export
- Touch — Open Settings, then Export defaults
- Pointer — Open Settings, then Export defaults
- Keyboard — Ctrl+E
The export sheet is the export defaults alone with an Export button. What is chosen there is kept, so it is also what the next Ctrl+Shift+E uses.
ui/dr-ui/ui/app.slint:2239
Change which group of adjustments is on screen
- Touch — Tap a group in the rail down the left
- Pointer — Click a group in the strip above the develop column
- Keyboard — [ and ] step through them, wrapping round through "everything"
The groups are whatever the operation set declares itself to be about, so there are as many as the pipeline has and no key can be assigned to one of them by name. Stepping is the binding that survives a node being added.
ui/dr-ui/ui/app.slint:2264
Look at the photograph at 1:1
- Touch — Double-tap the photograph
- Pointer — Double-click it, or press the zoom readout floating over the canvas
- Keyboard — Z
Noise reduction and capture sharpening are judgements about single pixels, and a fitted view averages several of the file's into each one on screen — so the frame looks softer than it is and the correction goes too far. The point and the magnification survive opening the next photograph, which is what makes checking the same eye across forty portraits forty keystrokes rather than forty pans. From 1:1 on the photograph is drawn as its own pixels, each a hard-edged square, rather than smoothed into a blur.
ui/dr-ui/ui/app.slint:2299
Move to the next or previous photograph
- Touch — Tap a frame in the roll along the foot of the canvas
- Pointer — Click a frame in the roll
- Keyboard — Right arrow, D or space for the next; left arrow or A for the one before
The edit on screen is saved on the way out, so stepping through a folder is as much a departure as going back to the grid and loses nothing. A and D as well as the arrows, so the left hand steps along the roll while the right stays on the mouse. Unmodified only: Ctrl+D and Ctrl+A are not this.
ui/dr-ui/ui/app.slint:2354
See the photograph before you edited it
- Touch — Press and hold "Before"
- Pointer — Press and hold "Before"
- Keyboard — Hold \
Held rather than toggled, and no split screen: a split halves the working image on the tablet the column was sized for, and the comparison photographers describe making is a flick back and forth. It takes no history step, so checking whether a frame is overcooked costs nothing to undo afterwards.
ui/dr-ui/ui/app.slint:2487
Put one control back to its default
- Touch — Double-tap its track
- Pointer — Double-click its track, or right-click it
- Keyboard — R, for the control last moved
The column is 280px wide and the colour mixer alone puts thirty-six of these in it, so a reset button per row would be most of the width. Two ways in with a pointer because right-click is the one a hand already reaches for and double-click is the one that needs no second button. A group's own reset is in its heading; this is the single control.
ui/dr-ui/ui/controls.slint:294
See the photograph as a snapshot had it
- Touch — Press and hold the eye beside the snapshot
- Pointer — Press and hold the eye beside the snapshot
The same hold as "Before", against a point the photographer chose rather than the file: "the version I liked twenty minutes ago" is how a choice between two treatments is actually made. It takes no history step and changes nothing; letting go puts the edit back.
ui/dr-ui/ui/history.slint:92
Keep the photograph as it is now, under a name
- Touch — Type a name in the History panel and press Snapshot
- Pointer — Type a name in the History panel and press Snapshot
The history is forgotten with the sitting, on purpose; a snapshot is the photographer saying this one should not be. It is written into the sidecar as a version of the edit, so it survives a restart and reaches the other device. Pressing a snapshot puts the photograph back to it, as one step that undo takes back whole.
ui/dr-ui/ui/history.slint:307
Show or hide one mask layer
- Touch — Tap the ring at the head of its row
- Pointer — Click the ring at the head of its row
- Keyboard — H, for the selected layer history step, unlike holding "Before" — the layer really is off until it is switched back on.
Disabling a layer is the before-and-after a local edit constantly wants, so it is one press away rather than inside the row. It is an edit and does take a
ui/dr-ui/ui/masks.slint:213
Show or hide one mask on the photograph
- Touch — Tap the eye on its row
- Pointer — Click the eye on its row
A mask is judged by seeing where it falls, and two are judged by seeing where they meet — so each row has its own eye rather than the panel having one, and the eye is drawn in the colour the mask shows in, so the row says which shape on the picture is its. Nothing about the edit changes: this is how the photograph is looked at, and takes no history step.
ui/dr-ui/ui/masks.slint:280
Change how a part joins its mask
- Touch — Tap the + / − / ∩ chip on the part's row
- Pointer — Click the + / − / ∩ chip on the part's row
A chip that cycles rather than a menu, because a photographer flips a join while looking at the picture, not at the panel: add, take away, keep only where both agree, and round.
ui/dr-ui/ui/masks.slint:366
Leave one part out of a mask, and put it back
- Touch — Tap the ring on the part's row
- Pointer — Click the ring on the part's row
The question a correction raises is whether it did what it was for — whether the stroke filled the shoulder, whether the subtracted gradient took only the sky. Removing it answers that and loses it. The same ring the layer wears, one row down, because it is the same question about a smaller thing.
ui/dr-ui/ui/masks.slint:405
Collections sidebar
Pick a collection up to rearrange the tree
- Touch — Press and hold it until it lifts, then drag it
- Pointer — Drag it, or hold it until it lifts and then drag
The tree is inside a Flickable, which claims any drag beginning inside it — so with a finger a drag on a row is a scroll until something says otherwise. The hold is that something, and it is what every mobile list already uses to pick a row up. The row lifts the moment it fires, so the gesture says it has been understood before anything moves.
ui/dr-ui/ui/collections.slint:335
Act on a collection — rename, nest, un-nest, delete
- Touch — Press and hold the collection, then let go without moving
- Pointer — Right-click it
The hold arms a drag and opens this menu, and which one you get is decided by whether you moved — the same fork the grid uses. One menu for everything done to a row, because there is one hold per row: while the hold opened the offline question by itself, nothing else the tree can do had a touch route.
ui/dr-ui/ui/collections.slint:346
Take a collection back out of the one it is nested in
- Touch — Hold it, then drag it onto "All photographs" — or let go and choose "Move to top level"
- Pointer — Drag it onto "All photographs", or right-click it and choose "Move to top level"
Nesting is a drag of one row onto another, and its inverse had no gesture at all: "All photographs" refused every drop, which is right for a photograph — it is already in the library — and wrong for a collection, which has a top level to be returned to. Without it a collection dragged into another was in there permanently.
ui/dr-ui/ui/collections.slint:356
Rename a collection
- Touch — Hold the collection, then "Rename"
- Pointer — Double-click its name, or right-click it and choose "Rename"
Double-click is what a file manager and a Lightroom panel use for the same thing, so it needs no discovering — but nothing on screen says so, which is what the menu item is for.
ui/dr-ui/ui/collections.slint:369
People
Pull a face out of the wrong person
- Touch — Tap the faces that do not belong, then "Split off"
- Pointer — Click the faces that do not belong, then "Split off"
Grouping over-merges on siblings, on parents and children, and on the same person a decade apart, so splitting is as prominent as merging. A tool that can only merge makes its own errors permanent.
ui/dr-ui/ui/identity.slint:188
Rule on a suggested face
- Touch — Tick to confirm it, cross to reject it
- Pointer — Tick to confirm it, cross to reject it
A face is either the system's guess or the user's judgement, and the two are never conflated. A rejection is remembered, so the face is not suggested for that person again. The gesture note above is the whole label: a tick and a cross are only "confirm" and "reject" to someone who can see the suggestion they sit beside, and IconButton's fallback would announce them as "check" and "cross" — two icon names that say nothing about which person is being ruled on.
ui/dr-ui/ui/identity.slint:208
See a person's photographs
- Touch — Choose them in the rail, then "Show photos"
- Pointer — Choose them in the rail, then "Show photos"
This is the point of having identified anybody. Without it the screen is a filing cabinet with no drawer handles.
ui/dr-ui/ui/identity.slint:635
Change how faces are grouped
- Touch — "Grouping…", move the dials, then Regroup
- Pointer — "Grouping…", move the dials, then Regroup
The right match confidence is a property of your library, not of the model. "What would this do?" answers for this library without writing anything; names, confirmations and the groups you have set aside are kept whatever the dials say.
ui/dr-ui/ui/identity.slint:672
Library grid
Start selecting several photographs
- Touch — Press and hold a photograph, or press Select in the header
- Pointer — Ctrl-click, or press Select in the header
Touch has no ctrl, so without a mode there is no way to select a second photograph — the first tap would open it. The hold is the fast way in and the button is the one that can be found.
ui/dr-ui/ui/library.slint:1591
Add or remove one photograph
- Touch — While selecting, tap it
- Pointer — Ctrl-click it
While selecting, a tap never opens. That is the whole point of the mode: one meaning per gesture at a time. Press Done to get tap-to-open back.
ui/dr-ui/ui/library.slint:1600
Leave selecting
- Touch — Press Done in the header
- Pointer — Press Done in the header
- Keyboard — Escape
ui/dr-ui/ui/library.slint:1608
Pick a photograph up to drag it
- Touch — Press and hold it until a ring opens around it, then drag
- Pointer — Drag it
A finger on a photograph might be starting a scroll, and for the first half-second the grid assumes it is. Holding says otherwise, and the ring is the grid saying it heard — from there the drag cannot be lost to a scroll. A mouse never waits: the cursor is precise enough that a sideways drag is unambiguous from the first pixel.
ui/dr-ui/ui/library.slint:1638
Select a range
- Touch — While selecting, press "Select to…", then tap the last photograph of the run
- Pointer — Shift-click the last photograph of the run
This replaced a double tap, which had no visible state and could take forty photographs by accident. The run is resolved by the catalog rather than by what is on screen, so the grid can scroll between the two taps — the ranges that hurt on a tablet are longer than a screenful, which is exactly where a finger sweep runs out.
ui/dr-ui/ui/library.slint:1703
Take the blinks out of a burst
- Touch — Narrow to a person, then tap "Eyes open" beside their name on the filter bar
- Pointer — Narrow to a person, then click "Eyes open" beside their name on the filter bar
Face indexing reads each face's eyes. The chip drops frames where the chosen people are caught blinking, and leaves sunglasses and eyes it could not read alone.
ui/dr-ui/ui/library.slint:2411
Find photographs with two people in them
- Touch — Open the People chip on the filter bar, tap each name, then switch the chip beside them to "all of them"
- Pointer — Open the People chip on the filter bar, click each name, then switch the chip beside them to "all of them"
"Any of them" is a union and "all of them" is an intersection. The tray is where both terms and the choice between them live, because a filter belongs on the filter bar.
ui/dr-ui/ui/library.slint:2440
Export the selection as the last export was
- Touch — Select them, then Export in the selection bar
- Pointer — Select them, then Export in the selection bar
- Keyboard — Ctrl+Shift+E, or Ctrl+E to see the export settings first
Lightroom's and darktable's chords. Every export runs on the saved defaults, so the plain chord opens them beside an Export button and the shifted one skips straight to exporting.
ui/dr-ui/ui/library.slint:2993
Paste copied settings onto the selection
- Touch — Select them, then "Paste to N" in the selection bar
- Pointer — Select them, then "Paste to N"
- Keyboard — Ctrl+V
ui/dr-ui/ui/library.slint:3017
Show only photographs with some number of stars
- Touch — Tap a star chip in the filter bar
- Pointer — Click a star chip in the filter bar
- Keyboard — Hold F and tap a digit for exactly that many stars, or two digits for everything between them; tap F alone to show every rating again
The chips say "this many or more". A range with a ceiling — the twos and threes still to be decided — is the keyboard's alone, and the bar says so in words while it holds.
ui/dr-ui/ui/library.slint:3039
Resize the thumbnails
- Touch — Pinch the grid with two fingers
- Pointer — Ctrl and the scroll wheel
There is no wheel on a tablet, so without the pinch the cell size could only be changed by a control a finger cannot reach.
ui/dr-ui/ui/library.slint:3245
File photographs in a collection
- Touch — Drag a photograph — or a whole selection — onto a collection in the sidebar. Starting a drag stops the press becoming a hold, so it cannot leave you in selection mode.
- Pointer — Drag a photograph — or a whole selection — onto a collection in the sidebar
The selection is what the drag carries, which is why selecting several is worth the mode: forty photographs file in one gesture.
ui/dr-ui/ui/library.slint:3442
Open a photograph
- Touch — Tap it — a single tap, any length
- Pointer — Click it
A tap opens; a tap that moved does not. Travel is what separates a deliberate tap from a hand brushing past, and it is the only thing that does: the two are the same length. An earlier version required the finger to dwell 120 ms instead, and that rejected ordinary taps — a real tap is often quicker than a brush.
ui/dr-ui/ui/library.slint:3723
Rate a photograph without opening it
- Touch — Tap a star on the cell
- Pointer — Hover the cell, then click a star
- Keyboard — 0 to 5 with the pointer over it, or on the selection
A star has to take the press without it also reaching the cell, or every rating throws the user into develop.
ui/dr-ui/ui/library.slint:3843
Choose the frame a folded burst shows
- Touch — Open the burst, then tap the ring on the frame you want
- Pointer — Open the burst, then click the ring on the frame you want
A folded burst draws its earliest frame, which is a fact about the clock and not a judgement about the photograph — nothing in this application ranks a frame (FR-CULL-5). But the point of a burst is that one of the twelve is better than the other eleven, and the photographer is the only one who knows which. So the choice is offered on the frames themselves, while they are open and side by side, which is the one moment the alternatives are on screen to be compared.
ui/dr-ui/ui/library.slint:3975
Drop the selection but keep selecting
- Touch — Press Clear in the selection strip
- Pointer — Press Clear in the selection strip
Distinct from Done, which leaves the mode entirely. Clearing keeps it, so the next selection can start straight away.
ui/dr-ui/ui/library.slint:4651
Select everything the grid is showing
- Touch — While selecting, press "Select all"
- Pointer — While selecting, press "Select all"
- Keyboard — Ctrl+A
A scoped grid of two hundred frames is two hundred taps otherwise, and "all of them, except those three" is a far more common shape than the taps it took to say it.
ui/dr-ui/ui/library.slint:4668
Take photographs out of a collection
- Touch — Select them, then "Collections…" in the selection bar
- Pointer — Select them, then "Collections…" in the selection bar
The badge on a cell says a photograph is filed in three collections and never which. This is the sheet that names them, and the only way out of one the grid is not currently scoped to.
ui/dr-ui/ui/library.slint:4792