File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -237,7 +237,8 @@ def fill_color(self):
237237 @fill_color .setter
238238 def fill_color (self , new_color ):
239239 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
241242
242243 @property
243244 def outline_color (self ):
@@ -247,7 +248,8 @@ def outline_color(self):
247248 @outline_color .setter
248249 def outline_color (self , new_color ):
249250 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
251253
252254 @property
253255 def selected_fill (self ):
@@ -257,6 +259,8 @@ def selected_fill(self):
257259 @selected_fill .setter
258260 def selected_fill (self , new_color ):
259261 self ._selected_fill = _check_color (new_color )
262+ if self .selected :
263+ self .body .fill = self ._selected_fill
260264
261265 @property
262266 def selected_outline (self ):
@@ -266,6 +270,8 @@ def selected_outline(self):
266270 @selected_outline .setter
267271 def selected_outline (self , new_color ):
268272 self ._selected_outline = _check_color (new_color )
273+ if self .selected :
274+ self .body .outline = self ._selected_outline
269275
270276 @property
271277 def selected_label (self ):
You can’t perform that action at this time.
0 commit comments