@@ -172,6 +172,9 @@ def redraw_state(self, state_str: str, add_text: bool = True):
172
172
text_colour_state_str = state_str + '_text'
173
173
text_shadow_colour_state_str = state_str + '_text_shadow'
174
174
image_state_str = state_str + '_image'
175
+ border_overlap = 0
176
+ if 'border_overlap' in self .theming :
177
+ border_overlap = self .theming ['border_overlap' ]
175
178
176
179
found_shape = None
177
180
shape_id = None
@@ -214,25 +217,25 @@ def redraw_state(self, state_str: str, add_text: bool = True):
214
217
if isinstance (self .theming [border_colour_state_str ], ColourGradient ):
215
218
shape_surface = self .clear_and_create_shape_surface (bab_surface ,
216
219
self .border_rect ,
217
- 0 , aa_amount = aa_amount ,
220
+ border_overlap , aa_amount = aa_amount ,
218
221
clear = False )
219
222
self .theming [border_colour_state_str ].apply_gradient_to_surface (shape_surface )
220
223
else :
221
224
shape_surface = self .clear_and_create_shape_surface (bab_surface ,
222
225
self .border_rect ,
223
- 0 , aa_amount = aa_amount ,
226
+ border_overlap , aa_amount = aa_amount ,
224
227
clear = False )
225
228
apply_colour_to_surface (self .theming [border_colour_state_str ],
226
229
shape_surface )
227
230
basic_blit (bab_surface , shape_surface , self .border_rect )
228
231
if isinstance (self .theming [bg_colour_state_str ], ColourGradient ):
229
232
shape_surface = self .clear_and_create_shape_surface (bab_surface ,
230
- self .background_rect , 1 ,
233
+ self .background_rect , border_overlap ,
231
234
aa_amount = aa_amount )
232
235
self .theming [bg_colour_state_str ].apply_gradient_to_surface (shape_surface )
233
236
else :
234
237
shape_surface = self .clear_and_create_shape_surface (bab_surface ,
235
- self .background_rect , 1 ,
238
+ self .background_rect , border_overlap ,
236
239
aa_amount = aa_amount )
237
240
apply_colour_to_surface (self .theming [bg_colour_state_str ], shape_surface )
238
241
0 commit comments