UI: Remove replayBufferButton and vcamButton theme IDs

Those IDs were used on buttons that were programatically added to the
controls dock, now those buttons are always present inside the UI
file with their own object name.

The use of theme IDs can be replaced by their object names.
This commit is contained in:
tytan652 2024-04-21 11:56:33 +02:00 committed by Ryan Foster
parent 511385891c
commit 3840ea0275
3 changed files with 11 additions and 17 deletions

View file

@ -985,7 +985,7 @@ QDoubleSpinBox::down-arrow {
#streamButton,
#recordButton,
QPushButton[themeID="replayBufferButton"],
#replayBufferButton,
#broadcastButton {
padding: var(--padding_large);
}
@ -1001,8 +1001,8 @@ QPushButton[themeID="replayBufferButton"],
/* Primary Control Button Checked Coloring */
#streamButton:!hover:!pressed:checked,
#recordButton:!hover:!pressed:checked,
QPushButton[themeID="replayBufferButton"]:!hover:!pressed:checked,
QPushButton[themeID="vcamButton"]:!hover:!pressed:checked,
#replayBufferButton:!hover:!pressed:checked,
#virtualCamButton:!hover:!pressed:checked,
#modeSwitch:!hover:!pressed:checked,
#broadcastButton:!hover:!pressed:checked {
background: var(--primary);
@ -1011,8 +1011,8 @@ QPushButton[themeID="vcamButton"]:!hover:!pressed:checked,
/* Primary Control Button Hover Coloring */
#streamButton:hover:!pressed:checked,
#recordButton:hover:!pressed:checked,
QPushButton[themeID="replayBufferButton"]:!pressed:checked,
QPushButton[themeID="vcamButton"]:!pressed:checked,
#replayBufferButton:!pressed:checked,
#virtualCamButton:!pressed:checked,
#modeSwitch:hover:!pressed:checked,
#broadcastButton:hover:!pressed:checked {
background: var(--primary_light);

View file

@ -147,8 +147,8 @@ QTabBar QToolButton {
/* Primary Control Button Checked Coloring */
#streamButton:!hover:!pressed:checked,
#recordButton:!hover:!pressed:checked,
QPushButton[themeID="replayBufferButton"]:!hover:!pressed:checked,
QPushButton[themeID="vcamButton"]:!hover:!pressed:checked,
#replayBufferButton:!hover:!pressed:checked,
#virtualCamButton:!hover:!pressed:checked,
#modeSwitch:!hover:!pressed:checked,
#broadcastButton:!hover:!pressed:checked {
background: var(--button_bg_red);
@ -158,8 +158,8 @@ QPushButton[themeID="vcamButton"]:!hover:!pressed:checked,
/* Primary Control Button Hover Coloring */
#streamButton:hover:!pressed:checked,
#recordButton:hover:!pressed:checked,
QPushButton[themeID="replayBufferButton"]:!pressed:checked,
QPushButton[themeID="vcamButton"]:!pressed:checked,
#replayBufferButton:hover:!pressed:checked,
#virtualCamButton:hover:!pressed:checked,
#modeSwitch:hover:!pressed:checked,
#broadcastButton:hover:!pressed:checked {
background: var(--button_bg_red_hover);
@ -168,8 +168,8 @@ QPushButton[themeID="vcamButton"]:!pressed:checked,
/* Primary Control Button Checked + Pressed Coloring */
#streamButton:pressed:checked,
#recordButton:pressed:checked,
QPushButton[themeID="replayBufferButton"]:pressed:checked,
QPushButton[themeID="vcamButton"]:pressed:checked,
#replayBufferButton:pressed:checked,
#virtualCamButton:pressed:checked,
#modeSwitch:pressed:checked,
#broadcastButton:pressed:checked {
background: var(--button_bg_red_down);

View file

@ -207,9 +207,6 @@
<property name="checkable">
<bool>true</bool>
</property>
<property name="themeID" stdset="0">
<string>replayBufferButton</string>
</property>
</widget>
</item>
<item>
@ -276,9 +273,6 @@
<property name="checkable">
<bool>true</bool>
</property>
<property name="themeID" stdset="0">
<string>vcamButton</string>
</property>
</widget>
</item>
<item>