diff --git a/src/widgets/helper/splitheader.cpp b/src/widgets/helper/splitheader.cpp index 21815a378..63f35f010 100644 --- a/src/widgets/helper/splitheader.cpp +++ b/src/widgets/helper/splitheader.cpp @@ -85,14 +85,14 @@ void SplitHeader::addDropdownItems(RippleEffectLabel *label) // clang-format off this->dropdownMenu.addAction("Add new split", this->split, &Split::doAddSplit, QKeySequence(tr("Ctrl+T"))); this->dropdownMenu.addAction("Close split", this->split, &Split::doCloseSplit, QKeySequence(tr("Ctrl+W"))); - this->dropdownMenu.addAction("Move split", this, SLOT(menuMoveSplit())); +// this->dropdownMenu.addAction("Move split", this, SLOT(menuMoveSplit())); this->dropdownMenu.addAction("Popup", this->split, &Split::doPopup); this->dropdownMenu.addAction("Open viewer list", this->split, &Split::doOpenViewerList); this->dropdownMenu.addSeparator(); this->dropdownMenu.addAction("Change channel", this->split, &Split::doChangeChannel, QKeySequence(tr("Ctrl+R"))); this->dropdownMenu.addAction("Clear chat", this->split, &Split::doClearChat); - this->dropdownMenu.addAction("Open channel", this->split, &Split::doOpenChannel); - this->dropdownMenu.addAction("Open popup player", this->split, &Split::doOpenPopupPlayer); + this->dropdownMenu.addAction("Open in web browser", this->split, &Split::doOpenChannel); + this->dropdownMenu.addAction("Open web popup player", this->split, &Split::doOpenPopupPlayer); this->dropdownMenu.addAction("Open in Streamlink", this->split, &Split::doOpenStreamlink); this->dropdownMenu.addSeparator(); this->dropdownMenu.addAction("Reload channel emotes", this, SLOT(menuReloadChannelEmotes())); diff --git a/src/widgets/splitcontainer.cpp b/src/widgets/splitcontainer.cpp index abce8c66a..d085aa6d6 100644 --- a/src/widgets/splitcontainer.cpp +++ b/src/widgets/splitcontainer.cpp @@ -161,7 +161,7 @@ void SplitContainer::addChat(bool openChannelNameDialog, std::string chatUUID) Split *w = this->createChatWidget(chatUUID); if (openChannelNameDialog) { - bool ret = w->showChangeChannelPopup("Open channel", true); + bool ret = w->showChangeChannelPopup("Open channel name", true); if (!ret) { delete w; @@ -394,7 +394,19 @@ void SplitContainer::paintEvent(QPaintEvent *) painter.fillRect(rect(), this->themeManager.splits.background); painter.setPen(this->themeManager.splits.header.text); - painter.drawText(rect(), "Add Chat", QTextOption(Qt::AlignCenter)); + + QString text = "Click to add a "; + + Notebook *notebook = dynamic_cast(this->parentWidget()); + + if (notebook != nullptr) { + if (notebook->tabCount() > 1) { + text += "\n\ntip: you can drag a while holding "; + text += "\nor add another one by pressing "; + } + } + + painter.drawText(rect(), text, QTextOption(Qt::AlignCenter)); } else { painter.fillRect(rect(), this->themeManager.splits.messageSeperator); } @@ -439,6 +451,7 @@ Split *SplitContainer::createChatWidget(const std::string &uuid) auto split = new Split(this, uuid); split->getChannelView().highlightedMessageReceived.connect([this] { + // fourtf: error potentionally here this->tab->setHighlightState(HighlightState::Highlighted); // });