jbqt 0.1.11__tar.gz → 0.1.12__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 jbqt might be problematic. Click here for more details.
- {jbqt-0.1.11 → jbqt-0.1.12}/PKG-INFO +1 -1
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/common/consts.py +5 -1
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/types/__init__.py +1 -1
- {jbqt-0.1.11 → jbqt-0.1.12}/pyproject.toml +1 -1
- {jbqt-0.1.11 → jbqt-0.1.12}/README.md +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/__init__.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/common/__init__.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/common/qt_utils.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/dialogs/__init__.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/dialogs/file_dialog.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/dialogs/input_form.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/dialogs/text_preview.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/models/__init__.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/models/chip_button.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/models/chips.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/view_icons.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/widgets/__init__.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/widgets/chip_button.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/widgets/chips.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/widgets/multiselect.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/widgets/simple.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/widgets/toast.py +0 -0
- {jbqt-0.1.11 → jbqt-0.1.12}/jbqt/widgets/widget_utils.py +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import re
|
|
3
3
|
|
|
4
|
+
from typing import Optional
|
|
4
5
|
|
|
5
6
|
import jbutils
|
|
6
7
|
|
|
@@ -137,7 +138,10 @@ def recolor_icon(
|
|
|
137
138
|
|
|
138
139
|
|
|
139
140
|
def get_icon(file_name: str) -> IconGetter:
|
|
140
|
-
def getter(
|
|
141
|
+
def getter(
|
|
142
|
+
color: Optional[str | QColor] = "", size: QSize | int | None = None
|
|
143
|
+
) -> QIcon:
|
|
144
|
+
color = color or ""
|
|
141
145
|
if isinstance(size, int):
|
|
142
146
|
size = QSize(size, size)
|
|
143
147
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|