@@ -11,7 +11,7 @@ import { Button } from "@/components/ui/button";
1111
1212export interface ColorSelectorProps
1313 extends Partial < Record < "className" | "title" | "value" , string > > {
14- icon : "file-earmark-font " | "file-earmark-font-fill " ;
14+ icon : "Type " | "FileText " ;
1515 type : ColorName ;
1616 onChange ?: ( color : string ) => any ;
1717}
@@ -38,6 +38,7 @@ export const ColorSelector: FC<ColorSelectorProps> = ({
3838 type = "button"
3939 variant = "outline"
4040 size = "icon-sm"
41+ className = "p-2"
4142 style = { {
4243 color : type === "color" ? value : undefined ,
4344 backgroundColor : type === "color" ? undefined : value ,
@@ -52,10 +53,16 @@ export const ColorSelector: FC<ColorSelectorProps> = ({
5253 input . click ( ) ;
5354 } }
5455 >
55- { icon === "file-earmark-font" ? (
56- < Type className = "size-4" />
56+ { icon === "Type" ? (
57+ < Type
58+ className = "size-4"
59+ style = { type !== "color" ? { filter : "invert(1)" } : undefined }
60+ />
5761 ) : (
58- < FileText className = "size-4" />
62+ < FileText
63+ className = "size-4"
64+ style = { type !== "color" ? { filter : "invert(1)" } : undefined }
65+ />
5966 ) }
6067 </ Button >
6168 </ span >
@@ -83,11 +90,11 @@ export function renderColorTool(
8390}
8491
8592export class ForeColorTool extends FCT {
86- icon = "file-earmark-font " ;
93+ icon = "Type " ;
8794 render = renderColorTool ;
8895}
8996
9097export class BackColorTool extends BCT {
91- icon = "file-earmark-font-fill " ;
98+ icon = "FileText " ;
9299 render = renderColorTool ;
93100}
0 commit comments