gui-utilities 1.1.5__tar.gz → 1.1.6__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.5 → gui_utilities-1.1.6}/PKG-INFO +1 -1
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/gui_utilities/gui_utilities.py +23 -16
- gui_utilities-1.1.6/gui_utilities/icons/checked_verification_mark_icon.png +0 -0
- gui_utilities-1.1.6/gui_utilities/icons/hover_verification_mark_icon.png +0 -0
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/gui_utilities.egg-info/PKG-INFO +1 -1
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/gui_utilities.egg-info/SOURCES.txt +2 -1
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/pyproject.toml +1 -1
- gui_utilities-1.1.5/gui_utilities/icons/check.svg +0 -1
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/LICENSE +0 -0
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/README.md +0 -0
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/gui_utilities/icons/focused_hide_text_icon.png +0 -0
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/gui_utilities/icons/focused_show_text_icon.png +0 -0
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/gui_utilities/icons/hide_text_icon.png +0 -0
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/gui_utilities/icons/show_text_icon.png +0 -0
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/gui_utilities/tlds/tlds_list.txt +0 -0
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/gui_utilities.egg-info/dependency_links.txt +0 -0
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/gui_utilities.egg-info/requires.txt +0 -0
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/gui_utilities.egg-info/top_level.txt +0 -0
- {gui_utilities-1.1.5 → gui_utilities-1.1.6}/setup.cfg +0 -0
|
@@ -204,6 +204,10 @@ def create_text_box(
|
|
|
204
204
|
disabled_background_color = "#2d2d2d",
|
|
205
205
|
disabled_border_width = 2,
|
|
206
206
|
disabled_border_color = "#4a4a4a",
|
|
207
|
+
show_text_icon_url = str(icons_dir / "show_text_icon.png"),
|
|
208
|
+
hide_text_icon_url = str(icons_dir / "hide_text_icon.png"),
|
|
209
|
+
focused_show_text_icon_url = str(icons_dir / "focused_show_text_icon.png"),
|
|
210
|
+
focused_hide_text_icon_url = str(icons_dir / "focused_hide_text_icon.png"),
|
|
207
211
|
hide_text = False
|
|
208
212
|
):
|
|
209
213
|
text_box = QLineEdit()
|
|
@@ -235,10 +239,10 @@ def create_text_box(
|
|
|
235
239
|
"""
|
|
236
240
|
text_box.setStyleSheet(style_sheet)
|
|
237
241
|
if hide_text:
|
|
238
|
-
show_text_icon = QIcon(
|
|
239
|
-
hide_text_icon = QIcon(
|
|
240
|
-
focused_show_text_icon = QIcon(
|
|
241
|
-
focused_hide_text_icon = QIcon(
|
|
242
|
+
show_text_icon = QIcon(show_text_icon_url)
|
|
243
|
+
hide_text_icon = QIcon(hide_text_icon_url)
|
|
244
|
+
focused_show_text_icon = QIcon(focused_show_text_icon_url)
|
|
245
|
+
focused_hide_text_icon = QIcon(focused_hide_text_icon_url)
|
|
242
246
|
text_box.setEchoMode(QLineEdit.EchoMode.Password)
|
|
243
247
|
toggle_text_visibility_button = QToolButton(text_box)
|
|
244
248
|
toggle_text_visibility_button.setCursor(Qt.CursorShape.PointingHandCursor)
|
|
@@ -372,6 +376,12 @@ def create_checkbox(
|
|
|
372
376
|
pressed_indicator_border_color = "#0078d7",
|
|
373
377
|
checked_indicator_border_width = 2,
|
|
374
378
|
checked_indicator_border_color = "#0078d7",
|
|
379
|
+
disabled_font_color = "#888888",
|
|
380
|
+
disabled_background_color = "#2d2d2d",
|
|
381
|
+
disabled_border_width = 1,
|
|
382
|
+
disabled_border_color = "#4a4a4a",
|
|
383
|
+
checked_verification_mark_icon_url = str(icons_dir / "checked_verification_mark_icon.png"),
|
|
384
|
+
hover_verification_mark_icon_url = str(icons_dir / "hover_verification_mark_icon.png")
|
|
375
385
|
):
|
|
376
386
|
check_box = QCheckBox(text)
|
|
377
387
|
style_sheet = f"""
|
|
@@ -390,25 +400,22 @@ def create_checkbox(
|
|
|
390
400
|
QCheckBox::indicator:hover {{
|
|
391
401
|
background-color: {hover_indicator_background_color};
|
|
392
402
|
border: {hover_indicator_border_width}px solid {hover_indicator_border_color};
|
|
393
|
-
image: url("data:image/svg+xml;utf8,\
|
|
394
|
-
<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'>\
|
|
395
|
-
<path fill='#777777' d='M20.285 6.709l-11.4 11.4-5.185-5.185 1.414-1.414 3.771 3.771 9.986-9.986z'/>\
|
|
396
|
-
</svg>");
|
|
397
403
|
}}
|
|
398
404
|
QCheckBox::indicator:pressed {{
|
|
399
405
|
background-color: {pressed_indicator_background_color};
|
|
400
406
|
border: {pressed_indicator_border_width}px solid {pressed_indicator_border_color};
|
|
401
|
-
image: url("data:image/svg+xml;utf8,\
|
|
402
|
-
<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'>\
|
|
403
|
-
<path fill='#0078d7' d='M20.285 6.709l-11.4 11.4-5.185-5.185 1.414-1.414 3.771 3.771 9.986-9.986z'/>\
|
|
404
|
-
</svg>");
|
|
405
407
|
}}
|
|
406
408
|
QCheckBox::indicator:checked {{
|
|
407
409
|
border: {checked_indicator_border_width}px solid {checked_indicator_border_color};
|
|
408
|
-
image: url(
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
image: url({checked_verification_mark_icon_url});
|
|
411
|
+
}}
|
|
412
|
+
QCheckBox::indicator:checked:hover {{
|
|
413
|
+
image: url({hover_verification_mark_icon_url});
|
|
414
|
+
}}
|
|
415
|
+
QCheckBox::indicator:disabled {{
|
|
416
|
+
color: {disabled_font_color};
|
|
417
|
+
background-color: {disabled_background_color};
|
|
418
|
+
border: {disabled_border_width}px solid {disabled_border_color};
|
|
412
419
|
}}
|
|
413
420
|
"""
|
|
414
421
|
check_box.setStyleSheet(style_sheet)
|
|
Binary file
|
|
@@ -7,9 +7,10 @@ gui_utilities.egg-info/SOURCES.txt
|
|
|
7
7
|
gui_utilities.egg-info/dependency_links.txt
|
|
8
8
|
gui_utilities.egg-info/requires.txt
|
|
9
9
|
gui_utilities.egg-info/top_level.txt
|
|
10
|
-
gui_utilities/icons/
|
|
10
|
+
gui_utilities/icons/checked_verification_mark_icon.png
|
|
11
11
|
gui_utilities/icons/focused_hide_text_icon.png
|
|
12
12
|
gui_utilities/icons/focused_show_text_icon.png
|
|
13
13
|
gui_utilities/icons/hide_text_icon.png
|
|
14
|
+
gui_utilities/icons/hover_verification_mark_icon.png
|
|
14
15
|
gui_utilities/icons/show_text_icon.png
|
|
15
16
|
gui_utilities/tlds/tlds_list.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" viewBox="0 0 16 16"><path d="M13.822 3.322l-8.471 8.44a.75.75 0 01-1.06 0L1.535 8.982a.75.75 0 011.06-1.06l2.894 2.894 7.94-7.94a.75.75 0 011.06 0z"/></svg>
|
|
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
|