Commit Graph
100 Commits
Author SHA1 Message Date
p 1453a4cadc dn: adjust the look of Entries
Alpine 3.24 Success
Arch Linux AUR Success
2026-09-02 15:39:10 +02:00
p de0cdb96b2 Cleanup
Alpine 3.24 Success
Arch Linux AUR Success
2026-09-02 15:08:00 +02:00
p ea0afd0c91 Questionable reference to q. pointer 2026-09-02 14:08:38 +02:00
p 3a454593c7 dn: fix macOS deprecation warnings 2026-09-02 13:50:33 +02:00
p eea61cf373 dn: flat CSD buttons 2026-09-02 13:43:09 +02:00
p 701363958e dn: hopefully fix macOS icon generation
Alpine 3.24 Success
Arch Linux AUR Success
2026-09-02 11:53:40 +02:00
p 77631c13c1 dn: make SVG rendering more reliable 2026-09-02 11:29:45 +02:00
p 1cdb888d31 Recolour icons 2026-09-02 11:24:25 +02:00
p 2899903839 dn: better macOS quit
Alpine 3.24 Success
Arch Linux AUR Success
2026-09-01 16:28:50 +02:00
p 81a3df93d4 dn: some button are borderless
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-30 08:03:49 +02:00
p 5a80297aed dn: remove bullshit from assoc code 2026-08-30 07:52:39 +02:00
p 70097febf8 dn: go to location 2026-08-30 07:13:34 +02:00
p ec132e7368 Configuration 2026-08-30 06:49:41 +02:00
p 19c5d3a050 dn: single source of scale width truth
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-30 05:51:09 +02:00
p c232b7349f Fix path handling 2026-08-30 05:42:10 +02:00
p a1933c602f Streamline macOS key handling 2026-08-30 05:39:05 +02:00
p 615170c09e Clean up tests 2026-08-30 04:48:31 +02:00
p 1b752be290 Redo thumbnailing 2026-08-30 04:48:31 +02:00
p a7c8bf5e09 dn: avoid conversions
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-29 14:42:56 +02:00
p 0b4f869804 dn: all premultiplied 2026-08-29 14:37:47 +02:00
p cb7e66fdc2 dn: fix alpha blending of thumbnails 2026-08-29 14:28:33 +02:00
p 542c06ee70 Fix shutdown crash 2026-08-29 14:18:24 +02:00
p ead161230d Fix Bayer 2026-08-29 14:12:33 +02:00
p efa51956d9 Adjust keyboard bindings
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-29 13:26:06 +02:00
p 3abbfbd890 Adjust headers
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-29 07:24:44 +02:00
p 0e74ae914f Make note of an unfortunate situation 2026-08-29 07:02:12 +02:00
p edfa130ac4 Use Wuffs 0.4, add QOI and NetPBM
Alpine 3.24 Success
Arch Linux AUR Success
Compiler warnings out.
2026-08-29 03:26:30 +02:00
p da9a08ca6e Add NIE, WBMP decoding 2026-08-29 02:52:48 +02:00
p bcc4bda04e It's a filter, not exactly search
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-29 01:41:38 +02:00
p 24f8ce0b2e Nuke toolbar proxies 2026-08-29 01:32:27 +02:00
p 5f2af3f40a WIP: Reimage overflows
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-28 15:55:20 +02:00
p ad83698390 Tune up the search input box
Uhhh...
2026-08-28 14:18:57 +02:00
p ef82e588ca Cache directory properties
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-28 12:44:05 +02:00
p bbe5de4ab2 Speed up context menu 2026-08-28 11:56:44 +02:00
p b76a2a3a09 Cache common profiles 2026-08-28 11:24:34 +02:00
p 90717bd635 We don't want no zeroes
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-28 10:04:36 +02:00
p 0e82c1b287 Cleanup 2026-08-28 10:01:40 +02:00
p 53865f82a1 Cleanup 2026-08-28 09:44:50 +02:00
p 45b4f73ada Cleanup, adjust glow offsets 2026-08-28 09:40:32 +02:00
pandClaude Opus 5 5b440541e5 Give Rect edge accessors and Kit rect-shaped draw calls
The draw list speaks floats over four corners, so every widget spelled out
the same conversion.  draw_fill(), draw_border(), clip_to() and clip_pop()
take the Rect that layout already produced.

They live on Kit, not OverlayList: overlay.hpp includes only Vulkan and two
standard headers, and pulling Rect down would couple the drawing layer to
the widget layer for nothing.  focus_ring() and draw_shadow() set the
precedent.

Distinct names rather than overloads of the four-float entry points, so a
call site says which one runs.

