File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,8 @@ def fill_color(self):
237
237
@fill_color .setter
238
238
def fill_color (self , new_color ):
239
239
self ._fill_color = _check_color (new_color )
240
- self .body .fill = self ._fill_color
240
+ if not self .selected :
241
+ self .body .fill = self ._fill_color
241
242
242
243
@property
243
244
def outline_color (self ):
@@ -247,7 +248,8 @@ def outline_color(self):
247
248
@outline_color .setter
248
249
def outline_color (self , new_color ):
249
250
self ._outline_color = _check_color (new_color )
250
- self .body .outline = self ._outline_color
251
+ if not self .selected :
252
+ self .body .outline = self ._outline_color
251
253
252
254
@property
253
255
def selected_fill (self ):
@@ -257,6 +259,8 @@ def selected_fill(self):
257
259
@selected_fill .setter
258
260
def selected_fill (self , new_color ):
259
261
self ._selected_fill = _check_color (new_color )
262
+ if self .selected :
263
+ self .body .fill = self ._selected_fill
260
264
261
265
@property
262
266
def selected_outline (self ):
@@ -266,6 +270,8 @@ def selected_outline(self):
266
270
@selected_outline .setter
267
271
def selected_outline (self , new_color ):
268
272
self ._selected_outline = _check_color (new_color )
273
+ if self .selected :
274
+ self .body .outline = self ._selected_outline
269
275
270
276
@property
271
277
def selected_label (self ):
You can’t perform that action at this time.
0 commit comments