gui-utilities 1.1.2__tar.gz → 1.1.3__tar.gz
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.
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/PKG-INFO +1 -1
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/gui_utilities/gui_utilities.py +26 -25
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/gui_utilities.egg-info/PKG-INFO +1 -1
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/pyproject.toml +1 -1
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/LICENSE +0 -0
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/README.md +0 -0
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/gui_utilities/icons/check.svg +0 -0
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/gui_utilities/icons/focused_hide_text_icon.png +0 -0
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/gui_utilities/icons/focused_show_text_icon.png +0 -0
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/gui_utilities/icons/hide_text_icon.png +0 -0
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/gui_utilities/icons/show_text_icon.png +0 -0
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/gui_utilities/tlds/tlds_list.txt +0 -0
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/gui_utilities.egg-info/SOURCES.txt +0 -0
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/gui_utilities.egg-info/dependency_links.txt +0 -0
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/gui_utilities.egg-info/requires.txt +0 -0
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/gui_utilities.egg-info/top_level.txt +0 -0
- {gui_utilities-1.1.2 → gui_utilities-1.1.3}/setup.cfg +0 -0
|
@@ -360,19 +360,18 @@ def create_checkbox(
|
|
|
360
360
|
font_color = "#ffffff",
|
|
361
361
|
background_color = "#1e1e1e",
|
|
362
362
|
padding = 15,
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
disabled_border_color = "#4a4a4a"
|
|
363
|
+
indicator_background_color = "#ffffff",
|
|
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_color = "#0078d7",
|
|
371
|
+
pressed_indicator_background_color = "#4a4a4a",
|
|
372
|
+
pressed_indicator_border_width = 2,
|
|
373
|
+
pressed_indicator_border_color = "#0078d7",
|
|
374
|
+
checked_indicator_color = "#0078d7"
|
|
376
375
|
):
|
|
377
376
|
checkbox = QCheckBox(text)
|
|
378
377
|
style_sheet = f"""
|
|
@@ -382,21 +381,23 @@ 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
|
|
389
|
-
background-color: {
|
|
390
|
-
border: {
|
|
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:
|
|
393
|
-
background-color: {
|
|
394
|
-
border: {
|
|
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:
|
|
397
|
-
color: {
|
|
398
|
-
background-color: {
|
|
399
|
-
border: {
|
|
394
|
+
QCheckBox::indicator:pressed {{
|
|
395
|
+
color: {pressed_indicator_color};
|
|
396
|
+
background-color: {pressed_indicator_background_color};
|
|
397
|
+
border: {pressed_indicator_border_width}px solid {pressed_indicator_border_color};
|
|
398
|
+
}}
|
|
399
|
+
QCheckBox::indicator:checked {{
|
|
400
|
+
color: {checked_indicator_color};
|
|
400
401
|
}}
|
|
401
402
|
"""
|
|
402
403
|
checkbox.setStyleSheet(style_sheet)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|