added: new theme white monkey

improved titlebydefault setting
This commit is contained in:
quenousimporte 2023-07-21 10:58:13 +02:00
parent 45a85e13ff
commit f17eb11afc
1 changed files with 16 additions and 1 deletions

17
main.js
View File

@ -98,6 +98,16 @@ var themes =
lineheight: "24px",
accentcolor: "#5AA7CE"
},
"White monkey":
{
bgcolor: "white",
fontfamily: "'Inconsolata', 'Consolas', monospace",
fontsize: "18px",
fontcolor: "black",
lineheight: "150%",
accentcolor: "#5AA7CE",
titlebydefault: true
},
Mariana:
{
bgcolor: "rgb(48,56,65)",
@ -1116,6 +1126,11 @@ function applystyle()
{
title.style.color = settings.accentcolor;
}
if (settings.titlebydefault && title.hidden)
{
toggletitle();
}
}
function loadsettings()
@ -1136,7 +1151,7 @@ function loadsettings()
applystyle();
if (settings.titlebydefault)
if (settings.titlebydefault && title.hidden)
{
toggletitle();
}