File tree 2 files changed +5
-3
lines changed
packages/frontend/core/src/desktop/dialogs/setting/general-setting/editor
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ export const ShapeSettings = () => {
72
72
const { palettes : textColorPalettes , getCurrentColor : getCurrentTextColor } =
73
73
usePalettes (
74
74
DefaultTheme . ShapeTextColorShortPalettes ,
75
- DefaultTheme . shapeTextColor
75
+ DefaultTheme . shapeTextColor ,
76
+ true
76
77
) ;
77
78
78
79
const [ currentShape , setCurrentShape ] = useState < ShapeName > ( ShapeType . Rect ) ;
Original file line number Diff line number Diff line change @@ -17,13 +17,14 @@ export const useResolvedTheme = () => {
17
17
18
18
export const usePalettes = (
19
19
originalPalettes : Palette [ ] ,
20
- defaultColor : Color
20
+ defaultColor : Color ,
21
+ isShapeText = false
21
22
) => {
22
23
const theme = useResolvedTheme ( ) ;
23
24
const isDark = theme === ColorScheme . Dark ;
24
25
const palettes = originalPalettes . map ( ( { key, value } ) => {
25
26
// Title needs to be inverted.
26
- if ( isDark ) {
27
+ if ( ! isShapeText && isDark ) {
27
28
if ( key === 'Black' ) {
28
29
key = 'White' ;
29
30
} else if ( key === 'White' ) {
You can’t perform that action at this time.
0 commit comments