fix light theme

This commit is contained in:
FullGreaM 2026-04-26 22:26:41 +03:00
parent d1a99d7d04
commit bfd1e7c19a

View File

@ -22,13 +22,14 @@ export class DarkStyle extends SkeletonStyle {
export class LightStyle extends SkeletonStyle { export class LightStyle extends SkeletonStyle {
navbar(element: GefestElement): void { navbar(element: GefestElement): void {
// Nothing add. Bg is light by default, and text is dark by default, so we don't need to add any classes for the navbar in the light style. //element.addClass("light-navbar");
} }
applyStyle(html: string, element?: GefestElement): string { applyStyle(html: string, element?: GefestElement): string {
if (!element) if (!element)
element = GefestElement.fromHTML(html); element = GefestElement.fromHTML(html);
//element.addClass("light-mode"); //element.addClass("light-mode");
element.addClass("bg-light");
element.addClass("text-dark"); element.addClass("text-dark");
this.navbar(element); this.navbar(element);
return element.build(true); return element.build(true);