From 69cb6a7a257768bd64e9c268e1abf15432bc2834 Mon Sep 17 00:00:00 2001 From: Adanos020 Date: Sun, 18 Sep 2022 18:37:45 +0100 Subject: [PATCH] Expand 'Style Editor' in hello example --- examples/hello.rs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/examples/hello.rs b/examples/hello.rs index 415c94e..dfdc7db 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -127,6 +127,33 @@ impl MyContext { ui.separator(); + ui.label("Title text color unfocused"); + color_picker_color32(ui, &mut style.tab_text_color_unfocused, Alpha::OnlyBlend); + + ui.label("Title text color focused"); + color_picker_color32(ui, &mut style.tab_text_color_focused, Alpha::OnlyBlend); + + ui.separator(); + + ui.checkbox(&mut style.show_close_buttons, "Allow closing tabs"); + + ui.separator(); + + ui.label("Close button color unfocused"); + color_picker_color32(ui, &mut style.close_tab_color, Alpha::OnlyBlend); + + ui.separator(); + + ui.label("Close button color focused"); + color_picker_color32(ui, &mut style.close_tab_active_color, Alpha::OnlyBlend); + + ui.separator(); + + ui.label("Close button background color"); + color_picker_color32(ui, &mut style.close_tab_background_color, Alpha::OnlyBlend); + + ui.separator(); + ui.label("Bar background color"); color_picker_color32(ui, &mut style.tab_bar_background_color, Alpha::OnlyBlend);