fix: resolve titlebar text overlap and update branding in headliner
Some checks failed
Build and Release Sanctum / Build App (push) Has been cancelled

This commit is contained in:
MiTHRAL 2026-04-24 15:27:38 -04:00
parent 398451d7c7
commit c5e8c49bd9

View file

@ -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();
}