Remove the in-app close button; the window manager provides window controls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
80672b343d
commit
ff1a939ef3
6 changed files with 4 additions and 24 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue