streamdeck-gui-ng 4.1.3__py3-none-any.whl → 4.3.0__py3-none-any.whl
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.
- {streamdeck_gui_ng-4.1.3.dist-info → streamdeck_gui_ng-4.3.0.dist-info}/METADATA +1 -1
- {streamdeck_gui_ng-4.1.3.dist-info → streamdeck_gui_ng-4.3.0.dist-info}/RECORD +10 -10
- streamdeck_ui/api.py +34 -0
- streamdeck_ui/button.ui +27 -7
- streamdeck_ui/gui.py +34 -2
- streamdeck_ui/model.py +4 -0
- streamdeck_ui/ui_button.py +142 -128
- {streamdeck_gui_ng-4.1.3.dist-info → streamdeck_gui_ng-4.3.0.dist-info}/WHEEL +0 -0
- {streamdeck_gui_ng-4.1.3.dist-info → streamdeck_gui_ng-4.3.0.dist-info}/entry_points.txt +0 -0
- {streamdeck_gui_ng-4.1.3.dist-info → streamdeck_gui_ng-4.3.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
streamdeck_ui/__init__.py,sha256=5uEGCGO8UWOuLSauOltiEZbFrpuGHYUTYf18n83go4g,99
|
|
2
|
-
streamdeck_ui/api.py,sha256=
|
|
3
|
-
streamdeck_ui/button.ui,sha256=
|
|
2
|
+
streamdeck_ui/api.py,sha256=t0TekcEW-d3pPJ52aD5BLeb06XDJjkjGhaBjok3f9OA,34530
|
|
3
|
+
streamdeck_ui/button.ui,sha256=Ik0JIqkEZ6mWgEDuIy1MPaSXOlf0eUADrgyPZoeOeAs,34815
|
|
4
4
|
streamdeck_ui/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
streamdeck_ui/cli/commands.py,sha256=cIbLMAomfIxzHFvyENy90uR__OUdhZVZB_RhOsFfusU,7964
|
|
6
6
|
streamdeck_ui/cli/server.py,sha256=LSKHpbQ02vx1cln3yoNOAjQNyBgJPZ0N3bATq33tkLA,9729
|
|
@@ -29,7 +29,7 @@ streamdeck_ui/fonts/roboto/Roboto-MediumItalic.ttf,sha256=VS-mv8j0rUgLpp_rl0XzHX
|
|
|
29
29
|
streamdeck_ui/fonts/roboto/Roboto-Regular.ttf,sha256=AXwL6aqm0DWXN-H6dirTBMDgEHkn-v9abB9BXH9SRO0,171272
|
|
30
30
|
streamdeck_ui/fonts/roboto/Roboto-Thin.ttf,sha256=3KxWKBW1dea4Ibrl_SRf6mWQuztZf9W5bq5qzMsh0Dw,171500
|
|
31
31
|
streamdeck_ui/fonts/roboto/Roboto-ThinItalic.ttf,sha256=Milr5I8-A8Yt28qXtbEJa2AsJZoWDk--Hcdrp2wDRBg,175872
|
|
32
|
-
streamdeck_ui/gui.py,sha256=
|
|
32
|
+
streamdeck_ui/gui.py,sha256=G8cVc2yzJGCsrQuMpfkfOrwRGwraq7s6-tLQgFAYoSI,52948
|
|
33
33
|
streamdeck_ui/icons/add_page.png,sha256=oopv9LUBpkPPtEpe8wWFWT_y0ia5UiWkHfLAW3DMsaw,372
|
|
34
34
|
streamdeck_ui/icons/cross.png,sha256=_6zKgvOQdM6MlBhMvMotGNDAUQiWBweC6MZgUDzsKuU,1081
|
|
35
35
|
streamdeck_ui/icons/gear.png,sha256=VE89kqTkdRipyFeJaW5ltL-EB12y8TRp5iM6Ir29jT4,1341
|
|
@@ -41,7 +41,7 @@ streamdeck_ui/logger.py,sha256=Yucosz5p39uGHVSbZrCPlLkcGLvcI9AGOK6jPYTOHB0,306
|
|
|
41
41
|
streamdeck_ui/logo.png,sha256=jzb30T5MX-SkL5H7pwHVLDTv5-Zk0ztSUtec2trN77c,17681
|
|
42
42
|
streamdeck_ui/main.ui,sha256=R6SdldHEJ3rqXi2qNo6XuyI5bPERZKnDc_nvpanJuzQ,12539
|
|
43
43
|
streamdeck_ui/mock_streamdeck.py,sha256=ErVMOSg9ViM0GqKeuoUlAn7t8bfggHMTUFqt4rQnKjc,6301
|
|
44
|
-
streamdeck_ui/model.py,sha256=
|
|
44
|
+
streamdeck_ui/model.py,sha256=ARwasxpCREsavAH0pxpQuyBG39A6GDGzSET6MT2ZIQQ,2820
|
|
45
45
|
streamdeck_ui/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
46
46
|
streamdeck_ui/modules/fonts.py,sha256=Ga0R8OLHOUPwVoBBfkSTBs8CqVWT8992QJ5hzi3uMVs,7014
|
|
47
47
|
streamdeck_ui/modules/keyboard.py,sha256=E0wCMp2bOcUPP-_we0e9TbV8hSs8N065nCvg-hcCndo,13297
|
|
@@ -52,11 +52,11 @@ streamdeck_ui/resources_rc.py,sha256=zn5KS-3Fa53Vnbxwzfh91WFOUTPu66_fcX0Nk6VNCaI
|
|
|
52
52
|
streamdeck_ui/semaphore.py,sha256=OIlUfDe7MXQfOCeRd7tv_6nUzKJKgBvpBSvzlU1Jewg,1079
|
|
53
53
|
streamdeck_ui/settings.ui,sha256=jpK5NlefiKqTFu9n1XZqNW-WCVpOXyckLxf0VeHSC98,4118
|
|
54
54
|
streamdeck_ui/stream_deck_monitor.py,sha256=lGCkp9jvVnRCS1_Qs3LF3voO5jcfAkN1ddaHbQoN0yE,6790
|
|
55
|
-
streamdeck_ui/ui_button.py,sha256=
|
|
55
|
+
streamdeck_ui/ui_button.py,sha256=MI4vcmxahJhGWQM8lL6TrPfibmJ1i9aW8PSz2NVevDM,23773
|
|
56
56
|
streamdeck_ui/ui_main.py,sha256=QxGQI6I6XZCRMNO0CLOdu4pNZWOi3Y0K59TdRgWXpaA,12301
|
|
57
57
|
streamdeck_ui/ui_settings.py,sha256=U5tRgt9bjU07F1dO8od-Z7DWpN5E4OeFYpfCYoNwsWk,5184
|
|
58
|
-
streamdeck_gui_ng-4.
|
|
59
|
-
streamdeck_gui_ng-4.
|
|
60
|
-
streamdeck_gui_ng-4.
|
|
61
|
-
streamdeck_gui_ng-4.
|
|
62
|
-
streamdeck_gui_ng-4.
|
|
58
|
+
streamdeck_gui_ng-4.3.0.dist-info/METADATA,sha256=j89qXPm2QDur-Rr-32A0H7zUsE2ghpWrx96hpZP12vg,9327
|
|
59
|
+
streamdeck_gui_ng-4.3.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
60
|
+
streamdeck_gui_ng-4.3.0.dist-info/entry_points.txt,sha256=G-4ttNWmsyQnCFeTDIaC4dF98377uYUynfqukq2Z-xM,99
|
|
61
|
+
streamdeck_gui_ng-4.3.0.dist-info/licenses/LICENSE,sha256=5On1FePihJNEKF3BW6wdKLblN_ALkveIYRdhni-HFqQ,1072
|
|
62
|
+
streamdeck_gui_ng-4.3.0.dist-info/RECORD,,
|
streamdeck_ui/api.py
CHANGED
|
@@ -535,6 +535,16 @@ class StreamDeckServer:
|
|
|
535
535
|
"""Returns the page switch set for the specified button. 0 implies no page switch."""
|
|
536
536
|
return self._button_state(serial_number, page, button).switch_page
|
|
537
537
|
|
|
538
|
+
def set_button_temp_switch_page(self, serial_number: str, page: int, button: int, temp_switch_page: int) -> None:
|
|
539
|
+
"""Sets the temporary page switch associated with the button"""
|
|
540
|
+
if self.get_button_temp_switch_page(serial_number, page, button) != temp_switch_page:
|
|
541
|
+
self._button_state(serial_number, page, button).temp_switch_page = temp_switch_page
|
|
542
|
+
self._save_state()
|
|
543
|
+
|
|
544
|
+
def get_button_temp_switch_page(self, serial_number: str, page: int, button: int) -> int:
|
|
545
|
+
"""Returns the temporary page switch set for the specified button. 0 implies no temporary page switch."""
|
|
546
|
+
return self._button_state(serial_number, page, button).temp_switch_page
|
|
547
|
+
|
|
538
548
|
def set_button_keys(self, serial_number: str, page: int, button: int, keys: str) -> None:
|
|
539
549
|
"""Sets the keys associated with the button"""
|
|
540
550
|
if self.get_button_keys(serial_number, page, button) != keys:
|
|
@@ -646,6 +656,30 @@ class StreamDeckServer:
|
|
|
646
656
|
# Wait for at least one cycle
|
|
647
657
|
display_handler.synchronize()
|
|
648
658
|
|
|
659
|
+
def set_temp_page(self, serial_number: str, page: int) -> None:
|
|
660
|
+
"""Sets a temporary page, storing the current page to return to on release"""
|
|
661
|
+
if page not in self.get_pages(serial_number):
|
|
662
|
+
return
|
|
663
|
+
# Store current page as previous page
|
|
664
|
+
self.state[serial_number].previous_page = self.get_page(serial_number)
|
|
665
|
+
# Switch to temporary page
|
|
666
|
+
self.state[serial_number].page = page
|
|
667
|
+
|
|
668
|
+
display_handler = self.display_handlers[serial_number]
|
|
669
|
+
display_handler.set_page(page)
|
|
670
|
+
display_handler.synchronize()
|
|
671
|
+
|
|
672
|
+
def restore_previous_page(self, serial_number: str) -> None:
|
|
673
|
+
"""Restores the previous page after temporary page switch"""
|
|
674
|
+
previous_page = self.state[serial_number].previous_page
|
|
675
|
+
if previous_page in self.get_pages(serial_number):
|
|
676
|
+
self.state[serial_number].page = previous_page
|
|
677
|
+
self.state[serial_number].previous_page = 0
|
|
678
|
+
|
|
679
|
+
display_handler = self.display_handlers[serial_number]
|
|
680
|
+
display_handler.set_page(previous_page)
|
|
681
|
+
display_handler.synchronize()
|
|
682
|
+
|
|
649
683
|
def _update_streamdeck_filters(self, serial_number: str):
|
|
650
684
|
"""Updates the filters for all the StreamDeck buttons.
|
|
651
685
|
|
streamdeck_ui/button.ui
CHANGED
|
@@ -1151,51 +1151,71 @@
|
|
|
1151
1151
|
</widget>
|
|
1152
1152
|
</item>
|
|
1153
1153
|
<item row="9" column="0">
|
|
1154
|
+
<widget class="QLabel" name="label_temp_switch_page">
|
|
1155
|
+
<property name="text">
|
|
1156
|
+
<string>Temp Switch Page:</string>
|
|
1157
|
+
</property>
|
|
1158
|
+
</widget>
|
|
1159
|
+
</item>
|
|
1160
|
+
<item row="9" column="1">
|
|
1161
|
+
<widget class="QSpinBox" name="temp_switch_page">
|
|
1162
|
+
<property name="minimum">
|
|
1163
|
+
<number>0</number>
|
|
1164
|
+
</property>
|
|
1165
|
+
<property name="maximum">
|
|
1166
|
+
<number>999999999</number>
|
|
1167
|
+
</property>
|
|
1168
|
+
<property name="value">
|
|
1169
|
+
<number>0</number>
|
|
1170
|
+
</property>
|
|
1171
|
+
</widget>
|
|
1172
|
+
</item>
|
|
1173
|
+
<item row="10" column="0">
|
|
1154
1174
|
<widget class="QLabel" name="label_10">
|
|
1155
1175
|
<property name="text">
|
|
1156
1176
|
<string>Switch state</string>
|
|
1157
1177
|
</property>
|
|
1158
1178
|
</widget>
|
|
1159
1179
|
</item>
|
|
1160
|
-
<item row="
|
|
1180
|
+
<item row="10" column="1">
|
|
1161
1181
|
<widget class="QSpinBox" name="switch_state">
|
|
1162
1182
|
<property name="maximum">
|
|
1163
1183
|
<number>999999999</number>
|
|
1164
1184
|
</property>
|
|
1165
1185
|
</widget>
|
|
1166
1186
|
</item>
|
|
1167
|
-
<item row="
|
|
1187
|
+
<item row="11" column="0">
|
|
1168
1188
|
<widget class="QLabel" name="label_7">
|
|
1169
1189
|
<property name="text">
|
|
1170
1190
|
<string>Brightness +/-:</string>
|
|
1171
1191
|
</property>
|
|
1172
1192
|
</widget>
|
|
1173
1193
|
</item>
|
|
1174
|
-
<item row="
|
|
1194
|
+
<item row="11" column="1">
|
|
1175
1195
|
<widget class="QSpinBox" name="change_brightness">
|
|
1176
1196
|
<property name="minimum">
|
|
1177
1197
|
<number>-99</number>
|
|
1178
1198
|
</property>
|
|
1179
1199
|
</widget>
|
|
1180
1200
|
</item>
|
|
1181
|
-
<item row="
|
|
1201
|
+
<item row="12" column="0">
|
|
1182
1202
|
<widget class="QLabel" name="label_6">
|
|
1183
1203
|
<property name="text">
|
|
1184
1204
|
<string>Write Text:</string>
|
|
1185
1205
|
</property>
|
|
1186
1206
|
</widget>
|
|
1187
1207
|
</item>
|
|
1188
|
-
<item row="
|
|
1208
|
+
<item row="12" column="1">
|
|
1189
1209
|
<widget class="QPlainTextEdit" name="write"/>
|
|
1190
1210
|
</item>
|
|
1191
|
-
<item row="
|
|
1211
|
+
<item row="13" column="0">
|
|
1192
1212
|
<widget class="QLabel" name="label_force_refresh">
|
|
1193
1213
|
<property name="text">
|
|
1194
1214
|
<string>Force Refresh:</string>
|
|
1195
1215
|
</property>
|
|
1196
1216
|
</widget>
|
|
1197
1217
|
</item>
|
|
1198
|
-
<item row="
|
|
1218
|
+
<item row="13" column="1">
|
|
1199
1219
|
<widget class="QCheckBox" name="force_refresh">
|
|
1200
1220
|
<property name="toolTip">
|
|
1201
1221
|
<string>Force icon refresh after command execution</string>
|
streamdeck_ui/gui.py
CHANGED
|
@@ -179,7 +179,7 @@ class DraggableButton(QToolButton):
|
|
|
179
179
|
|
|
180
180
|
|
|
181
181
|
def handle_keypress(ui, deck_id: str, key: int, state: bool) -> None:
|
|
182
|
-
#
|
|
182
|
+
# Handle button press (state=True) and release (state=False) events
|
|
183
183
|
if state:
|
|
184
184
|
if api.reset_dimmer(deck_id):
|
|
185
185
|
return
|
|
@@ -190,6 +190,7 @@ def handle_keypress(ui, deck_id: str, key: int, state: bool) -> None:
|
|
|
190
190
|
write = api.get_button_write(deck_id, page, key)
|
|
191
191
|
brightness_change = api.get_button_change_brightness(deck_id, page, key)
|
|
192
192
|
switch_page = api.get_button_switch_page(deck_id, page, key)
|
|
193
|
+
temp_switch_page = api.get_button_temp_switch_page(deck_id, page, key)
|
|
193
194
|
switch_state = api.get_button_switch_state(deck_id, page, key)
|
|
194
195
|
|
|
195
196
|
if command:
|
|
@@ -225,7 +226,20 @@ def handle_keypress(ui, deck_id: str, key: int, state: bool) -> None:
|
|
|
225
226
|
print(f"Could not change brightness: {error}")
|
|
226
227
|
show_tray_warning_message("Unable to change brightness.")
|
|
227
228
|
|
|
228
|
-
if
|
|
229
|
+
if temp_switch_page:
|
|
230
|
+
temp_switch_page_index = temp_switch_page - 1
|
|
231
|
+
if temp_switch_page_index in api.get_pages(deck_id):
|
|
232
|
+
api.set_temp_page(deck_id, temp_switch_page_index)
|
|
233
|
+
if _deck() == deck_id:
|
|
234
|
+
for page in range(ui.pages.count()):
|
|
235
|
+
if ui.pages.widget(page).property("page_id") == temp_switch_page_index:
|
|
236
|
+
ui.pages.setCurrentIndex(page)
|
|
237
|
+
break
|
|
238
|
+
else:
|
|
239
|
+
show_tray_warning_message(
|
|
240
|
+
f"Unable to perform temporary switch page, the page {temp_switch_page} does not exist in your current settings" # noqa: E713
|
|
241
|
+
)
|
|
242
|
+
elif switch_page:
|
|
229
243
|
switch_page_index = switch_page - 1
|
|
230
244
|
if switch_page_index in api.get_pages(deck_id):
|
|
231
245
|
api.set_page(deck_id, switch_page_index)
|
|
@@ -254,6 +268,21 @@ def handle_keypress(ui, deck_id: str, key: int, state: bool) -> None:
|
|
|
254
268
|
show_tray_warning_message(
|
|
255
269
|
f"Unable to perform switch button state, the button state {switch_state} does not exist in your current settings" # noqa: E713
|
|
256
270
|
)
|
|
271
|
+
else:
|
|
272
|
+
# Handle button release (state=False)
|
|
273
|
+
page = api.get_page(deck_id)
|
|
274
|
+
temp_switch_page = api.get_button_temp_switch_page(deck_id, page, key)
|
|
275
|
+
|
|
276
|
+
# If this button had a temporary page switch, restore the previous page
|
|
277
|
+
if temp_switch_page:
|
|
278
|
+
api.restore_previous_page(deck_id)
|
|
279
|
+
if _deck() == deck_id:
|
|
280
|
+
# Update UI to show the previous page
|
|
281
|
+
previous_page = api.get_page(deck_id)
|
|
282
|
+
for page_idx in range(ui.pages.count()):
|
|
283
|
+
if ui.pages.widget(page_idx).property("page_id") == previous_page:
|
|
284
|
+
ui.pages.setCurrentIndex(page_idx)
|
|
285
|
+
break
|
|
257
286
|
|
|
258
287
|
|
|
259
288
|
def _deck() -> Optional[str]:
|
|
@@ -613,6 +642,7 @@ def build_button_state_form(tab) -> None:
|
|
|
613
642
|
tab_ui.background_color.setPalette(QPalette(button_state.background_color or DEFAULT_BACKGROUND_COLOR))
|
|
614
643
|
tab_ui.change_brightness.setValue(button_state.brightness_change)
|
|
615
644
|
tab_ui.switch_page.setValue(button_state.switch_page)
|
|
645
|
+
tab_ui.temp_switch_page.setValue(button_state.temp_switch_page)
|
|
616
646
|
tab_ui.switch_state.setValue(button_state.switch_state)
|
|
617
647
|
tab_ui.force_refresh.setChecked(button_state.force_refresh)
|
|
618
648
|
|
|
@@ -637,6 +667,7 @@ def build_button_state_form(tab) -> None:
|
|
|
637
667
|
tab_ui.text_color.clicked.connect(partial(show_button_state_font_color_dialog, tab_ui))
|
|
638
668
|
tab_ui.background_color.clicked.connect(partial(show_button_state_background_color_dialog, tab_ui))
|
|
639
669
|
tab_ui.switch_page.valueChanged.connect(partial(update_button_attribute, "switch_page"))
|
|
670
|
+
tab_ui.temp_switch_page.valueChanged.connect(partial(update_button_attribute, "temp_switch_page"))
|
|
640
671
|
tab_ui.switch_state.valueChanged.connect(partial(update_button_attribute, "switch_state"))
|
|
641
672
|
tab_ui.force_refresh.stateChanged.connect(lambda state: update_button_attribute("force_refresh", bool(state)))
|
|
642
673
|
tab_ui.add_image.clicked.connect(partial(show_button_state_image_dialog))
|
|
@@ -655,6 +686,7 @@ def enable_button_configuration(ui: Ui_ButtonForm, enabled: bool):
|
|
|
655
686
|
ui.write.setEnabled(enabled)
|
|
656
687
|
ui.change_brightness.setEnabled(enabled)
|
|
657
688
|
ui.switch_page.setEnabled(enabled)
|
|
689
|
+
ui.temp_switch_page.setEnabled(enabled)
|
|
658
690
|
ui.force_refresh.setEnabled(enabled)
|
|
659
691
|
ui.switch_state.setEnabled(enabled)
|
|
660
692
|
ui.add_image.setEnabled(enabled)
|
streamdeck_ui/model.py
CHANGED
|
@@ -16,6 +16,8 @@ class ButtonState:
|
|
|
16
16
|
"""Command to execute, actionable by the button"""
|
|
17
17
|
switch_page: int = 0
|
|
18
18
|
"""Page to switch, actionable by the button"""
|
|
19
|
+
temp_switch_page: int = 0
|
|
20
|
+
"""Temporary page to switch while button is pressed, returns to previous page on release"""
|
|
19
21
|
switch_state: int = 0
|
|
20
22
|
"""Button state to switch, actionable by the button"""
|
|
21
23
|
brightness_change: int = 0
|
|
@@ -58,6 +60,8 @@ class DeckState:
|
|
|
58
60
|
"""Rotation of the StreamDeck display"""
|
|
59
61
|
page: int = 0
|
|
60
62
|
"""Current displayed page in the StreamDeck"""
|
|
63
|
+
previous_page: int = 0
|
|
64
|
+
"""Previous page for temporary page switching"""
|
|
61
65
|
|
|
62
66
|
|
|
63
67
|
@dataclass
|
streamdeck_ui/ui_button.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
################################################################################
|
|
4
4
|
## Form generated from reading UI file 'button.ui'
|
|
5
5
|
##
|
|
6
|
-
## Created by: Qt User Interface Compiler version 6.
|
|
6
|
+
## Created by: Qt User Interface Compiler version 6.10.0
|
|
7
7
|
##
|
|
8
8
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
9
9
|
################################################################################
|
|
@@ -31,7 +31,7 @@ class Ui_ButtonForm(object):
|
|
|
31
31
|
self.label = QLabel(ButtonForm)
|
|
32
32
|
self.label.setObjectName(u"label")
|
|
33
33
|
|
|
34
|
-
self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label)
|
|
34
|
+
self.formLayout.setWidget(0, QFormLayout.ItemRole.LabelRole, self.label)
|
|
35
35
|
|
|
36
36
|
self.horizontalLayout_2 = QHBoxLayout()
|
|
37
37
|
self.horizontalLayout_2.setSpacing(6)
|
|
@@ -50,18 +50,18 @@ class Ui_ButtonForm(object):
|
|
|
50
50
|
self.remove_image.setSizePolicy(sizePolicy)
|
|
51
51
|
self.remove_image.setMaximumSize(QSize(30, 16777215))
|
|
52
52
|
icon = QIcon()
|
|
53
|
-
icon.addFile(u":/icons/icons/cross.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
53
|
+
icon.addFile(u":/icons/icons/cross.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
|
54
54
|
self.remove_image.setIcon(icon)
|
|
55
55
|
|
|
56
56
|
self.horizontalLayout_2.addWidget(self.remove_image)
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
self.formLayout.setLayout(0, QFormLayout.FieldRole, self.horizontalLayout_2)
|
|
59
|
+
self.formLayout.setLayout(0, QFormLayout.ItemRole.FieldRole, self.horizontalLayout_2)
|
|
60
60
|
|
|
61
61
|
self.label_9 = QLabel(ButtonForm)
|
|
62
62
|
self.label_9.setObjectName(u"label_9")
|
|
63
63
|
|
|
64
|
-
self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label_9)
|
|
64
|
+
self.formLayout.setWidget(1, QFormLayout.ItemRole.LabelRole, self.label_9)
|
|
65
65
|
|
|
66
66
|
self.background_color = QPushButton(ButtonForm)
|
|
67
67
|
self.background_color.setObjectName(u"background_color")
|
|
@@ -73,79 +73,79 @@ class Ui_ButtonForm(object):
|
|
|
73
73
|
self.background_color.setMaximumSize(QSize(16777215, 16777215))
|
|
74
74
|
palette = QPalette()
|
|
75
75
|
brush = QBrush(QColor(0, 0, 0, 255))
|
|
76
|
-
brush.setStyle(Qt.SolidPattern)
|
|
77
|
-
palette.setBrush(QPalette.Active, QPalette.WindowText, brush)
|
|
76
|
+
brush.setStyle(Qt.BrushStyle.SolidPattern)
|
|
77
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.WindowText, brush)
|
|
78
78
|
brush1 = QBrush(QColor(255, 255, 255, 255))
|
|
79
|
-
brush1.setStyle(Qt.SolidPattern)
|
|
80
|
-
palette.setBrush(QPalette.Active, QPalette.Button, brush1)
|
|
81
|
-
palette.setBrush(QPalette.Active, QPalette.Light, brush1)
|
|
82
|
-
palette.setBrush(QPalette.Active, QPalette.Midlight, brush1)
|
|
79
|
+
brush1.setStyle(Qt.BrushStyle.SolidPattern)
|
|
80
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Button, brush1)
|
|
81
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Light, brush1)
|
|
82
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Midlight, brush1)
|
|
83
83
|
brush2 = QBrush(QColor(127, 127, 127, 255))
|
|
84
|
-
brush2.setStyle(Qt.SolidPattern)
|
|
85
|
-
palette.setBrush(QPalette.Active, QPalette.Dark, brush2)
|
|
84
|
+
brush2.setStyle(Qt.BrushStyle.SolidPattern)
|
|
85
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Dark, brush2)
|
|
86
86
|
brush3 = QBrush(QColor(170, 170, 170, 255))
|
|
87
|
-
brush3.setStyle(Qt.SolidPattern)
|
|
88
|
-
palette.setBrush(QPalette.Active, QPalette.Mid, brush3)
|
|
89
|
-
palette.setBrush(QPalette.Active, QPalette.Text, brush)
|
|
90
|
-
palette.setBrush(QPalette.Active, QPalette.BrightText, brush1)
|
|
91
|
-
palette.setBrush(QPalette.Active, QPalette.ButtonText, brush)
|
|
92
|
-
palette.setBrush(QPalette.Active, QPalette.Base, brush1)
|
|
93
|
-
palette.setBrush(QPalette.Active, QPalette.Window, brush1)
|
|
94
|
-
palette.setBrush(QPalette.Active, QPalette.Shadow, brush)
|
|
95
|
-
palette.setBrush(QPalette.Active, QPalette.AlternateBase, brush1)
|
|
87
|
+
brush3.setStyle(Qt.BrushStyle.SolidPattern)
|
|
88
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Mid, brush3)
|
|
89
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Text, brush)
|
|
90
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.BrightText, brush1)
|
|
91
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.ButtonText, brush)
|
|
92
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Base, brush1)
|
|
93
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Window, brush1)
|
|
94
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Shadow, brush)
|
|
95
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.AlternateBase, brush1)
|
|
96
96
|
brush4 = QBrush(QColor(255, 255, 220, 255))
|
|
97
|
-
brush4.setStyle(Qt.SolidPattern)
|
|
98
|
-
palette.setBrush(QPalette.Active, QPalette.ToolTipBase, brush4)
|
|
99
|
-
palette.setBrush(QPalette.Active, QPalette.ToolTipText, brush)
|
|
97
|
+
brush4.setStyle(Qt.BrushStyle.SolidPattern)
|
|
98
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.ToolTipBase, brush4)
|
|
99
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.ToolTipText, brush)
|
|
100
100
|
brush5 = QBrush(QColor(0, 0, 0, 128))
|
|
101
|
-
brush5.setStyle(Qt.SolidPattern)
|
|
101
|
+
brush5.setStyle(Qt.BrushStyle.SolidPattern)
|
|
102
102
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
|
103
|
-
palette.setBrush(QPalette.Active, QPalette.PlaceholderText, brush5)
|
|
103
|
+
palette.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.PlaceholderText, brush5)
|
|
104
104
|
#endif
|
|
105
|
-
palette.setBrush(QPalette.Inactive, QPalette.WindowText, brush)
|
|
106
|
-
palette.setBrush(QPalette.Inactive, QPalette.Button, brush1)
|
|
107
|
-
palette.setBrush(QPalette.Inactive, QPalette.Light, brush1)
|
|
108
|
-
palette.setBrush(QPalette.Inactive, QPalette.Midlight, brush1)
|
|
109
|
-
palette.setBrush(QPalette.Inactive, QPalette.Dark, brush2)
|
|
110
|
-
palette.setBrush(QPalette.Inactive, QPalette.Mid, brush3)
|
|
111
|
-
palette.setBrush(QPalette.Inactive, QPalette.Text, brush)
|
|
112
|
-
palette.setBrush(QPalette.Inactive, QPalette.BrightText, brush1)
|
|
113
|
-
palette.setBrush(QPalette.Inactive, QPalette.ButtonText, brush)
|
|
114
|
-
palette.setBrush(QPalette.Inactive, QPalette.Base, brush1)
|
|
115
|
-
palette.setBrush(QPalette.Inactive, QPalette.Window, brush1)
|
|
116
|
-
palette.setBrush(QPalette.Inactive, QPalette.Shadow, brush)
|
|
117
|
-
palette.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush1)
|
|
118
|
-
palette.setBrush(QPalette.Inactive, QPalette.ToolTipBase, brush4)
|
|
119
|
-
palette.setBrush(QPalette.Inactive, QPalette.ToolTipText, brush)
|
|
105
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.WindowText, brush)
|
|
106
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Button, brush1)
|
|
107
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Light, brush1)
|
|
108
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Midlight, brush1)
|
|
109
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Dark, brush2)
|
|
110
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Mid, brush3)
|
|
111
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Text, brush)
|
|
112
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.BrightText, brush1)
|
|
113
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.ButtonText, brush)
|
|
114
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Base, brush1)
|
|
115
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Window, brush1)
|
|
116
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Shadow, brush)
|
|
117
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.AlternateBase, brush1)
|
|
118
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.ToolTipBase, brush4)
|
|
119
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.ToolTipText, brush)
|
|
120
120
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
|
121
|
-
palette.setBrush(QPalette.Inactive, QPalette.PlaceholderText, brush5)
|
|
121
|
+
palette.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.PlaceholderText, brush5)
|
|
122
122
|
#endif
|
|
123
|
-
palette.setBrush(QPalette.Disabled, QPalette.WindowText, brush2)
|
|
124
|
-
palette.setBrush(QPalette.Disabled, QPalette.Button, brush1)
|
|
125
|
-
palette.setBrush(QPalette.Disabled, QPalette.Light, brush1)
|
|
126
|
-
palette.setBrush(QPalette.Disabled, QPalette.Midlight, brush1)
|
|
127
|
-
palette.setBrush(QPalette.Disabled, QPalette.Dark, brush2)
|
|
128
|
-
palette.setBrush(QPalette.Disabled, QPalette.Mid, brush3)
|
|
129
|
-
palette.setBrush(QPalette.Disabled, QPalette.Text, brush2)
|
|
130
|
-
palette.setBrush(QPalette.Disabled, QPalette.BrightText, brush1)
|
|
131
|
-
palette.setBrush(QPalette.Disabled, QPalette.ButtonText, brush2)
|
|
132
|
-
palette.setBrush(QPalette.Disabled, QPalette.Base, brush1)
|
|
133
|
-
palette.setBrush(QPalette.Disabled, QPalette.Window, brush1)
|
|
134
|
-
palette.setBrush(QPalette.Disabled, QPalette.Shadow, brush)
|
|
135
|
-
palette.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush1)
|
|
136
|
-
palette.setBrush(QPalette.Disabled, QPalette.ToolTipBase, brush4)
|
|
137
|
-
palette.setBrush(QPalette.Disabled, QPalette.ToolTipText, brush)
|
|
123
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.WindowText, brush2)
|
|
124
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Button, brush1)
|
|
125
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Light, brush1)
|
|
126
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Midlight, brush1)
|
|
127
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Dark, brush2)
|
|
128
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Mid, brush3)
|
|
129
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Text, brush2)
|
|
130
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.BrightText, brush1)
|
|
131
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.ButtonText, brush2)
|
|
132
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Base, brush1)
|
|
133
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Window, brush1)
|
|
134
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Shadow, brush)
|
|
135
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.AlternateBase, brush1)
|
|
136
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.ToolTipBase, brush4)
|
|
137
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.ToolTipText, brush)
|
|
138
138
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
|
139
|
-
palette.setBrush(QPalette.Disabled, QPalette.PlaceholderText, brush5)
|
|
139
|
+
palette.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.PlaceholderText, brush5)
|
|
140
140
|
#endif
|
|
141
141
|
self.background_color.setPalette(palette)
|
|
142
142
|
|
|
143
|
-
self.formLayout.setWidget(1, QFormLayout.FieldRole, self.background_color)
|
|
143
|
+
self.formLayout.setWidget(1, QFormLayout.ItemRole.FieldRole, self.background_color)
|
|
144
144
|
|
|
145
145
|
self.label_2 = QLabel(ButtonForm)
|
|
146
146
|
self.label_2.setObjectName(u"label_2")
|
|
147
147
|
|
|
148
|
-
self.formLayout.setWidget(2, QFormLayout.LabelRole, self.label_2)
|
|
148
|
+
self.formLayout.setWidget(2, QFormLayout.ItemRole.LabelRole, self.label_2)
|
|
149
149
|
|
|
150
150
|
self.horizontalLayout_3 = QHBoxLayout()
|
|
151
151
|
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
|
|
@@ -161,7 +161,7 @@ class Ui_ButtonForm(object):
|
|
|
161
161
|
self.text_v_align.setMinimumSize(QSize(40, 30))
|
|
162
162
|
self.text_v_align.setMaximumSize(QSize(30, 16777215))
|
|
163
163
|
icon1 = QIcon()
|
|
164
|
-
icon1.addFile(u":/icons/icons/vertical-align.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
164
|
+
icon1.addFile(u":/icons/icons/vertical-align.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
|
165
165
|
self.text_v_align.setIcon(icon1)
|
|
166
166
|
|
|
167
167
|
self.verticalLayout_4.addWidget(self.text_v_align)
|
|
@@ -170,7 +170,7 @@ class Ui_ButtonForm(object):
|
|
|
170
170
|
self.text_h_align.setObjectName(u"text_h_align")
|
|
171
171
|
self.text_h_align.setMinimumSize(QSize(40, 30))
|
|
172
172
|
icon2 = QIcon()
|
|
173
|
-
icon2.addFile(u":/icons/icons/horizontal-align.png", QSize(), QIcon.Normal, QIcon.Off)
|
|
173
|
+
icon2.addFile(u":/icons/icons/horizontal-align.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
|
174
174
|
self.text_h_align.setIcon(icon2)
|
|
175
175
|
|
|
176
176
|
self.verticalLayout_4.addWidget(self.text_h_align)
|
|
@@ -179,12 +179,12 @@ class Ui_ButtonForm(object):
|
|
|
179
179
|
self.horizontalLayout_3.addLayout(self.verticalLayout_4)
|
|
180
180
|
|
|
181
181
|
|
|
182
|
-
self.formLayout.setLayout(2, QFormLayout.FieldRole, self.horizontalLayout_3)
|
|
182
|
+
self.formLayout.setLayout(2, QFormLayout.ItemRole.FieldRole, self.horizontalLayout_3)
|
|
183
183
|
|
|
184
184
|
self.label_4 = QLabel(ButtonForm)
|
|
185
185
|
self.label_4.setObjectName(u"label_4")
|
|
186
186
|
|
|
187
|
-
self.formLayout.setWidget(3, QFormLayout.LabelRole, self.label_4)
|
|
187
|
+
self.formLayout.setWidget(3, QFormLayout.ItemRole.LabelRole, self.label_4)
|
|
188
188
|
|
|
189
189
|
self.horizontalLayout = QHBoxLayout()
|
|
190
190
|
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
|
@@ -224,59 +224,59 @@ class Ui_ButtonForm(object):
|
|
|
224
224
|
self.text_color.setSizePolicy(sizePolicy4)
|
|
225
225
|
self.text_color.setMaximumSize(QSize(16777215, 16777215))
|
|
226
226
|
palette1 = QPalette()
|
|
227
|
-
palette1.setBrush(QPalette.Active, QPalette.WindowText, brush)
|
|
228
|
-
palette1.setBrush(QPalette.Active, QPalette.Button, brush1)
|
|
229
|
-
palette1.setBrush(QPalette.Active, QPalette.Light, brush1)
|
|
230
|
-
palette1.setBrush(QPalette.Active, QPalette.Midlight, brush1)
|
|
231
|
-
palette1.setBrush(QPalette.Active, QPalette.Dark, brush2)
|
|
232
|
-
palette1.setBrush(QPalette.Active, QPalette.Mid, brush3)
|
|
233
|
-
palette1.setBrush(QPalette.Active, QPalette.Text, brush)
|
|
234
|
-
palette1.setBrush(QPalette.Active, QPalette.BrightText, brush1)
|
|
235
|
-
palette1.setBrush(QPalette.Active, QPalette.ButtonText, brush)
|
|
236
|
-
palette1.setBrush(QPalette.Active, QPalette.Base, brush1)
|
|
237
|
-
palette1.setBrush(QPalette.Active, QPalette.Window, brush1)
|
|
238
|
-
palette1.setBrush(QPalette.Active, QPalette.Shadow, brush)
|
|
239
|
-
palette1.setBrush(QPalette.Active, QPalette.AlternateBase, brush1)
|
|
240
|
-
palette1.setBrush(QPalette.Active, QPalette.ToolTipBase, brush4)
|
|
241
|
-
palette1.setBrush(QPalette.Active, QPalette.ToolTipText, brush)
|
|
227
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.WindowText, brush)
|
|
228
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Button, brush1)
|
|
229
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Light, brush1)
|
|
230
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Midlight, brush1)
|
|
231
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Dark, brush2)
|
|
232
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Mid, brush3)
|
|
233
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Text, brush)
|
|
234
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.BrightText, brush1)
|
|
235
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.ButtonText, brush)
|
|
236
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Base, brush1)
|
|
237
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Window, brush1)
|
|
238
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.Shadow, brush)
|
|
239
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.AlternateBase, brush1)
|
|
240
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.ToolTipBase, brush4)
|
|
241
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.ToolTipText, brush)
|
|
242
242
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
|
243
|
-
palette1.setBrush(QPalette.Active, QPalette.PlaceholderText, brush5)
|
|
243
|
+
palette1.setBrush(QPalette.ColorGroup.Active, QPalette.ColorRole.PlaceholderText, brush5)
|
|
244
244
|
#endif
|
|
245
|
-
palette1.setBrush(QPalette.Inactive, QPalette.WindowText, brush)
|
|
246
|
-
palette1.setBrush(QPalette.Inactive, QPalette.Button, brush1)
|
|
247
|
-
palette1.setBrush(QPalette.Inactive, QPalette.Light, brush1)
|
|
248
|
-
palette1.setBrush(QPalette.Inactive, QPalette.Midlight, brush1)
|
|
249
|
-
palette1.setBrush(QPalette.Inactive, QPalette.Dark, brush2)
|
|
250
|
-
palette1.setBrush(QPalette.Inactive, QPalette.Mid, brush3)
|
|
251
|
-
palette1.setBrush(QPalette.Inactive, QPalette.Text, brush)
|
|
252
|
-
palette1.setBrush(QPalette.Inactive, QPalette.BrightText, brush1)
|
|
253
|
-
palette1.setBrush(QPalette.Inactive, QPalette.ButtonText, brush)
|
|
254
|
-
palette1.setBrush(QPalette.Inactive, QPalette.Base, brush1)
|
|
255
|
-
palette1.setBrush(QPalette.Inactive, QPalette.Window, brush1)
|
|
256
|
-
palette1.setBrush(QPalette.Inactive, QPalette.Shadow, brush)
|
|
257
|
-
palette1.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush1)
|
|
258
|
-
palette1.setBrush(QPalette.Inactive, QPalette.ToolTipBase, brush4)
|
|
259
|
-
palette1.setBrush(QPalette.Inactive, QPalette.ToolTipText, brush)
|
|
245
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.WindowText, brush)
|
|
246
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Button, brush1)
|
|
247
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Light, brush1)
|
|
248
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Midlight, brush1)
|
|
249
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Dark, brush2)
|
|
250
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Mid, brush3)
|
|
251
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Text, brush)
|
|
252
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.BrightText, brush1)
|
|
253
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.ButtonText, brush)
|
|
254
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Base, brush1)
|
|
255
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Window, brush1)
|
|
256
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Shadow, brush)
|
|
257
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.AlternateBase, brush1)
|
|
258
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.ToolTipBase, brush4)
|
|
259
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.ToolTipText, brush)
|
|
260
260
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
|
261
|
-
palette1.setBrush(QPalette.Inactive, QPalette.PlaceholderText, brush5)
|
|
261
|
+
palette1.setBrush(QPalette.ColorGroup.Inactive, QPalette.ColorRole.PlaceholderText, brush5)
|
|
262
262
|
#endif
|
|
263
|
-
palette1.setBrush(QPalette.Disabled, QPalette.WindowText, brush2)
|
|
264
|
-
palette1.setBrush(QPalette.Disabled, QPalette.Button, brush1)
|
|
265
|
-
palette1.setBrush(QPalette.Disabled, QPalette.Light, brush1)
|
|
266
|
-
palette1.setBrush(QPalette.Disabled, QPalette.Midlight, brush1)
|
|
267
|
-
palette1.setBrush(QPalette.Disabled, QPalette.Dark, brush2)
|
|
268
|
-
palette1.setBrush(QPalette.Disabled, QPalette.Mid, brush3)
|
|
269
|
-
palette1.setBrush(QPalette.Disabled, QPalette.Text, brush2)
|
|
270
|
-
palette1.setBrush(QPalette.Disabled, QPalette.BrightText, brush1)
|
|
271
|
-
palette1.setBrush(QPalette.Disabled, QPalette.ButtonText, brush2)
|
|
272
|
-
palette1.setBrush(QPalette.Disabled, QPalette.Base, brush1)
|
|
273
|
-
palette1.setBrush(QPalette.Disabled, QPalette.Window, brush1)
|
|
274
|
-
palette1.setBrush(QPalette.Disabled, QPalette.Shadow, brush)
|
|
275
|
-
palette1.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush1)
|
|
276
|
-
palette1.setBrush(QPalette.Disabled, QPalette.ToolTipBase, brush4)
|
|
277
|
-
palette1.setBrush(QPalette.Disabled, QPalette.ToolTipText, brush)
|
|
263
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.WindowText, brush2)
|
|
264
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Button, brush1)
|
|
265
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Light, brush1)
|
|
266
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Midlight, brush1)
|
|
267
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Dark, brush2)
|
|
268
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Mid, brush3)
|
|
269
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Text, brush2)
|
|
270
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.BrightText, brush1)
|
|
271
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.ButtonText, brush2)
|
|
272
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Base, brush1)
|
|
273
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Window, brush1)
|
|
274
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Shadow, brush)
|
|
275
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.AlternateBase, brush1)
|
|
276
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.ToolTipBase, brush4)
|
|
277
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.ToolTipText, brush)
|
|
278
278
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
|
279
|
-
palette1.setBrush(QPalette.Disabled, QPalette.PlaceholderText, brush5)
|
|
279
|
+
palette1.setBrush(QPalette.ColorGroup.Disabled, QPalette.ColorRole.PlaceholderText, brush5)
|
|
280
280
|
#endif
|
|
281
281
|
self.text_color.setPalette(palette1)
|
|
282
282
|
|
|
@@ -287,32 +287,32 @@ class Ui_ButtonForm(object):
|
|
|
287
287
|
self.horizontalLayout.setStretch(2, 1)
|
|
288
288
|
self.horizontalLayout.setStretch(3, 1)
|
|
289
289
|
|
|
290
|
-
self.formLayout.setLayout(3, QFormLayout.FieldRole, self.horizontalLayout)
|
|
290
|
+
self.formLayout.setLayout(3, QFormLayout.ItemRole.FieldRole, self.horizontalLayout)
|
|
291
291
|
|
|
292
292
|
self.label_3 = QLabel(ButtonForm)
|
|
293
293
|
self.label_3.setObjectName(u"label_3")
|
|
294
294
|
|
|
295
|
-
self.formLayout.setWidget(5, QFormLayout.LabelRole, self.label_3)
|
|
295
|
+
self.formLayout.setWidget(5, QFormLayout.ItemRole.LabelRole, self.label_3)
|
|
296
296
|
|
|
297
297
|
self.command = QLineEdit(ButtonForm)
|
|
298
298
|
self.command.setObjectName(u"command")
|
|
299
299
|
|
|
300
|
-
self.formLayout.setWidget(5, QFormLayout.FieldRole, self.command)
|
|
300
|
+
self.formLayout.setWidget(5, QFormLayout.ItemRole.FieldRole, self.command)
|
|
301
301
|
|
|
302
302
|
self.label_5 = QLabel(ButtonForm)
|
|
303
303
|
self.label_5.setObjectName(u"label_5")
|
|
304
304
|
|
|
305
|
-
self.formLayout.setWidget(7, QFormLayout.LabelRole, self.label_5)
|
|
305
|
+
self.formLayout.setWidget(7, QFormLayout.ItemRole.LabelRole, self.label_5)
|
|
306
306
|
|
|
307
307
|
self.keys = QLineEdit(ButtonForm)
|
|
308
308
|
self.keys.setObjectName(u"keys")
|
|
309
309
|
|
|
310
|
-
self.formLayout.setWidget(7, QFormLayout.FieldRole, self.keys)
|
|
310
|
+
self.formLayout.setWidget(7, QFormLayout.ItemRole.FieldRole, self.keys)
|
|
311
311
|
|
|
312
312
|
self.label_8 = QLabel(ButtonForm)
|
|
313
313
|
self.label_8.setObjectName(u"label_8")
|
|
314
314
|
|
|
315
|
-
self.formLayout.setWidget(8, QFormLayout.LabelRole, self.label_8)
|
|
315
|
+
self.formLayout.setWidget(8, QFormLayout.ItemRole.LabelRole, self.label_8)
|
|
316
316
|
|
|
317
317
|
self.switch_page = QSpinBox(ButtonForm)
|
|
318
318
|
self.switch_page.setObjectName(u"switch_page")
|
|
@@ -320,49 +320,62 @@ class Ui_ButtonForm(object):
|
|
|
320
320
|
self.switch_page.setMaximum(999999999)
|
|
321
321
|
self.switch_page.setValue(0)
|
|
322
322
|
|
|
323
|
-
self.formLayout.setWidget(8, QFormLayout.FieldRole, self.switch_page)
|
|
323
|
+
self.formLayout.setWidget(8, QFormLayout.ItemRole.FieldRole, self.switch_page)
|
|
324
|
+
|
|
325
|
+
self.label_temp_switch_page = QLabel(ButtonForm)
|
|
326
|
+
self.label_temp_switch_page.setObjectName(u"label_temp_switch_page")
|
|
327
|
+
|
|
328
|
+
self.formLayout.setWidget(9, QFormLayout.ItemRole.LabelRole, self.label_temp_switch_page)
|
|
329
|
+
|
|
330
|
+
self.temp_switch_page = QSpinBox(ButtonForm)
|
|
331
|
+
self.temp_switch_page.setObjectName(u"temp_switch_page")
|
|
332
|
+
self.temp_switch_page.setMinimum(0)
|
|
333
|
+
self.temp_switch_page.setMaximum(999999999)
|
|
334
|
+
self.temp_switch_page.setValue(0)
|
|
335
|
+
|
|
336
|
+
self.formLayout.setWidget(9, QFormLayout.ItemRole.FieldRole, self.temp_switch_page)
|
|
324
337
|
|
|
325
338
|
self.label_10 = QLabel(ButtonForm)
|
|
326
339
|
self.label_10.setObjectName(u"label_10")
|
|
327
340
|
|
|
328
|
-
self.formLayout.setWidget(
|
|
341
|
+
self.formLayout.setWidget(10, QFormLayout.ItemRole.LabelRole, self.label_10)
|
|
329
342
|
|
|
330
343
|
self.switch_state = QSpinBox(ButtonForm)
|
|
331
344
|
self.switch_state.setObjectName(u"switch_state")
|
|
332
345
|
self.switch_state.setMaximum(999999999)
|
|
333
346
|
|
|
334
|
-
self.formLayout.setWidget(
|
|
347
|
+
self.formLayout.setWidget(10, QFormLayout.ItemRole.FieldRole, self.switch_state)
|
|
335
348
|
|
|
336
349
|
self.label_7 = QLabel(ButtonForm)
|
|
337
350
|
self.label_7.setObjectName(u"label_7")
|
|
338
351
|
|
|
339
|
-
self.formLayout.setWidget(
|
|
352
|
+
self.formLayout.setWidget(11, QFormLayout.ItemRole.LabelRole, self.label_7)
|
|
340
353
|
|
|
341
354
|
self.change_brightness = QSpinBox(ButtonForm)
|
|
342
355
|
self.change_brightness.setObjectName(u"change_brightness")
|
|
343
356
|
self.change_brightness.setMinimum(-99)
|
|
344
357
|
|
|
345
|
-
self.formLayout.setWidget(
|
|
358
|
+
self.formLayout.setWidget(11, QFormLayout.ItemRole.FieldRole, self.change_brightness)
|
|
346
359
|
|
|
347
360
|
self.label_6 = QLabel(ButtonForm)
|
|
348
361
|
self.label_6.setObjectName(u"label_6")
|
|
349
362
|
|
|
350
|
-
self.formLayout.setWidget(
|
|
363
|
+
self.formLayout.setWidget(12, QFormLayout.ItemRole.LabelRole, self.label_6)
|
|
351
364
|
|
|
352
365
|
self.write = QPlainTextEdit(ButtonForm)
|
|
353
366
|
self.write.setObjectName(u"write")
|
|
354
367
|
|
|
355
|
-
self.formLayout.setWidget(
|
|
368
|
+
self.formLayout.setWidget(12, QFormLayout.ItemRole.FieldRole, self.write)
|
|
356
369
|
|
|
357
370
|
self.label_force_refresh = QLabel(ButtonForm)
|
|
358
371
|
self.label_force_refresh.setObjectName(u"label_force_refresh")
|
|
359
372
|
|
|
360
|
-
self.formLayout.setWidget(
|
|
373
|
+
self.formLayout.setWidget(13, QFormLayout.ItemRole.LabelRole, self.label_force_refresh)
|
|
361
374
|
|
|
362
375
|
self.force_refresh = QCheckBox(ButtonForm)
|
|
363
376
|
self.force_refresh.setObjectName(u"force_refresh")
|
|
364
377
|
|
|
365
|
-
self.formLayout.setWidget(
|
|
378
|
+
self.formLayout.setWidget(13, QFormLayout.ItemRole.FieldRole, self.force_refresh)
|
|
366
379
|
|
|
367
380
|
|
|
368
381
|
self.retranslateUi(ButtonForm)
|
|
@@ -409,6 +422,7 @@ class Ui_ButtonForm(object):
|
|
|
409
422
|
self.label_3.setText(QCoreApplication.translate("ButtonForm", u"Command:", None))
|
|
410
423
|
self.label_5.setText(QCoreApplication.translate("ButtonForm", u"Press Keys:", None))
|
|
411
424
|
self.label_8.setText(QCoreApplication.translate("ButtonForm", u"Switch Page:", None))
|
|
425
|
+
self.label_temp_switch_page.setText(QCoreApplication.translate("ButtonForm", u"Temp Switch Page:", None))
|
|
412
426
|
self.label_10.setText(QCoreApplication.translate("ButtonForm", u"Switch state", None))
|
|
413
427
|
self.label_7.setText(QCoreApplication.translate("ButtonForm", u"Brightness +/-:", None))
|
|
414
428
|
self.label_6.setText(QCoreApplication.translate("ButtonForm", u"Write Text:", None))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|