mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-25 07:19:39 -05:00
Fix UI theming issues
This commit is contained in:
parent
808fd84b83
commit
a51b7f6b13
|
|
@ -59,7 +59,10 @@ ItemSelection::ItemSelection(std::deque<std::shared_ptr<Item>> &items,
|
|||
_conflictStr(conflict)
|
||||
{
|
||||
_modify->setMaximumWidth(22);
|
||||
SetButtonIcon(_modify, ":/settings/images/settings/general.svg");
|
||||
SetButtonIcon(_modify,
|
||||
GetThemeTypeName() == "Light"
|
||||
? ":/settings/images/settings/general.svg"
|
||||
: "theme:Dark/settings/general.svg");
|
||||
_modify->setFlat(true);
|
||||
if (!configureTooltip.empty()) {
|
||||
_modify->setToolTip(obs_module_text(configureTooltip.data()));
|
||||
|
|
|
|||
|
|
@ -92,7 +92,10 @@ RegexConfigWidget::RegexConfigWidget(QWidget *parent, bool showEnable)
|
|||
_openSettings(new QToolButton()),
|
||||
_enable(new QPushButton())
|
||||
{
|
||||
SetButtonIcon(_openSettings, ":/settings/images/settings/general.svg");
|
||||
SetButtonIcon(_openSettings,
|
||||
GetThemeTypeName() == "Light"
|
||||
? ":/settings/images/settings/general.svg"
|
||||
: "theme:Dark/settings/general.svg");
|
||||
_openSettings->setToolTip(
|
||||
obs_module_text("AdvSceneSwitcher.regex.configure"));
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,9 @@ GenericVaraiableSpinbox::GenericVaraiableSpinbox(QWidget *parent,
|
|||
{
|
||||
_toggleType->setCheckable(true);
|
||||
_toggleType->setMaximumWidth(11);
|
||||
SetButtonIcon(_toggleType, ":/res/images/dots-vert.svg");
|
||||
SetButtonIcon(_toggleType, GetThemeTypeName() == "Light"
|
||||
? ":/res/images/dots-vert.svg"
|
||||
: "theme:Dark/dots-vert.svg");
|
||||
|
||||
QWidget::connect(_fixedValueInt, SIGNAL(valueChanged(int)), this,
|
||||
SLOT(SetFixedValue(int)));
|
||||
|
|
|
|||
|
|
@ -257,7 +257,9 @@ void MacroActionStreamEdit::StringValueChanged()
|
|||
|
||||
void MacroActionStreamEdit::ShowPassword()
|
||||
{
|
||||
SetButtonIcon(_showPassword, ":res/images/visible.svg");
|
||||
SetButtonIcon(_showPassword, GetThemeTypeName() == "Light"
|
||||
? ":res/images/visible.svg"
|
||||
: "theme:Dark/visible.svg");
|
||||
_stringValue->setEchoMode(QLineEdit::Normal);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -503,7 +503,9 @@ void WSConnectionSettingsDialog::SetStatus()
|
|||
|
||||
void WSConnectionSettingsDialog::ShowPassword()
|
||||
{
|
||||
SetButtonIcon(_showPassword, ":res/images/visible.svg");
|
||||
SetButtonIcon(_showPassword, GetThemeTypeName() == "Light"
|
||||
? ":res/images/visible.svg"
|
||||
: "theme:Dark/visible.svg");
|
||||
_password->setEchoMode(QLineEdit::Normal);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -698,7 +698,10 @@ SceneItemSelectionWidget::SceneItemSelectionWidget(QWidget *parent,
|
|||
_nameConflictIndex->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||
|
||||
_changeType->setMaximumWidth(22);
|
||||
SetButtonIcon(_changeType, ":/settings/images/settings/general.svg");
|
||||
SetButtonIcon(_changeType,
|
||||
GetThemeTypeName() == "Light"
|
||||
? ":/settings/images/settings/general.svg"
|
||||
: "theme:Dark/settings/general.svg");
|
||||
_changeType->setFlat(true);
|
||||
_changeType->setToolTip(obs_module_text(
|
||||
"AdvSceneSwitcher.sceneItemSelection.configure"));
|
||||
|
|
|
|||
|
|
@ -182,7 +182,9 @@ TwitchPointsRewardWidget::TwitchPointsRewardWidget(QWidget *parent)
|
|||
_refreshButton(new QPushButton(this))
|
||||
{
|
||||
_refreshButton->setMaximumWidth(22);
|
||||
SetButtonIcon(_refreshButton, ":res/images/refresh.svg");
|
||||
SetButtonIcon(_refreshButton, GetThemeTypeName() == "Light"
|
||||
? ":res/images/refresh.svg"
|
||||
: "theme:Dark/refresh.svg");
|
||||
_refreshButton->setToolTip(obs_module_text(
|
||||
"AdvSceneSwitcher.twitch.selection.points.reward.refresh"));
|
||||
|
||||
|
|
|
|||
|
|
@ -560,7 +560,9 @@ void TwitchTokenSettingsDialog::CheckIfTokenValid()
|
|||
|
||||
void TwitchTokenSettingsDialog::ShowToken()
|
||||
{
|
||||
SetButtonIcon(_showToken, ":res/images/visible.svg");
|
||||
SetButtonIcon(_showToken, GetThemeTypeName() == "Light"
|
||||
? ":res/images/visible.svg"
|
||||
: "theme:Dark/visible.svg");
|
||||
_currentTokenValue->setEchoMode(QLineEdit::Normal);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user