gui-utilities 1.3.13__tar.gz → 1.3.16__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.3.13 → gui_utilities-1.3.16}/PKG-INFO +1 -1
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/gui_utilities/gui_utilities.py +29 -4
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/gui_utilities.egg-info/PKG-INFO +1 -1
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/pyproject.toml +1 -1
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/LICENSE +0 -0
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/README.md +0 -0
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/gui_utilities/icons/focused_hide_text_icon.png +0 -0
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/gui_utilities/icons/focused_show_text_icon.png +0 -0
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/gui_utilities/icons/hide_text_icon.png +0 -0
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/gui_utilities/icons/show_text_icon.png +0 -0
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/gui_utilities/tlds/tlds_list.txt +0 -0
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/gui_utilities.egg-info/SOURCES.txt +0 -0
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/gui_utilities.egg-info/dependency_links.txt +0 -0
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/gui_utilities.egg-info/requires.txt +0 -0
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/gui_utilities.egg-info/top_level.txt +0 -0
- {gui_utilities-1.3.13 → gui_utilities-1.3.16}/setup.cfg +0 -0
|
@@ -175,12 +175,18 @@ def create_label(
|
|
|
175
175
|
padding_right = None,
|
|
176
176
|
padding_bottom = None,
|
|
177
177
|
border_width = 0,
|
|
178
|
-
border_color = "#
|
|
178
|
+
border_color = "#5c5c5c",
|
|
179
179
|
border_radius = 0,
|
|
180
180
|
hover_background_color = "#1e1e1e",
|
|
181
|
+
hover_border_width = 0,
|
|
182
|
+
hover_border_color = "#777777",
|
|
181
183
|
pressed_background_color = "#1e1e1e",
|
|
184
|
+
pressed_border_width = 0,
|
|
185
|
+
pressed_border_color = "#0078d7",
|
|
182
186
|
disabled_font_color = "#888888",
|
|
183
|
-
disabled_background_color = "#2d2d2d"
|
|
187
|
+
disabled_background_color = "#2d2d2d",
|
|
188
|
+
disabled_border_width = 0,
|
|
189
|
+
disabled_border_color = "#4a4a4a"
|
|
184
190
|
):
|
|
185
191
|
label = QLabel(text)
|
|
186
192
|
padding_left_value = padding_left if padding_left is not None else padding
|
|
@@ -203,13 +209,16 @@ def create_label(
|
|
|
203
209
|
}}
|
|
204
210
|
QLabel:hover{{
|
|
205
211
|
background-color: {hover_background_color};
|
|
212
|
+
border: {hover_border_width}px solid {hover_border_color};
|
|
206
213
|
}}
|
|
207
214
|
QLabel:pressed{{
|
|
208
215
|
background-color: {pressed_background_color};
|
|
216
|
+
border: {pressed_border_width}px solid {pressed_border_color};
|
|
209
217
|
}}
|
|
210
218
|
QLabel:disabled{{
|
|
211
219
|
color: {disabled_font_color};
|
|
212
220
|
background-color: {disabled_background_color};
|
|
221
|
+
border: {disabled_border_width}px solid {disabled_border_color};
|
|
213
222
|
}}
|
|
214
223
|
"""
|
|
215
224
|
label.setStyleSheet(style)
|
|
@@ -256,14 +265,27 @@ def create_button(
|
|
|
256
265
|
padding_top = padding_top,
|
|
257
266
|
padding_right = padding_right,
|
|
258
267
|
padding_bottom = padding_bottom,
|
|
268
|
+
border_width = border_width,
|
|
269
|
+
border_color = border_color,
|
|
270
|
+
border_radius = border_radius,
|
|
259
271
|
hover_background_color = hover_background_color,
|
|
272
|
+
hover_border_width = hover_border_width,
|
|
273
|
+
hover_border_color = hover_border_color,
|
|
260
274
|
pressed_background_color = pressed_background_color,
|
|
275
|
+
pressed_border_width = pressed_border_width,
|
|
276
|
+
pressed_border_color = pressed_border_color,
|
|
261
277
|
disabled_font_color = disabled_font_color,
|
|
262
|
-
disabled_background_color = disabled_background_color
|
|
278
|
+
disabled_background_color = disabled_background_color,
|
|
279
|
+
disabled_border_width = disabled_border_width,
|
|
280
|
+
disabled_border_color = disabled_border_color
|
|
263
281
|
)
|
|
264
282
|
label.setAlignment(Qt.AlignmentFlag.AlignCenter)
|
|
265
283
|
label.setWordWrap(True)
|
|
266
284
|
main_layout.addWidget(label)
|
|
285
|
+
padding_left_value = padding_left if padding_left is not None else padding
|
|
286
|
+
padding_top_value = padding_top if padding_top is not None else padding
|
|
287
|
+
padding_right_value = padding_right if padding_right is not None else padding
|
|
288
|
+
padding_bottom_value = padding_bottom if padding_bottom is not None else padding
|
|
267
289
|
style_sheet = f"""
|
|
268
290
|
QPushButton {{
|
|
269
291
|
font-family: {font_family};
|
|
@@ -271,7 +293,10 @@ def create_button(
|
|
|
271
293
|
color: {font_color};
|
|
272
294
|
font-weight: {font_weight};
|
|
273
295
|
background-color: {background_color};
|
|
274
|
-
padding:
|
|
296
|
+
padding-left: {padding_left_value}px;
|
|
297
|
+
padding-top: {padding_top_value}px;
|
|
298
|
+
padding-right: {padding_right_value}px;
|
|
299
|
+
padding-bottom: {padding_bottom_value}px;
|
|
275
300
|
border: {border_width}px solid {border_color};
|
|
276
301
|
border-radius: {border_radius}px;
|
|
277
302
|
}}
|
|
File without changes
|
|
File without changes
|
{gui_utilities-1.3.13 → gui_utilities-1.3.16}/gui_utilities/icons/focused_hide_text_icon.png
RENAMED
|
File without changes
|
{gui_utilities-1.3.13 → gui_utilities-1.3.16}/gui_utilities/icons/focused_show_text_icon.png
RENAMED
|
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
|