right(), bottom() and empty() replace hand-written edge arithmetic where it
reads as an edge -- not where the expression merely happens to contain one.
empty() also absorbs the guards that compared int fields against 0.0f.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 09:15:06 +02:00
pandClaude Opus 5 34d7d69dfa Drop guards the pixel conversion made dead
Kit::dpr_ is a positive invariant: it starts at 1.0f, and both writers
clamp, so the "dpr > 0 ? dpr : 1" dance at every read was checking
something that cannot happen.  thumb_dest_params() keeps its clamp, being
the one that takes dpr as a parameter.

Browser's set_dpr() re-tested a delta that its callee had already decided
on; Splitter::min_w's fallback repeated the same 8.0f its default and its
only assignment already spell out.

GridRow::y/h and layout_w_ held integers in floats.  Kit::px() was
open-coded three times.  kGlow duplicated kGlowPts.  Also removes
kWinPadY, which had no uses before this series either.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 09:11:11 +02:00
pandClaude Opus 5 d835141823 Drop the overlay's framebuffer scale
Widget geometry is in device pixels now, so the draw list's own grid is
1:1: the sole caller of begin() passed a literal 1.0f, making every
multiplication and division by fb_scale a no-op.

Rounding stays.  Drawing still adds fractions on top of integer layout --
glyph origins, the entry caret's scroll offset, glow edges -- so snap_fb()
keeps rounding, just without the scale.

Also renames begin()'s width_pts/height_pts to _px, which is what they
have carried since the conversion, and what makes them correct as the NDC
divisor.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 09:08:32 +02:00
pandClaude Opus 5 57713875f3 Remove dead toolkit members
Kit::text_ascent() had no callers: baseline placement goes through
text_height() and centring.  Titlebar::paint() only called the base
Panel::paint() it overrode.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 09:07:05 +02:00
pandClaude Opus 5 2b22cfbada Scale hairlines and icon chrome with the display
Moving the draw list to device pixels left its default stroke thickness
of 1.0 meaning one device pixel, where it used to mean one point that
the overlay scaled up.  Every rule, border and caret therefore came out
a single physical pixel at any scale, which at 200% is half as thick as
it should be.

Add Kit::hairline() for the thinnest visible line at the current scale,
and pass it explicitly at every stroke and line call site, rather than
leaning on a default whose unit is no longer what the callers assume.
Panel's bottom rule keeps its half-width inset, since add_line() still
centres an axis-aligned band on a pixel centre.

The same oversight hid in three more places that consumed a point
constant as if it were a pixel extent: the glow quad, which has to match
a ramp rasterised at kGlowPts * dpr or it stretches; MenuItem's check
marks and chevrons; and the browser's thumbnail frame.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 08:52:08 +02:00
pandClaude Opus 5 cfeb9da309 Lay widgets out in integer device pixels
The toolkit laid out in logical points and reconciled with the pixel
grid by multiplying by dpr, rounding, and dividing back -- Kit::snap,
snap_size and snap_rect, called from nearly every measure() and
arrange().  That bought a class of rounding errors rather than removing
one: positions rounded to nearest while sizes rounded up, so insetting a
rect grew it back out (hence the workaround in focus_ring); neighbours
snapped independently and disagreed, most visibly across the toolbar's
three slots; and grow-shares divided in floats lost up to a pixel per
child with no way to recover it.  The draw list then snapped everything
again on emit, so none of it was what made drawing crisp.

Widget geometry is now integral device pixels, and the arithmetic is
exact by construction.  Rect holds ints, the three snap primitives are
gone along with the round-versus-ceil asymmetry, and text metrics answer
in pixels directly rather than dividing by dpr for a caller that only
multiplied it back.  Growing children now share the remainder a pixel at
a time, so they fill their container exactly.

Design constants stay in points -- 6pt of padding has to stay 6pt on any
display -- and convert on use through Kit::px().  Converting rather than
baking keeps a sum of point terms rounding once instead of once per
term, and covers the per-widget pad_x/pad_y fields too.  Persistent
geometry stays in points for the same reason: dpr is per-window and
changes when a window moves between displays, so a stored pixel count
would change physical size.  That is why Page::sidebar_w is still a
point value.

Genuinely continuous quantities stay float and round only where they
become geometry: scroll offsets, the viewer's pan, zoom and rotation,
and pointer positions.  The scroll thumb keeps its ratios so its length
does not jitter mid-drag.

Points meet pixels at three boundaries now, each converting once: input
events and the host size on the way in, and the input method's caret
rectangle, the window-menu position and the resize mask on the way out.
The draw list is fed device pixels with a scale of 1.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 08:44:24 +02:00
pandClaude Opus 5 ca4c49216a Guard dn against silent float truncation
Widget geometry is moving to integral device pixels, where an implicit
float-to-int conversion is a layout bug rather than a rounding detail.
Make it an error, so the compiler produces the worklist.

Scoped to the dn target: vendored dependencies do not build clean under
it.  -Wimplicit-int-conversion is Clang-only, hence the second block.

