Repository navigation
native-theme v0.7.2 — egui 0.37, GPUI Kit 0.10.0, KDE states from issue #4
native-theme 0.7.2 moves the egui connector to egui 0.37 and the gpui connector to GPUI Kit 0.10.0, and brings the remaining KDE items of issue #4: the states Breeze draws on hover, on keyboard focus and when pressed, each checked against Breeze's source and against what Qt paints.
Highlights
- Toolkits: native-theme-egui and native-theme-egui-widgets require egui 0.37.0; native-theme-gpui takes gpui-component, gpui-base and gpui-kit 0.10.0 on gpui-pre 0.3.12 (GPUI Fast 0.1.16 or later on the
gpui-fastfeature). Each toolkit's new widgets are themed and shown in its showcase. An application on egui 0.36 stays onnative-theme-egui = "=0.7.1". - Focus and hover: the focus ring only after keyboard focus where the platform does so (
defaults.focus_ring_keyboard_only); a button's border on hover and on focus; the hover outlines of the check box, radio button, combo box, menu item, list row and slider handle. - States Breeze draws: a toolbar button's hover, pressed and checked states; a dialog's default button (
button.default_button_*); the menu bar's title fills and padding (menu.bar_*) and a pressed menu item; a table header's hover and pressed fills; an open combo box; the text of an unfocused view's selection. - KDE details: whole-pixel font sizes where Qt rounds them (
defaults.font_whole_pixels: kde-breeze's 10 pt is 13 px), Breeze's menu padding andbutton.min_width82. - Caret blink:
input.caret_blink_on_ms,caret_blink_off_msandcaret_blink_timeout_ms, read from KDE, GNOME and Windows; gpui and egui blink at those durations. - gpui widget icons: gpui-component's own widget icons follow the theme's icon set (
icons::WidgetIcons). - SVG icons: rasterized with resvg 0.50.0, which no longer hangs on a looping
xlink:hrefchain or panics on a filter region smaller than its input.
Breaking changes: new public fields in ThemeDefaults, ButtonTheme, InputTheme, MenuTheme, ListTheme, SliderTheme, ComboBoxTheme, CheckboxTheme and ToolbarTheme, so a struct literal of them outside the crate needs the new fields or ..Default::default(); egui 0.37 in the egui crates.
Minimum Rust: 1.88 for native-theme, native-theme-build and native-theme-iced; 1.95 for native-theme-gpui, native-theme-egui and native-theme-egui-widgets.
Every Added, Changed and Fixed entry is in CHANGELOG.md.