@@ -151,10 +151,10 @@ def __init__(
151
151
152
152
self .inner_layout = QHBoxLayout ()
153
153
self .inner_layout .setObjectName ("innerLayout" )
154
- self .inner_layout .setContentsMargins (2 , 2 , 2 , 2 )
154
+ self .inner_layout .setContentsMargins (0 , 0 , 0 , 0 )
155
155
156
156
self .bg_button .setLayout (self .inner_layout )
157
- self .bg_button .setMinimumSize (22 , 22 )
157
+ self .bg_button .setMinimumSize (44 , 22 )
158
158
159
159
primary_color = get_primary_color (tag )
160
160
border_color = (
@@ -211,16 +211,34 @@ def __init__(
211
211
self .remove_button .setText ("–" )
212
212
self .remove_button .setHidden (True )
213
213
self .remove_button .setStyleSheet (
214
+ f"QPushButton{{"
214
215
f"color: rgba{ primary_color .toTuple ()} ;"
215
216
f"background: rgba{ text_color .toTuple ()} ;"
216
217
f"font-weight: 800;"
217
- f"border-radius: 3px;"
218
- f"border-width:0;"
218
+ f"border-radius: 5px;"
219
+ f"border-width: 4;"
220
+ f"border-color: rgba(0,0,0,0);"
219
221
f"padding-bottom: 4px;"
220
222
f"font-size: 14px"
223
+ f"}}"
224
+ f"QPushButton::hover{{"
225
+ f"background: rgba{ primary_color .toTuple ()} ;"
226
+ f"color: rgba{ text_color .toTuple ()} ;"
227
+ f"border-color: rgba{ highlight_color .toTuple ()} ;"
228
+ f"border-width: 2;"
229
+ f"border-radius: 6px;"
230
+ f"}}"
231
+ f"QPushButton::pressed{{"
232
+ f"background: rgba{ border_color .toTuple ()} ;"
233
+ f"color: rgba{ highlight_color .toTuple ()} ;"
234
+ f"}}"
235
+ f"QPushButton::focus{{"
236
+ f"background: rgba{ border_color .toTuple ()} ;"
237
+ f"outline:none;"
238
+ f"}}"
221
239
)
222
- self .remove_button .setMinimumSize (18 , 18 )
223
- self .remove_button .setMaximumSize (18 , 18 )
240
+ self .remove_button .setMinimumSize (22 , 22 )
241
+ self .remove_button .setMaximumSize (22 , 22 )
224
242
self .remove_button .clicked .connect (self .on_remove .emit )
225
243
226
244
if has_remove :
0 commit comments