egui/crates/egui_extras/src
Varphone Wong 1f414c059d
`egui_extras`: Fixed handling of `file://` protocol for images (#4107)
* Remove the leading slash from the path if the target OS is Windows.

This is because Windows paths are not supposed to start with a slash.
For example, `file:///C:/path/to/file` is a valid URI, but
`/C:/path/to/file` is not a valid path.

* Use the input URI consistently as the cache key.

Currently, the cache key is inconsistently set as either the path or the
URI, while the forget key is always the URI. This inconsistency should
be resolved.

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2024-03-08 10:24:34 +01:00
..
datepicker Highlight submenu buttons when hovered and open (#3780) 2024-01-07 22:08:32 +01:00
loaders `egui_extras`: Fixed handling of `file://` protocol for images (#4107) 2024-03-08 10:24:34 +01:00
image.rs Fix unwraps in SVG scaling (#3826) 2024-01-16 09:57:48 +01:00
layout.rs Fix interaction with widgets inside selectable rows of `Table` (#4077) 2024-02-20 14:50:13 +01:00
lib.rs Keep unsafe code forbidden when puffin is disabled (#3603) 2023-11-22 20:37:46 +01:00
loaders.rs Final image API doc tweaks 2023-09-27 16:40:26 +02:00
sizing.rs Add `#[inline]` to all builder-pattern functions (#3557) 2023-11-16 13:50:05 +01:00
strip.rs Fix: assign a different id to each table cell, avoiding id clashes (#4076) 2024-02-20 13:35:19 +01:00
syntax_highlighting.rs Use a selectable label for syntax-highlighted text in egui_extras 2024-01-22 14:47:58 +01:00
table.rs Fix: assign a different id to each table cell, avoiding id clashes (#4076) 2024-02-20 13:35:19 +01:00