From c5e8c49bd95438fa4079ade2dac77aede94db25e Mon Sep 17 00:00:00 2001 From: MiTHRAL Date: Fri, 24 Apr 2026 15:27:38 -0400 Subject: [PATCH] fix: resolve titlebar text overlap and update branding in headliner --- avia_core/headliner.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/avia_core/headliner.js b/avia_core/headliner.js index edb7bd3..f9d0b7e 100644 --- a/avia_core/headliner.js +++ b/avia_core/headliner.js @@ -9,7 +9,7 @@ const STYLE_ID = "headliner-style"; const defaults = { - content: "Stoat V 1.0.0 - Sanctum", + content: "Sanctum V 1.0.0", left: "32", top: "56", fontSize: "15", @@ -18,7 +18,12 @@ function loadSettings() { try { - return JSON.parse(localStorage.getItem("headlinerSettings")) || { ...defaults }; + let s = JSON.parse(localStorage.getItem("headlinerSettings")); + if (s && s.content === "Stoat V 1.0.0 - Sanctum") { + s.content = defaults.content; + saveSettings(s); + } + return s || { ...defaults }; } catch { return { ...defaults }; } @@ -36,6 +41,7 @@ } .flex-sh_0.h_29px.us_none.d_flex.ai_center.fill_var\\(--md-sys-color-on-surface\\).c_var\\(--md-sys-color-outline\\).bg_var\\(--md-sys-color-surface-container-high\\) { position: relative !important; + color: transparent !important; } .flex-sh_0.h_29px.us_none.d_flex.ai_center.fill_var\\(--md-sys-color-on-surface\\).c_var\\(--md-sys-color-outline\\).bg_var\\(--md-sys-color-surface-container-high\\)::before { content: "${s.content}"; @@ -45,7 +51,7 @@ transform: translateY(-50%); font-size: ${s.fontSize}px; font-weight: ${s.fontWeight}; - color: var(--md-sys-color-on-surface); + color: var(--md-sys-color-on-surface) !important; pointer-events: none; } `; @@ -80,7 +86,7 @@ applyCSS(); } else { clone.setAttribute("data-active", "false"); - if (desc) desc.textContent = "Modify the Stoat name in the titlebar to say anything you want"; + if (desc) desc.textContent = "Modify the Sanctum name in the titlebar to say anything you want"; if (checkbox) checkbox.removeAttribute("checked"); removeCSS(); }