Emoji picker (Super+.): search, tabs, skin tones, recents, text-input-v3 insertion
CI / test (push) Canceled after 0s
CI / test (push) Canceled after 0s
Compositor-drawn Win+. style picker. The focused app keeps keyboard focus so
its text-input-v3 field stays enabled; the emoji goes in with commit_string,
or onto the clipboard with a visible notice when the app has no text field.
Shortcut lives in the shortcut table (rebindable in Settings > Shortcuts).
- compositor/wayland/text_input.mbt: zwp_text_input_manager_v3 (global 12)
- compositor/emoji: Emoji 18.0 + CLDR 49 data (Unicode License), search,
picker model, CBDT/CBLC + GSUB reader for Noto Color Emoji
- Chandra's own pinned bitmap Noto Color Emoji (scripts/fetch-emoji-font.sh,
just emoji-font); Fedora's COLRv1 copy can't be drawn. Missing font shows
an error panel.
- raster WIT: emoji-font, emoji-has, emoji-image; served by wasmhost
- state.edn :emoji {:recent [...] :skin-tone n}
- tests incl. a fake text-input client; docs/emoji-picker.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hkABDGJixotaqFv2X2
This commit is contained in:
39 files changed
+4942
-41
No files matched your search
@@ -66,6 +66,15 @@ interface raster {
|
||||
/// picture). `reuse`: an earlier handle from this function or `thumbnail` to overwrite in place,
|
||||
/// 0 for a new one. 0 when the size is silly or `rgba` is too short.
|
||||
image-pixels: func(w: s32, h: s32, rgba: list<u8>, reuse: u32) -> u32;
|
||||
/// Open the colour emoji font (Noto Color Emoji from the usual places, or the file
|
||||
/// CHANDRA_EMOJI_FONT names) for the emoji picker: the path it was read from, or a message
|
||||
/// saying why there is none and what to install. Read once; later calls give the same answer.
|
||||
emoji-font: func() -> result<string, string>;
|
||||
/// For each emoji in `texts`, whether the font has one picture for it.
|
||||
emoji-has: func(texts: list<string>) -> list<bool>;
|
||||
/// The font's picture for emoji `text`, scaled to fit `px` x `px`, as an image for `draw-image`
|
||||
/// (the same text and size give the same handle). 0 when the font has none or isn't open.
|
||||
emoji-image: func(text: string, px: s32) -> u32;
|
||||
/// Draw a frame into the host framebuffer.
|
||||
submit: func(f: frame);
|
||||
/// The framebuffer as RGBA8888 (for screenshots and tests; the display path never needs it).
|
||||
|
||||
Reference in new issue
Block a user