unify default / flat theme default accent colors + set flat as default for FF mobile

This commit is contained in:
Til Schmitter 2026-05-02 15:17:17 +02:00
parent 5c97dbd34e
commit 4623db14a0
2 changed files with 4 additions and 3 deletions

View file

@ -163,10 +163,10 @@ html.b {
--mp-b-bg: transparent;
}
html.bz {
--a: #18cdaf;
--a: #fc5;
}
html.by {
--a: #117dc0;
--a: #07c;
--bg: var(--bg-u2);
}
html.c {

View file

@ -9129,7 +9129,8 @@ var settheme = (function () {
'7':['▲', 'font-size:3em'], //cp437
};
theme = sread('cpp_thm') || 'a';
// set default theme to flat on firefox mobile to avoid glitchy gradients (2026-04-26)
theme = sread('cpp_thm') || (FIREFOX && MOBILE ? 'b' : 'a');
if (!/^[a-x][yz]/.exec(theme))
theme = dtheme;