gui-utilities 1.1.2__py3-none-any.whl → 1.1.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of gui-utilities might be problematic. Click here for more details.

@@ -360,19 +360,18 @@ def create_checkbox(
360
360
  font_color = "#ffffff",
361
361
  background_color = "#1e1e1e",
362
362
  padding = 15,
363
- border_width = 2,
364
- border_color = "#5c5c5c",
365
- border_radius = 0,
366
- hover_background_color = "#333333",
367
- hover_border_width = 3,
368
- hover_border_color = "#777777",
369
- pressed_background_color = "#4a4a4a",
370
- pressed_border_width = 3,
371
- pressed_border_color = "#0078d7",
372
- disabled_font_color = "#888888",
373
- disabled_background_color = "#2d2d2d",
374
- disabled_border_width = 2,
375
- disabled_border_color = "#4a4a4a"
363
+ indicator_background_color = "#1e1e1e",
364
+ indicator_border_width = 1,
365
+ indicator_border_color = "#5c5c5c",
366
+ indicator_border_radius = 0,
367
+ hover_indicator_background_color = "#333333",
368
+ hover_indicator_border_width = 2,
369
+ hover_indicator_border_color = "#777777",
370
+ pressed_indicator_background_color = "#4a4a4a",
371
+ pressed_indicator_border_width = 2,
372
+ pressed_indicator_border_color = "#0078d7",
373
+ checked_indicator_border_width = 2,
374
+ checked_indicator_border_color = "#0078d7",
376
375
  ):
377
376
  checkbox = QCheckBox(text)
378
377
  style_sheet = f"""
@@ -382,21 +381,22 @@ def create_checkbox(
382
381
  color: {font_color};
383
382
  background-color: {background_color};
384
383
  padding: {padding}px;
385
- border: {border_width}px solid {border_color};
386
- border-radius: {border_radius}px;
387
384
  }}
388
- QCheckBox:hover {{
389
- background-color: {hover_background_color};
390
- border: {hover_border_width}px solid {hover_border_color};
385
+ QCheckBox::indicator {{
386
+ background-color: {indicator_background_color};
387
+ border: {indicator_border_width}px solid {indicator_border_color};
388
+ border-radius: {indicator_border_radius}px;
391
389
  }}
392
- QCheckBox:pressed {{
393
- background-color: {pressed_background_color};
394
- border: {pressed_border_width}px solid {pressed_border_color};
390
+ QCheckBox::indicator:hover {{
391
+ background-color: {hover_indicator_background_color};
392
+ border: {hover_indicator_border_width}px solid {hover_indicator_border_color};
395
393
  }}
396
- QCheckBox:disabled {{
397
- color: {disabled_font_color};
398
- background-color: {disabled_background_color};
399
- border: {disabled_border_width}px solid {disabled_border_color};
394
+ QCheckBox::indicator:pressed {{
395
+ background-color: {pressed_indicator_background_color};
396
+ border: {pressed_indicator_border_width}px solid {pressed_indicator_border_color};
397
+ }}
398
+ QCheckBox::indicator:checked {{
399
+ border: {checked_indicator_border_width}px solid {checked_indicator_border_color};
400
400
  }}
401
401
  """
402
402
  checkbox.setStyleSheet(style_sheet)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gui_utilities
3
- Version: 1.1.2
3
+ Version: 1.1.4
4
4
  Summary: Librería de utilidades gráficas en PyQt6
5
5
  Author-email: Guido Iván Gross <grossguidoivan@gmail.com>
6
6
  Requires-Python: >=3.8
@@ -1,12 +1,12 @@
1
- gui_utilities/gui_utilities.py,sha256=-f9hOL1M4xy7n-qpKGEyTRuONH0bXhPrG5D005QEtNQ,30685
1
+ gui_utilities/gui_utilities.py,sha256=f4dvY0GZGXsjYQQ0lBkjRXMRJbfKYx5PKBhYLxCN6m8,30900
2
2
  gui_utilities/icons/check.svg,sha256=HHTjePt4C7XcmrMGZMBTyRTzR580bZ4IF82kEY0Y5Gw,232
3
3
  gui_utilities/icons/focused_hide_text_icon.png,sha256=0Ysx7vC-mEVfuSBWx1Zw-UhpqvrTCcIvnQ926wFmuK4,13084
4
4
  gui_utilities/icons/focused_show_text_icon.png,sha256=gmZU7RR4FN-9VSzpD00ZkQ8UGbihO2y808Kh3b_TaEg,6739
5
5
  gui_utilities/icons/hide_text_icon.png,sha256=f5jq6KaAygWNjzP_Ah6dw6eu8q5ml3m56JTeNSTSgEU,7207
6
6
  gui_utilities/icons/show_text_icon.png,sha256=8Vdp2XickPEM-eTb1-qBXf3qmHldSzllMZZfObir9p8,5376
7
7
  gui_utilities/tlds/tlds_list.txt,sha256=wIWmAQGVNsY0ZJy7qPW8kItDTCE4PTq8wcUhC2hpjkw,10916
8
- gui_utilities-1.1.2.dist-info/licenses/LICENSE,sha256=NNoMFs43kWl1J-aqq7_EsPlBjL5XTccWjZlwrlCR-Xc,1093
9
- gui_utilities-1.1.2.dist-info/METADATA,sha256=p9188bKy6TorlaCBLR9WS1dd338IvqduTLQTvSVas5k,265
10
- gui_utilities-1.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- gui_utilities-1.1.2.dist-info/top_level.txt,sha256=c4C84nMT41keiX9b1AJJZDBU3kA38c7vOmP9kDie8Lk,14
12
- gui_utilities-1.1.2.dist-info/RECORD,,
8
+ gui_utilities-1.1.4.dist-info/licenses/LICENSE,sha256=NNoMFs43kWl1J-aqq7_EsPlBjL5XTccWjZlwrlCR-Xc,1093
9
+ gui_utilities-1.1.4.dist-info/METADATA,sha256=SyCr2zNsu6ijbvWedKswqBKX24D5W-kwzkbCjUXdRB8,265
10
+ gui_utilities-1.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ gui_utilities-1.1.4.dist-info/top_level.txt,sha256=c4C84nMT41keiX9b1AJJZDBU3kA38c7vOmP9kDie8Lk,14
12
+ gui_utilities-1.1.4.dist-info/RECORD,,