Adding new maintenance status to theme page.

This commit is contained in:
ToxykAuBleu
2025-05-05 09:04:37 +00:00
parent ea6754775d
commit 236d7ea585

View File

@@ -35,7 +35,8 @@
colorsJ: {
UP: "#4ead94",
DOWN: "#ca3038",
DEGRADED: "#e6ca61"
DEGRADED: "#e6ca61",
MAINTENANCE: "#6699cc",
},
fontJ: {
cssSrc:
@@ -296,7 +297,7 @@
<div>
<p class="font-medium">Status Colors</p>
<p class=" text-xs font-semibold text-muted-foreground">
Choose the colors for the monitor. You can choose between UP, DEGRADED, and DOWN.
Choose the colors for the monitor. You can choose between UP, DEGRADED, DOWN and MAINTENANCE.
</p>
</div>
@@ -343,6 +344,20 @@
}}
/>
</div>
<div class="relative">
<ColorPicker
bind:hex={themeData.colorsJ.MAINTENANCE}
position="responsive"
isAlpha={false}
isDark={$mode == "dark"}
--input-size="16px"
isTextInput={true}
label="MAINTENANCE"
on:input={(event) => {
themeData.colorsJ.MAINTENANCE = event.detail.hex;
}}
/>
</div>
</div>
<hr />
<p class="font-medium">