Implement style switching functionality. Add default, night, and high contrast styles.

This commit is contained in:
Oleg Sh
2026-01-12 19:05:49 +01:00
parent dee5d4c4ea
commit 6f5fb0fc9c
30 changed files with 661 additions and 63 deletions

View File

@@ -25,11 +25,27 @@ function PrintBackgroundStyle()
PrintBackgroundStyle.prototype = Object.create(CommonBackgroundStyle.prototype);
function NightBackgroundStyle()
{
CommonBackgroundStyle.apply(this, arguments);
this.commonColor = '#0f172a';
this.commonOpacity = 1.0;
this.image = null;
}
NightBackgroundStyle.prototype = Object.create(CommonBackgroundStyle.prototype);
function GetWhiteBackgroundStyle()
{
return new CommonBackgroundStyle();
}
function GetNightBackgroundStyle()
{
return new NightBackgroundStyle();
}
function DefaultCommonBackgroundStyle()
{
return GetWhiteBackgroundStyle();