From 867bf0e446da7a8eed3812aaed213af322ff8687 Mon Sep 17 00:00:00 2001 From: BFlat Date: Tue, 24 Nov 2026 16:12:59 +0700 Subject: [PATCH] App bar: Discord button without the outline, as production (#9215) The app bar's Discord button loses its outline: it now takes the app's default push-button look, a filled tile with no edge at rest and the hover fill on hover, as production's app bar drew it (`t.button` fill, `t.hover` on hover, no stroke). Discord's colour stays on its icon alone. Checks: `chrome::` and `community` tests 62 passed; clippy (`vectorcraft-ui-egui`, all targets, `-D warnings`) and `cargo fmt --check` are clean. --- crates/ui-egui/src/community.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/crates/ui-egui/src/community.rs b/crates/ui-egui/src/community.rs index 58590a85c0..3672b1bb95 100644 --- a/crates/ui-egui/src/community.rs +++ b/crates/ui-egui/src/community.rs @@ -3,12 +3,10 @@ //! on Discord's colour with the word "Discord". use craft::behavior::IconId; -use craft::theme::Emphasis; -use craft::theme::variant::Tone; use craft::ui::buttons::Button; use craft::ui::contract::{Props, Show}; use craft::ui::primitives::IconSpec; -use craft::ui::style::{DataColor, Variant}; +use craft::ui::style::DataColor; use egui::{Color32, Ui}; use crate::VectorcraftApp; @@ -16,14 +14,11 @@ use crate::VectorcraftApp; /// Discord's brand colour (a colour, not a logo). const DISCORD: Color32 = Color32::from_rgb(0x58, 0x65, 0xF2); -/// The Discord button: a soft neutral button, with Discord's colour on its icon alone. It opens the community link. +/// The Discord button: the app's filled push button with no edge, as production's app bar drew it, with Discord's colour +/// on its icon alone. It opens the community link. pub fn discord_button(app: &mut VectorcraftApp, ui: &mut Ui) { let icon = IconSpec::svg(IconId::new("message-circle")).data_color(DataColor::new(DISCORD)); - let shown = Button::new(tl!("Discord")) - .icon(icon) - .variant(Variant::look(Emphasis::Soft, Tone::Neutral)) - .tooltip(tl!("Join the ArtCraft community on Discord (discord.gg/artcraft)")) - .show(ui); + let shown = Button::new(tl!("Discord")).icon(icon).tooltip(tl!("Join the ArtCraft community on Discord (discord.gg/artcraft)")).show(ui); if shown.clicks > 0 { app.open_link("help.discord"); }