#include "UserInfoPopup.hpp" #include "Application.hpp" #include "common/Channel.hpp" #include "common/NetworkRequest.hpp" #include "controllers/accounts/AccountController.hpp" #include "controllers/highlights/HighlightController.hpp" #include "providers/twitch/PartialTwitchUser.hpp" #include "providers/twitch/TwitchChannel.hpp" #include "singletons/Resources.hpp" #include "singletons/Settings.hpp" #include "util/LayoutCreator.hpp" #include "util/PostToThread.hpp" #include "widgets/Label.hpp" #include "widgets/dialogs/LogsPopup.hpp" #include "widgets/helper/EffectLabel.hpp" #include "widgets/helper/Line.hpp" #include #include #include #include #include #define TEXT_FOLLOWERS "Followers: " #define TEXT_VIEWS "Views: " #define TEXT_CREATED "Created: " namespace chatterino { UserInfoPopup::UserInfoPopup() : BaseWindow(nullptr, BaseWindow::Flags(BaseWindow::Frameless | BaseWindow::FramelessDraggable)) , hack_(new bool) { this->setStayInScreenRect(true); #ifdef Q_OS_LINUX this->setWindowFlag(Qt::Popup); #endif auto app = getApp(); auto layout = LayoutCreator(this).setLayoutType(); // first line auto head = layout.emplace().withoutMargin(); { // avatar auto avatar = head.emplace