#include "widgets/splits/SplitHeader.hpp" #include "Application.hpp" #include "common/UrlFetch.hpp" #include "providers/twitch/TwitchChannel.hpp" #include "providers/twitch/TwitchServer.hpp" #include "singletons/Resources.hpp" #include "singletons/Theme.hpp" #include "util/LayoutCreator.hpp" #include "widgets/Label.hpp" #include "widgets/TooltipWidget.hpp" #include "widgets/splits/Split.hpp" #include "widgets/splits/SplitContainer.hpp" #include #include #include #include #include #ifdef USEWEBENGINE #include "widgets/StreamView.hpp" #endif namespace chatterino { SplitHeader::SplitHeader(Split *_split) : BaseWidget(_split) , split(_split) { this->split->focused.connect([this]() { this->themeChangedEvent(); }); this->split->focusLost.connect([this]() { this->themeChangedEvent(); }); auto app = getApp(); LayoutCreator layoutCreator(this); auto layout = layoutCreator.emplace().withoutMargin(); layout->setSpacing(0); { // channel name label auto title = layout.emplace