fix: resolve titlebar text overlap and update branding in headliner
Some checks failed
Build and Release Sanctum / Build App (push) Has been cancelled
Some checks failed
Build and Release Sanctum / Build App (push) Has been cancelled
This commit is contained in:
parent
398451d7c7
commit
c5e8c49bd9
1 changed files with 10 additions and 4 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
const STYLE_ID = "headliner-style";
|
const STYLE_ID = "headliner-style";
|
||||||
|
|
||||||
const defaults = {
|
const defaults = {
|
||||||
content: "Stoat V 1.0.0 - Sanctum",
|
content: "Sanctum V 1.0.0",
|
||||||
left: "32",
|
left: "32",
|
||||||
top: "56",
|
top: "56",
|
||||||
fontSize: "15",
|
fontSize: "15",
|
||||||
|
|
@ -18,7 +18,12 @@
|
||||||
|
|
||||||
function loadSettings() {
|
function loadSettings() {
|
||||||
try {
|
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 {
|
} catch {
|
||||||
return { ...defaults };
|
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\\) {
|
.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;
|
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 {
|
.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}";
|
content: "${s.content}";
|
||||||
|
|
@ -45,7 +51,7 @@
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
font-size: ${s.fontSize}px;
|
font-size: ${s.fontSize}px;
|
||||||
font-weight: ${s.fontWeight};
|
font-weight: ${s.fontWeight};
|
||||||
color: var(--md-sys-color-on-surface);
|
color: var(--md-sys-color-on-surface) !important;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
@ -80,7 +86,7 @@
|
||||||
applyCSS();
|
applyCSS();
|
||||||
} else {
|
} else {
|
||||||
clone.setAttribute("data-active", "false");
|
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");
|
if (checkbox) checkbox.removeAttribute("checked");
|
||||||
removeCSS();
|
removeCSS();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue