@@ -6,6 +6,7 @@ import { Color } from "../../core/dataStruct/Color";
66import { ColorManager } from "../../core/service/feedbackService/ColorManager" ;
77import ColorManagerPanel from "./_color_manager_panel" ;
88import { StageObjectColorManager } from "../../core/stage/stageManager/concreteMethods/StageObjectColorManager" ;
9+ import { isMac } from "../../utils/platform" ;
910/**
1011 * 上色盘面板
1112 * @param param0
@@ -30,35 +31,45 @@ export default function ColorPanel() {
3031 const color = new Color ( 239 , 68 , 68 ) ;
3132 StageObjectColorManager . setSelectedStageObjectColor ( color ) ;
3233 } }
33- />
34+ >
35+ { isMac && "." }
36+ </ div >
3437 < div
3538 className = "m-1 h-5 w-5 cursor-pointer rounded bg-yellow-500 hover:scale-125"
3639 onClick = { ( ) => {
3740 const color = new Color ( 234 , 179 , 8 ) ;
3841 StageObjectColorManager . setSelectedStageObjectColor ( color ) ;
3942 } }
40- />
43+ >
44+ { isMac && "." }
45+ </ div >
4146 < div
4247 className = "m-1 h-5 w-5 cursor-pointer rounded bg-green-600 hover:scale-125"
4348 onClick = { ( ) => {
4449 const color = new Color ( 22 , 163 , 74 ) ;
4550 StageObjectColorManager . setSelectedStageObjectColor ( color ) ;
4651 } }
47- />
52+ >
53+ { isMac && "." }
54+ </ div >
4855 < div
4956 className = "m-1 h-5 w-5 cursor-pointer rounded bg-blue-500 hover:scale-125"
5057 onClick = { ( ) => {
5158 const color = new Color ( 59 , 130 , 246 ) ;
5259 StageObjectColorManager . setSelectedStageObjectColor ( color ) ;
5360 } }
54- />
61+ >
62+ { isMac && "." }
63+ </ div >
5564 < div
5665 className = "m-1 h-5 w-5 cursor-pointer rounded bg-purple-500 hover:scale-125"
5766 onClick = { ( ) => {
5867 const color = new Color ( 168 , 85 , 247 ) ;
5968 StageObjectColorManager . setSelectedStageObjectColor ( color ) ;
6069 } }
61- />
70+ >
71+ { isMac && "." }
72+ </ div >
6273 { /* 清除颜色 */ }
6374 < div
6475 className = "m-1 h-5 w-5 animate-pulse cursor-pointer rounded bg-transparent text-center text-sm hover:scale-125"
0 commit comments