#1729: a tab's live mark stays clear of its close button

The 20 pt live mark reached 4 pt into the tab's 32 pt close target; it sits 4 pt further left, with
4 pt more room kept for it beside the name. ROADMAP.md's Last updated date is the new row's.
This commit is contained in:
Mert Dede
2026-10-31 16:31:51 +03:00
parent 3d251fb22b
commit 147c92aa91
2 changed files with 3 additions and 3 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -25,7 +25,7 @@ const BAR_BUTTON: f32 = 32.0;
/// Size of a tab's close cross.
const CLOSE_ICON: f32 = 12.0;
/// Room kept for a tab's live mark.
const LIVE_MARK_WIDTH: f32 = 22.0;
const LIVE_MARK_WIDTH: f32 = 26.0;
const OPEN_TIME: f64 = 0.18;
/// Which tabs were open last frame and when the newly opened ones appeared. It is updated in place
@@ -502,7 +502,7 @@ fn paint_tab(ui: &Ui, t: &Tokens, tab: &TabPaint) {
(w - mark_w - if dirty { 72.0 } else { 60.0 }).max(0.0),
);
if let Some(shared) = live {
let at = Rect::from_center_size(pos2(paint_r.max.x - 38.0, paint_r.center().y), Vec2::splat(BAR_ICON));
let at = Rect::from_center_size(pos2(paint_r.max.x - 42.0, paint_r.center().y), Vec2::splat(BAR_ICON));
icons::paint(&painter, at, crate::online::mark(shared), if shared { t.success } else { t.icon_secondary }.linear_multiply(progress));
}
if dirty {