mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
adjusted size of user switch popup
This commit is contained in:
parent
b14154a811
commit
4ec10e720c
|
@ -79,7 +79,7 @@ void WindowManager::showAccountSelectPopup(QPoint point)
|
|||
w->refresh();
|
||||
|
||||
QPoint buttonPos = point;
|
||||
w->move(buttonPos.x(), buttonPos.y());
|
||||
w->move(buttonPos.x() - 30, buttonPos.y());
|
||||
|
||||
w->show();
|
||||
w->setFocus();
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
namespace chatterino {
|
||||
|
||||
AccountSwitchPopup::AccountSwitchPopup(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
: BaseWindow(parent,
|
||||
BaseWindow::Flags(BaseWindow::TopMost | BaseWindow::Frameless))
|
||||
{
|
||||
this->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
|
||||
#ifdef Q_OS_LINUX
|
||||
this->setWindowFlag(Qt::Popup);
|
||||
#endif
|
||||
|
@ -38,9 +38,9 @@ AccountSwitchPopup::AccountSwitchPopup(QWidget *parent)
|
|||
SettingsDialog::showDialog(SettingsDialogPreference::Accounts); //
|
||||
});
|
||||
|
||||
this->setLayout(vbox);
|
||||
this->getLayoutContainer()->setLayout(vbox);
|
||||
|
||||
// this->setStyleSheet("background: #333");
|
||||
this->setScaleIndependantSize(200, 200);
|
||||
}
|
||||
|
||||
void AccountSwitchPopup::refresh()
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
#include "widgets/AccountSwitchWidget.hpp"
|
||||
#include "widgets/BaseWindow.hpp"
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
class AccountSwitchPopup : public QWidget
|
||||
class AccountSwitchPopup : public BaseWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
Loading…
Reference in a new issue