diff --git a/web-app/src/containers/ColorPickerAppAccentColor.tsx b/web-app/src/containers/ColorPickerAppAccentColor.tsx
index 751543b7d..85178b7a0 100644
--- a/web-app/src/containers/ColorPickerAppAccentColor.tsx
+++ b/web-app/src/containers/ColorPickerAppAccentColor.tsx
@@ -1,4 +1,4 @@
-import { useAppearance } from '@/hooks/useAppearance'
+import { useAppearance, isDefaultColorAccent } from '@/hooks/useAppearance'
import { cn } from '@/lib/utils'
import { RgbaColor, RgbaColorPicker } from 'react-colorful'
import { IconColorPicker } from '@tabler/icons-react'
@@ -37,10 +37,11 @@ export function ColorPickerAppAccentColor() {
{predefineAppAccentBgColor.map((item, i) => {
const isSelected =
- item.r === appAccentBgColor.r &&
+ (item.r === appAccentBgColor.r &&
item.g === appAccentBgColor.g &&
item.b === appAccentBgColor.b &&
- item.a === appAccentBgColor.a
+ item.a === appAccentBgColor.a) ||
+ (isDefaultColorAccent(appAccentBgColor) && isDefaultColorAccent(item))
return (
{predefineAppBgColor.map((item, i) => {
const isSelected =
- item.r === appBgColor.r &&
+ (item.r === appBgColor.r &&
item.g === appBgColor.g &&
item.b === appBgColor.b &&
- item.a === appBgColor.a
+ item.a === appBgColor.a) ||
+ (isDefaultColor(appBgColor) && isDefaultColor(item))
return (
{predefineAppDestructiveBgColor.map((item, i) => {
const isSelected =
- item.r === appDestructiveBgColor.r &&
+ (item.r === appDestructiveBgColor.r &&
item.g === appDestructiveBgColor.g &&
item.b === appDestructiveBgColor.b &&
- item.a === appDestructiveBgColor.a
+ item.a === appDestructiveBgColor.a) ||
+ (isDefaultColorDestructive(appDestructiveBgColor) && isDefaultColorDestructive(item))
return (
{predefineAppMainViewBgColor.map((item, i) => {
const isSelected =
- item.r === appMainViewBgColor.r &&
+ (item.r === appMainViewBgColor.r &&
item.g === appMainViewBgColor.g &&
item.b === appMainViewBgColor.b &&
- item.a === appMainViewBgColor.a
+ item.a === appMainViewBgColor.a) ||
+ (isDefaultColorMainView(appMainViewBgColor) && isDefaultColorMainView(item))
return (
{predefineappPrimaryBgColor.map((item, i) => {
const isSelected =
- item.r === appPrimaryBgColor.r &&
+ (item.r === appPrimaryBgColor.r &&
item.g === appPrimaryBgColor.g &&
item.b === appPrimaryBgColor.b &&
- item.a === appPrimaryBgColor.a
+ item.a === appPrimaryBgColor.a) ||
+ (isDefaultColorPrimary(appPrimaryBgColor) && isDefaultColorPrimary(item))
return (