Finish renaming Viewer list to Chatter list (#4974)
This commit is contained in:
@@ -320,9 +320,9 @@ void SplitHeader::initializeLayout()
|
||||
});
|
||||
}),
|
||||
// chatter list
|
||||
this->viewersButton_ = makeWidget<Button>([&](auto w) {
|
||||
this->chattersButton_ = makeWidget<Button>([&](auto w) {
|
||||
QObject::connect(w, &Button::leftClicked, this, [this]() {
|
||||
this->split_->showViewerList();
|
||||
this->split_->showChatterList();
|
||||
});
|
||||
}),
|
||||
// dropdown
|
||||
@@ -511,7 +511,7 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
|
||||
if (twitchChannel)
|
||||
{
|
||||
moreMenu->addAction(
|
||||
"Show chatter list", this->split_, &Split::showViewerList,
|
||||
"Show chatter list", this->split_, &Split::showChatterList,
|
||||
h->getDisplaySequence(HotkeyCategory::Split, "openViewerList"));
|
||||
|
||||
moreMenu->addAction("Subscribe", this->split_, &Split::openSubPage);
|
||||
@@ -745,7 +745,7 @@ void SplitHeader::scaleChangedEvent(float scale)
|
||||
this->setFixedHeight(w);
|
||||
this->dropdownButton_->setFixedWidth(w);
|
||||
this->moderationButton_->setFixedWidth(w);
|
||||
this->viewersButton_->setFixedWidth(w);
|
||||
this->chattersButton_->setFixedWidth(w);
|
||||
this->addButton_->setFixedWidth(w * 5 / 8);
|
||||
}
|
||||
|
||||
@@ -754,9 +754,9 @@ void SplitHeader::setAddButtonVisible(bool value)
|
||||
this->addButton_->setVisible(value);
|
||||
}
|
||||
|
||||
void SplitHeader::setViewersButtonVisible(bool value)
|
||||
void SplitHeader::setChattersButtonVisible(bool value)
|
||||
{
|
||||
this->viewersButton_->setVisible(value);
|
||||
this->chattersButton_->setVisible(value);
|
||||
}
|
||||
|
||||
void SplitHeader::updateChannelText()
|
||||
@@ -987,13 +987,13 @@ void SplitHeader::themeChangedEvent()
|
||||
// --
|
||||
if (this->theme->isLightTheme())
|
||||
{
|
||||
this->viewersButton_->setPixmap(getResources().buttons.viewersDark);
|
||||
this->chattersButton_->setPixmap(getResources().buttons.chattersDark);
|
||||
this->dropdownButton_->setPixmap(getResources().buttons.menuDark);
|
||||
this->addButton_->setPixmap(getResources().buttons.addSplit);
|
||||
}
|
||||
else
|
||||
{
|
||||
this->viewersButton_->setPixmap(getResources().buttons.viewersLight);
|
||||
this->chattersButton_->setPixmap(getResources().buttons.chattersLight);
|
||||
this->dropdownButton_->setPixmap(getResources().buttons.menuLight);
|
||||
this->addButton_->setPixmap(getResources().buttons.addSplitDark);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user