Skip to content

Commit

Permalink
fix: login page brand color does not take effect (vbenjs#4655)
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb authored and GavinLucky committed Oct 17, 2024
1 parent 5b1b126 commit b1607a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/effects/layouts/src/widgets/color-toggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ defineOptions({
name: 'AuthenticationColorToggle',
});
function handleUpdate(value: BuiltinThemeType) {
function handleUpdate(colorPrimary: string, type: BuiltinThemeType) {
updatePreferences({
theme: {
builtinType: value,
colorPrimary,
builtinType: type,
},
});
}
Expand All @@ -30,7 +31,7 @@ function handleUpdate(value: BuiltinThemeType) {
<template v-for="preset in COLOR_PRESETS" :key="preset.color">
<VbenIconButton
class="flex-center flex-shrink-0"
@click="handleUpdate(preset.type)"
@click="handleUpdate(preset.color, preset.type)"
>
<div
:style="{ backgroundColor: preset.color }"
Expand Down

0 comments on commit b1607a3

Please sign in to comment.