This turns up four stray double literals in the CIE diagram, which the
flag reports as double-to-float narrowing; spell them as floats.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 08:14:44 +02:00
p b83f1f9548 Update documentation
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-28 07:43:28 +02:00
p 5a95be8faa Add comment
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-28 07:21:02 +02:00
p 3a485f077d Namespace, clang-format 2026-08-28 07:18:58 +02:00
p 1592754b22 Adjust padding 2026-08-28 06:47:22 +02:00
p c61ef9cc2c Reduce padding 2026-08-28 06:40:41 +02:00
p 49794fd7dd Constrain the right edge of tooltips for shadow 2026-08-28 06:34:01 +02:00
p 7362f97a55 Patch up rect coordinates
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-28 04:57:37 +02:00
p 4a7c8ea993 Clear up focus 2026-08-28 04:54:53 +02:00
p 6e0c535349 Correct rectangles 2026-08-28 04:32:56 +02:00
p eeff6db811 Cleanup 2026-08-28 04:23:08 +02:00
p e08f765879 More regular hints 2026-08-28 04:01:48 +02:00
p 4f18829ab1 Incremental search in the browser 2026-08-28 03:53:30 +02:00
p c72c1b4cf0 Missing file
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-27 15:42:11 +02:00
p e58a73b4dc Bookmarks, not stored
Alpine 3.24 Scripts failed
Arch Linux AUR Scripts failed
2026-08-27 15:26:45 +02:00
p 2962c0d0ae Glycin
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-27 14:39:39 +02:00
p 8510fb8e87 Fix associations list
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-27 13:55:45 +02:00
p 4e85deab3f Cursor, open with submenu 2026-08-27 13:39:06 +02:00
p 688de0b39a Fix C-n after startup
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-27 13:12:26 +02:00
p 2d0cfd9b75 Patch up focus 2026-08-27 13:12:26 +02:00
p 525b55efba Clean up mnemonics render 2026-08-27 13:12:26 +02:00
p 3e0895af48 Cleanup
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-27 13:11:10 +02:00
p 955715bb2a Cleanup 2026-08-27 12:45:02 +02:00
p 65cc40b8f5 Fix macOS build 2026-08-27 10:47:37 +02:00
p 77af7e786d Make CSD menus work more reliably
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-27 08:03:55 +02:00
p bafb9723ff Improve focus behaviour 2026-08-27 07:16:48 +02:00
p 30bfb44adf Let's call it a URL 2026-08-27 07:03:52 +02:00
p 945a48a3bb Simplify 2026-08-27 07:03:05 +02:00
p 3d1a1f75a2 Merge classes 2026-08-27 06:47:33 +02:00
p 2faca42f6c Refactor IPC 2026-08-27 06:28:18 +02:00
p c9c49de15a Adjust actions
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-27 06:17:55 +02:00
p 09a5b26b78 Switch statement 2026-08-27 06:12:26 +02:00
p 94307aed00 Fix links 2026-08-27 06:00:03 +02:00
p acaa561d34 Move hints into kit-chrome
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-27 00:35:08 +02:00
p c65a33db51 Cleanup 2026-08-27 00:29:20 +02:00
p 27ad6fa861 Cleanup
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-26 23:04:44 +02:00
p f2c5129d4a Cleanup 2026-08-26 22:31:50 +02:00
p 920c2f15b0 Get rid of mnemonic_index()
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-26 22:00:54 +02:00
p 3cf1717047 Derive a constant 2026-08-26 21:28:17 +02:00
p 5a6d0ce592 Follow a naming pattern
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-26 21:23:10 +02:00
p e521f3e987 Don't show menu items selected when click dragging 2026-08-26 21:03:32 +02:00
p 826ede2e42 Restructuralise the toolkit 2026-08-26 12:28:29 +02:00
p 0eb804a091 Unfuck dialogs 2026-08-26 11:43:23 +02:00
p 8300011f54 Cleanup 2026-08-26 11:43:21 +02:00
p 7ef43dc919 Cleanup
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-26 11:06:22 +02:00
p e8d055cdb8 Don't lose dialogs on resize
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-26 11:04:09 +02:00
p ccdecbd006 A bit more real modals
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-26 09:33:16 +02:00
p f78785ffc4 UI adjustments
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-26 08:44:33 +02:00
p 31aa40f4bd Windows IPC 2026-08-26 08:04:48 +02:00
p 51925b5a51 Performance improvements
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-26 06:28:49 +02:00
p 577151d573 Fixup
Alpine 3.24 Success
Arch Linux AUR Success
2026-08-26 05:03:00 +02:00
p d30768e4e7 Improve macOS styling 2026-08-26 05:00:53 +02:00
p afe14e3f16 Cleanup 2026-08-26 05:00:53 +02:00
p 2c34ba5650 URLify 2026-08-26 05:00:53 +02:00
p 6518a8880b Remove bullshit 2026-08-26 05:00:53 +02:00