mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-02-16 10:40:57 +00:00
Implement style switching functionality. Add default, night, and high contrast styles.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user