aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-24 10:38:51 +0200
committerDanilo M. <danix@danix.xyz>2026-08-24 10:38:51 +0200
commit9d3ce9ca53cb3b660323903a1db1ea6a31c1a03e (patch)
treea9f9537a3273a9f8b0987d553600f4341d35e803 /docs
parent84249d5a74321deca3d37d2994473e08c5f5df28 (diff)
downloadllamachat-9d3ce9ca53cb3b660323903a1db1ea6a31c1a03e.tar.gz
llamachat-9d3ce9ca53cb3b660323903a1db1ea6a31c1a03e.zip
feat: pad code blocks, make the copy link a hover button
The copy link was a word-plus-glyph sitting above the block, always at full strength, with no feedback once clicked. It is now an icon-only button under the block, since Qt cannot float it over the tint. Qt draws almost no box properties on <pre>: padding and vertical margins are ignored, so the inset is margin-left/right and the room above and below is a tinted spacer line. The glyph alone renders small whatever font-size says, so the button is a tinted pill instead: grey at rest, the highlight colour under the pointer, and a tick on green once used. Qt rich text has no :hover, so hovering is QTextBrowser.highlighted() driving a re-render, the same way the toggles already re-render. The tick reverts after a moment rather than standing indefinitely, which would claim the clipboard still holds that block long after it stopped being true. Copying a second block first cancels the first one's revert.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions