Remove the in-app close button; the window manager provides window controls
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-18 23:04:13 +03:00
parent 80672b343d
commit ff1a939ef3
6 changed files with 4 additions and 24 deletions

View file

@ -1,13 +1,7 @@
//! Small shared widgets.
use crate::i18n::tr;
use egui::{Color32, Sense, Stroke, Ui, vec2};
/// Window close button (the app runs undecorated under tiling compositors).
pub fn close_button(ui: &mut Ui) -> egui::Response {
x_button(ui, vec2(32.0, 28.0), 6.0).on_hover_text(tr("Close the application"))
}
/// Compact ✕ (e.g. to cancel a running task); the caller adds the tooltip.
pub fn small_close_button(ui: &mut Ui) -> egui::Response {
x_button(ui, vec2(22.0, 20.0), 4.5)