diff --git a/app/src/displays/boolean/boolean.vue b/app/src/displays/boolean/boolean.vue index 1fe94d0306d59..a46211b24df4e 100644 --- a/app/src/displays/boolean/boolean.vue +++ b/app/src/displays/boolean/boolean.vue @@ -35,11 +35,11 @@ export default defineComponent({ }, colorOn: { type: String, - default: '#00C897', + default: 'var(--primary)', }, colorOff: { type: String, - default: '#B0BEC5', + default: 'var(--foreground-subdued)', }, }, setup(props) { diff --git a/app/src/displays/boolean/index.ts b/app/src/displays/boolean/index.ts index ccf5ec2e3fea5..1cbca41cf21f6 100644 --- a/app/src/displays/boolean/index.ts +++ b/app/src/displays/boolean/index.ts @@ -65,9 +65,6 @@ export default defineDisplay({ interface: 'select-color', width: 'half', }, - schema: { - default_value: '#00C897', - }, }, { field: 'colorOff', @@ -77,9 +74,6 @@ export default defineDisplay({ interface: 'select-color', width: 'half', }, - schema: { - default_value: '#B0BEC5', - }, }, ], }); diff --git a/app/src/interfaces/boolean/boolean.vue b/app/src/interfaces/boolean/boolean.vue index 1e5c22e053e9b..4bd1456d6b446 100644 --- a/app/src/interfaces/boolean/boolean.vue +++ b/app/src/interfaces/boolean/boolean.vue @@ -43,11 +43,11 @@ export default defineComponent({ }, colorOn: { type: String, - default: '#00C897', + default: 'var(--primary)', }, colorOff: { type: String, - default: '#B0BEC5', + default: 'var(--foreground-subdued)', }, }, emits: ['input'], diff --git a/app/src/interfaces/boolean/index.ts b/app/src/interfaces/boolean/index.ts index dc89ed6d6af45..a532e1e97dc95 100644 --- a/app/src/interfaces/boolean/index.ts +++ b/app/src/interfaces/boolean/index.ts @@ -40,11 +40,8 @@ export default defineInterface({ name: '$t:interfaces.boolean.color_on', type: 'string', meta: { - width: 'half', interface: 'select-color', - }, - schema: { - default_value: '#00C897', + width: 'half', }, }, { @@ -52,11 +49,8 @@ export default defineInterface({ name: '$t:interfaces.boolean.color_off', type: 'string', meta: { - width: 'half', interface: 'select-color', - }, - schema: { - default_value: '#B0BEC5', + width: 'half', }, }, {