gui-utilities 1.3.6__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.6 → gui_utilities-1.3.16}/PKG-INFO +1 -1
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/gui_utilities/gui_utilities.py +64 -14
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/gui_utilities.egg-info/PKG-INFO +1 -1
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/pyproject.toml +1 -1
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/LICENSE +0 -0
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/README.md +0 -0
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/gui_utilities/icons/focused_hide_text_icon.png +0 -0
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/gui_utilities/icons/focused_show_text_icon.png +0 -0
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/gui_utilities/icons/hide_text_icon.png +0 -0
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/gui_utilities/icons/show_text_icon.png +0 -0
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/gui_utilities/tlds/tlds_list.txt +0 -0
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/gui_utilities.egg-info/SOURCES.txt +0 -0
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/gui_utilities.egg-info/dependency_links.txt +0 -0
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/gui_utilities.egg-info/requires.txt +0 -0
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/gui_utilities.egg-info/top_level.txt +0 -0
- {gui_utilities-1.3.6 → gui_utilities-1.3.16}/setup.cfg +0 -0
|
@@ -175,8 +175,18 @@ def create_label(
|
|
|
175
175
|
padding_right = None,
|
|
176
176
|
padding_bottom = None,
|
|
177
177
|
border_width = 0,
|
|
178
|
-
border_color = "#
|
|
179
|
-
border_radius = 0
|
|
178
|
+
border_color = "#5c5c5c",
|
|
179
|
+
border_radius = 0,
|
|
180
|
+
hover_background_color = "#1e1e1e",
|
|
181
|
+
hover_border_width = 0,
|
|
182
|
+
hover_border_color = "#777777",
|
|
183
|
+
pressed_background_color = "#1e1e1e",
|
|
184
|
+
pressed_border_width = 0,
|
|
185
|
+
pressed_border_color = "#0078d7",
|
|
186
|
+
disabled_font_color = "#888888",
|
|
187
|
+
disabled_background_color = "#2d2d2d",
|
|
188
|
+
disabled_border_width = 0,
|
|
189
|
+
disabled_border_color = "#4a4a4a"
|
|
180
190
|
):
|
|
181
191
|
label = QLabel(text)
|
|
182
192
|
padding_left_value = padding_left if padding_left is not None else padding
|
|
@@ -184,17 +194,32 @@ def create_label(
|
|
|
184
194
|
padding_right_value = padding_right if padding_right is not None else padding
|
|
185
195
|
padding_bottom_value = padding_bottom if padding_bottom is not None else padding
|
|
186
196
|
style = f"""
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
197
|
+
QLabel {{
|
|
198
|
+
font-family: {font_family};
|
|
199
|
+
font-size: {font_size}px;
|
|
200
|
+
color: {font_color};
|
|
201
|
+
font-weight: {font_weight};
|
|
202
|
+
background-color: {background_color};
|
|
203
|
+
padding-left: {padding_left_value}px;
|
|
204
|
+
padding-top: {padding_top_value}px;
|
|
205
|
+
padding-right: {padding_right_value}px;
|
|
206
|
+
padding-bottom: {padding_bottom_value}px;
|
|
207
|
+
border: {border_width}px solid {border_color};
|
|
208
|
+
border-radius: {border_radius}px;
|
|
209
|
+
}}
|
|
210
|
+
QLabel:hover{{
|
|
211
|
+
background-color: {hover_background_color};
|
|
212
|
+
border: {hover_border_width}px solid {hover_border_color};
|
|
213
|
+
}}
|
|
214
|
+
QLabel:pressed{{
|
|
215
|
+
background-color: {pressed_background_color};
|
|
216
|
+
border: {pressed_border_width}px solid {pressed_border_color};
|
|
217
|
+
}}
|
|
218
|
+
QLabel:disabled{{
|
|
219
|
+
color: {disabled_font_color};
|
|
220
|
+
background-color: {disabled_background_color};
|
|
221
|
+
border: {disabled_border_width}px solid {disabled_border_color};
|
|
222
|
+
}}
|
|
198
223
|
"""
|
|
199
224
|
label.setStyleSheet(style)
|
|
200
225
|
return label
|
|
@@ -228,7 +253,32 @@ def create_button(
|
|
|
228
253
|
button = QPushButton()
|
|
229
254
|
button.setMaximumWidth(360)
|
|
230
255
|
main_layout = QVBoxLayout(button)
|
|
231
|
-
|
|
256
|
+
main_layout.setContentsMargins(0, 0, 0, 0)
|
|
257
|
+
label = create_label(
|
|
258
|
+
text = text,
|
|
259
|
+
font_size = font_size,
|
|
260
|
+
font_color = font_color,
|
|
261
|
+
font_weight = "bold",
|
|
262
|
+
background_color = background_color,
|
|
263
|
+
padding = padding,
|
|
264
|
+
padding_left = padding_left,
|
|
265
|
+
padding_top = padding_top,
|
|
266
|
+
padding_right = padding_right,
|
|
267
|
+
padding_bottom = padding_bottom,
|
|
268
|
+
border_width = border_width,
|
|
269
|
+
border_color = border_color,
|
|
270
|
+
border_radius = border_radius,
|
|
271
|
+
hover_background_color = hover_background_color,
|
|
272
|
+
hover_border_width = hover_border_width,
|
|
273
|
+
hover_border_color = hover_border_color,
|
|
274
|
+
pressed_background_color = pressed_background_color,
|
|
275
|
+
pressed_border_width = pressed_border_width,
|
|
276
|
+
pressed_border_color = pressed_border_color,
|
|
277
|
+
disabled_font_color = disabled_font_color,
|
|
278
|
+
disabled_background_color = disabled_background_color,
|
|
279
|
+
disabled_border_width = disabled_border_width,
|
|
280
|
+
disabled_border_color = disabled_border_color
|
|
281
|
+
)
|
|
232
282
|
label.setAlignment(Qt.AlignmentFlag.AlignCenter)
|
|
233
283
|
label.setWordWrap(True)
|
|
234
284
|
main_layout.addWidget(label)
|
|
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
|