Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ATTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ here with its author, source and licence. A file without a row is a bug.
| `crates/fluent2-icons/svg/*` | Microsoft Corporation | [microsoft/fluentui-system-icons](https://github.com/microsoft/fluentui-system-icons) @ `64e5aa75` | MIT | Generated subset (60 icons × 16/20/24 × regular/filled). Licence copy: `crates/fluent2-icons/LICENSE-FLUENT-ICONS`. |
| `crates/fluent2-egui/fonts/Inter-Regular.ttf` | The Inter Project Authors (Rasmus Andersson) | [rsms/inter](https://github.com/rsms/inter) tag `v4.1` @ `e3a3d4c57d5e`, `extras/ttf/Inter-Regular.ttf` | OFL-1.1 | Bundled UI fallback off Windows (feature `bundled-font`). Licence copy: `crates/fluent2-egui/fonts/LICENSE-INTER.txt`. |
| `crates/fluent2-egui/fonts/Inter-SemiBold.ttf` | The Inter Project Authors (Rasmus Andersson) | [rsms/inter](https://github.com/rsms/inter) tag `v4.1` @ `e3a3d4c57d5e`, `extras/ttf/Inter-SemiBold.ttf` | OFL-1.1 | Semibold face for the same fallback. Licence copy as above. |
| `crates/fluent2-egui/fonts/Noto-COLRv1.ttf` | Google LLC | [googlefonts/noto-emoji](https://github.com/googlefonts/noto-emoji) tag `v2.047`, `fonts/Noto-COLRv1-noflags.ttf` | OFL-1.1 | Bundled colour emoji fallback. Licence copy: `crates/fluent2-egui/fonts/LICENSE-NOTO-EMOJI.txt`. |
| `docs/screenshots/wi-1588/*.png` | fluent2-egui contributors | Generated by `crates/fluent2-egui/tests/font_snapshots.rs` (egui_kittest wgpu) from this repository's own widgets. The `selawik` set uses a temporary build with Selawik (microsoft/Selawik @ `89362e84`, OFL-1.1); see `docs/screenshots/wi-1588/README.md`. | MIT OR Apache-2.0 (own work); the Selawik renders show OFL-1.1 glyphs | Review screenshots for WI-1588. |
| `docs/images/gallery/*.png` | fluent2-egui contributors | Generated by `crates/gallery/tests/gallery_snapshots.rs` (egui_kittest wgpu, Mesa lavapipe) from this repository's own widgets; run `scripts/gallery-screenshots.sh --update`. | MIT OR Apache-2.0 (own work); the text is egui's bundled fonts (Ubuntu-Light, OFL-1.1/UFL) and Inter (OFL-1.1) | README widget gallery (WI-1910). |
| `crates/fluent2-egui/syntaxes/TypeScript.sublime-syntax` | Microsoft Corporation (grammar); bat-developers (conversion) | [microsoft/TypeScript-Sublime-Plugin](https://github.com/microsoft/TypeScript-Sublime-Plugin) @ `ba45efd0` `TypeScript.tmLanguage`, converted by [sharkdp/bat](https://github.com/sharkdp/bat) @ `f748c1a4` | Apache-2.0 (grammar); MIT OR Apache-2.0 (conversion) | TypeScript syntax for the `highlight` feature. Licence copy: `crates/fluent2-egui/syntaxes/LICENSE-TYPESCRIPT-SUBLIME.txt`. |
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ All notable changes are recorded here, following [Keep a Changelog](https://keep

Entry format and the per-PR fragment workflow are in [`changelog.d/README.md`](changelog.d/README.md).

## [0.4.1] - 2026-10-29

### Added

- Colour emoji fallback (Noto Emoji COLR/CPAL, OFL-1.1) and `MissingGlyphPolicy::Tofu` on install, so production text never panics on a missing glyph. The face is the optional `color-emoji` feature (off by default, and not compiled into wasm32), so the gallery wasm stays inside its compressed-size budget. egui's monochrome emoji faces still cover the glyphs when the feature is off.
- `EmojiPicker`: search, categories, recent emoji, keyboard movement and AccessKit names.
- `GroupedList`: a virtualised list of expandable groups. Only the rows in view are built, the current group's header sticks to the top while its rows scroll, and Left, Right, Enter and a header click expand and collapse. Headers are AccessKit groups; rows are list-box options.
- Inter-pane drag and drop: `data::pane_drag` carries a typed payload from a `DragSource` to a `DropTarget` in another pane, with hover and accept feedback, a keyboard "Move to" menu, and a polite AccessKit live region. The gallery's Pane drag page demonstrates it.
- `HtmlView` selects text across blocks (Copy places the range on the clipboard), highlights a case-insensitive find query and steps through its matches, reports the link under the pointer, and exposes the message as an AccessKit document of headings, paragraphs and links.
- `Textarea` and `RichTextEditor` take an optional `SpellChecker` the app supplies. The library ships no dictionary. Misspellings are underlined, a secondary click or Shift+F10 opens suggestions (replace or ignore), and the checker runs only when the text changes. `WordListChecker` is the small stand-in the gallery and tests use.

### Fixed

- A dialog whose body fits no longer wraps that body in a `ScrollArea`. egui 0.37 clips scroll children to the viewport even when the content fits, and on the first frame that viewport is shorter than the body, so a button in the body never received the click, was missing from AccessKit, and the click closed the dialog through the backdrop. The body scrolls only once its measured height is taller than the room left under the title and actions.
- `Input` inside a `Field` copies the field's label onto the text box's AccessKit node, so a field with no input label of its own still has an accessible name.

## [0.4.0] - 2026-10-29

### Breaking
Expand Down
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ resolver = "3"
members = ["crates/*", "xtask", "fixtures/*"]

[workspace.package]
version = "0.4.0"
version = "0.4.1"
edition = "2024"
license = "MIT OR Apache-2.0"
rust-version = "1.95"
repository = "https://github.com/TheDancingDeveloper-org/fluent2-egui"

[workspace.dependencies]
fluent2-tokens = { path = "crates/fluent2-tokens", version = "0.4.0" }
fluent2-icons = { path = "crates/fluent2-icons", version = "0.4.0" }
fluent2-egui = { path = "crates/fluent2-egui", version = "0.4.0" }
fluent2-tokens = { path = "crates/fluent2-tokens", version = "0.4.1" }
fluent2-icons = { path = "crates/fluent2-icons", version = "0.4.1" }
fluent2-egui = { path = "crates/fluent2-egui", version = "0.4.1" }
# One egui minor per release line; see UPSTREAM.md "egui" and docs/ARCHITECTURE.md "Versioning".
egui = { version = "0.37", default-features = false }

Expand Down
3 changes: 3 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Bundled:
- Inter Regular and SemiBold (v4.1, rsms/inter, e3a3d4c57d5e), Copyright (c) 2016 The Inter Project
Authors, SIL Open Font License 1.1. See `crates/fluent2-egui/fonts/LICENSE-INTER.txt` and
ATTRIBUTION.md.
- Noto Emoji COLR/CPAL (googlefonts/noto-emoji tag v2.047, fonts/Noto-COLRv1-noflags.ttf),
Copyright 2013 Google LLC, SIL Open Font License 1.1. See
`crates/fluent2-egui/fonts/LICENSE-NOTO-EMOJI.txt` and ATTRIBUTION.md.

Source provenance

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ What the crate offers, by module, mapped to Fluent 2. Rows are sorted by type na
| `DatePicker` | DatePicker | | Date and time |
| `Divider` | Divider | | Basic controls |
| `Dropdown` | Dropdown | | Basic controls |
| `EmojiPicker` | egui-only (emoji picker) | | Emoji |
| `Field` | Field (and Label) | | Basic controls |
| `FileCard` | Attachment (file card) | | Surfaces |
| `Input` | Input | | Basic controls |
Expand Down Expand Up @@ -122,6 +123,7 @@ What the crate offers, by module, mapped to Fluent 2. Rows are sorted by type na
| `CommandPalette` | egui-only (command palette) | | Command palette |
| `Dialog` | Dialog | | Surfaces |
| `DockArea`, `DockTree`, `SideDock` | egui-only (docking) | `docking` | Docking |
| `EmojiPicker` | egui-only (emoji picker) | | Emoji |
| `Drawer`, `BottomSheet` | Drawer (overlay and inline) | | Drawer |
| `FluentTooltip` (`TooltipExt::fluent_tooltip`) | Tooltip | | Surfaces |
| `MenuItem`, `context_menu`, `submenu` | Menu | | Surfaces |
Expand All @@ -142,6 +144,7 @@ What the crate offers, by module, mapped to Fluent 2. Rows are sorted by type na
| `find::FindBar` (`FindState`, `FindProvider`, `FindItems`, `TextLines`) | egui-only (in-app find, Ctrl+F) | | Find |
| `editable_list::EditableList` | egui-only (inline list editing) | | Editable list |
| `html::HtmlView` | egui-only (sanitised HTML, for mail) | `html` | HTML |
| `grouped_list::GroupedList` (`Group`, `GroupedListState`, `GroupedListResponse`) | egui-only (grouped virtual list, sticky headers) | | Grouped list |
| `list::List` | List | | List rows |
| `markdown::MarkdownView` | egui-only (Markdown) | `markdown` | Markdown |
| `NavigationView` | Nav | | Navigation view |
Expand Down
3 changes: 3 additions & 0 deletions changelog.d/pr181-feature-warnings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

- Builds with `RUSTFLAGS=-D warnings` under `--no-default-features` and single optional features (including `html`), and on `wasm32-unknown-unknown`. Colour emoji still installs when `bundled-font` is on.
6 changes: 6 additions & 0 deletions crates/fluent2-egui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ default = ["bundled-font"]
# every non-Windows target, and Windows without Segoe UI. Adds about 830 KB. Turn it off with
# `default-features = false` to keep egui's default face instead.
bundled-font = []
# Noto Emoji COLR/CPAL (`fonts/Noto-COLRv1.ttf`, about 2.7 MB raw) as a colour-emoji fallback,
# inserted after the UI face. Off by default, and the bytes are not compiled for wasm32 even
# when the feature is on: embedding them in the gallery wasm exceeds the compressed-size
# budget. Native apps that want colour emoji turn this on. Without it, egui's monochrome
# emoji faces still cover the glyphs.
color-emoji = ["bundled-font"]
# Mirror egui's AccessKit output into an invisible DOM layer on wasm so browser accessibility
# tools can discover widget roles, names and focus. No effect on native targets.
web-a11y = []
Expand Down
3 changes: 3 additions & 0 deletions crates/fluent2-egui/NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Bundled:
- Inter Regular and SemiBold (v4.1, rsms/inter, e3a3d4c57d5e), Copyright (c) 2016 The Inter Project
Authors, SIL Open Font License 1.1. See `fonts/LICENSE-INTER.txt` and
ATTRIBUTION.md.
- Noto Emoji COLR/CPAL (googlefonts/noto-emoji tag v2.047, fonts/Noto-COLRv1.ttf),
Copyright 2013 Google LLC, SIL Open Font License 1.1. See
`fonts/LICENSE-NOTO-EMOJI.txt` and ATTRIBUTION.md.

Source provenance

Expand Down
93 changes: 93 additions & 0 deletions crates/fluent2-egui/fonts/LICENSE-NOTO-EMOJI.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2013 Google LLC

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file added crates/fluent2-egui/fonts/Noto-COLRv1.ttf
Binary file not shown.
Loading
Loading