|
@@ -689,7 +689,12 @@ export class EditScence extends SGraphScene {
|
|
|
*/
|
|
|
upadatfillColor(fillColor: string): void {
|
|
|
if (this.focusItem && this.focusItem.fillColor) {
|
|
|
- const fillColorT = fillColor+Transparency[20];
|
|
|
+ let fillColorT;
|
|
|
+ if (fillColor.length == 7) {
|
|
|
+ fillColorT = fillColor + Transparency[15];
|
|
|
+ } else {
|
|
|
+ fillColorT = fillColor;
|
|
|
+ }
|
|
|
const newMsg = new SColor(fillColorT);
|
|
|
const oldMsg = this.focusItem.fillColor;
|
|
|
this.focusItem.fillColor = new SColor(fillColorT);
|