1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 12:50:04 -04:00

Style tweaks (#2406)

* Note the namechange of egui::color to egui::ecolor

* Use a solid triangle for collapsing headers and windows

* Add Shadow::NONE

* Add Visuals::panel_fill, window_fill and window_stroke

* Bug fix: ComboBox::width sets the outer width of the ComboBox

* egui_extras::Table: add functions to access the `Ui` for the header/body

* ComboBox: use solid triangle

* Tweak default menu margin

* Nudge panel separator lines so they stay visible

* Update changelogs
This commit is contained in:
Emil Ernerfeldt
2022-12-08 10:55:13 +01:00
committed by GitHub
parent 5effc68ba4
commit da0a178701
12 changed files with 164 additions and 92 deletions

View File

@@ -14,6 +14,11 @@ pub struct Shadow {
}
impl Shadow {
pub const NONE: Self = Self {
extrusion: 0.0,
color: Color32::TRANSPARENT,
};
/// Tooltips, menus, …, for dark mode.
pub fn small_dark() -> Self {
Self {