accent color for checkboxes

This commit is contained in:
2022-05-24 15:03:17 +02:00
parent 3b746fef13
commit 2fea14d9cb
2 changed files with 24 additions and 2 deletions
+11 -2
View File
@@ -82,9 +82,18 @@ export interface ZeroCompiledEditorField
export function compileField(zero: Zero, editor: ZeroEditor, field: ZeroEditorField): ZeroCompiledEditorField | undefined
{
const component = markRaw(field.customComponent || zero.getFieldTypeComponent(field.fieldType));
let component = null;
if (!component)
try
{
component = markRaw(field.customComponent || zero.getFieldTypeComponent(field.fieldType));
if (!component)
{
return undefined;
}
}
catch
{
return undefined;
}
@@ -212,6 +212,19 @@ textarea
}
}
&.is-accent
{
input:checked ~ &
{
background: var(--color-accent);
&:before
{
color: var(--color-accent-fg);
}
}
}
.ui-native-check.is-right &
{
margin-left: 10px;