renamed *Manager classes
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
class ThemeManager;
|
||||
class Themes;
|
||||
class BaseWindow;
|
||||
|
||||
class BaseWidget : public QWidget
|
||||
@@ -41,7 +41,7 @@ protected:
|
||||
|
||||
void setScale(float value);
|
||||
|
||||
ThemeManager *themeManager;
|
||||
Themes *themeManager;
|
||||
|
||||
private:
|
||||
void init();
|
||||
|
||||
@@ -77,7 +77,7 @@ void TooltipWidget::updateFont()
|
||||
auto app = getApp();
|
||||
|
||||
this->setFont(
|
||||
app->fonts->getFont(FontManager::Type::ChatMediumSmall, this->getScale()));
|
||||
app->fonts->getFont(Fonts::Type::ChatMediumSmall, this->getScale()));
|
||||
}
|
||||
|
||||
void TooltipWidget::setText(QString text)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
class ThemeManager;
|
||||
class Themes;
|
||||
|
||||
class Window : public BaseWindow
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ LastRunCrashDialog::LastRunCrashDialog()
|
||||
this->setWindowFlag(Qt::WindowContextHelpButtonHint, false);
|
||||
this->setWindowTitle("Chatterino");
|
||||
|
||||
auto &updateManager = UpdateManager::getInstance();
|
||||
auto &updateManager = Updates::getInstance();
|
||||
|
||||
auto layout = LayoutCreator<LastRunCrashDialog>(this).setLayoutType<QVBoxLayout>();
|
||||
|
||||
|
||||
@@ -221,8 +221,8 @@ void NotebookTab::paintEvent(QPaintEvent *)
|
||||
// int fullHeight = (int)(scale * 48);
|
||||
|
||||
// select the right tab colors
|
||||
ThemeManager::TabColors colors;
|
||||
ThemeManager::TabColors regular = this->themeManager->tabs.regular;
|
||||
Themes::TabColors colors;
|
||||
Themes::TabColors regular = this->themeManager->tabs.regular;
|
||||
|
||||
if (this->selected_) {
|
||||
colors = this->themeManager->tabs.selected;
|
||||
|
||||
@@ -226,7 +226,7 @@ QLayout *AppearancePage::createFontChanger()
|
||||
button->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Policy::Fixed);
|
||||
|
||||
QObject::connect(button, &QPushButton::clicked, [=]() {
|
||||
QFontDialog dialog(app->fonts->getFont(FontManager::ChatMedium, 1.));
|
||||
QFontDialog dialog(app->fonts->getFont(Fonts::ChatMedium, 1.));
|
||||
|
||||
dialog.setWindowFlag(Qt::WindowStaysOnTopHint);
|
||||
|
||||
|
||||
@@ -67,11 +67,11 @@ void SplitInput::initLayout()
|
||||
|
||||
// set edit font
|
||||
this->ui_.textEdit->setFont(
|
||||
app->fonts->getFont(FontManager::Type::ChatMedium, this->getScale()));
|
||||
app->fonts->getFont(Fonts::Type::ChatMedium, this->getScale()));
|
||||
|
||||
this->managedConnections_.push_back(app->fonts->fontChanged.connect([=]() {
|
||||
this->ui_.textEdit->setFont(
|
||||
app->fonts->getFont(FontManager::Type::ChatMedium, this->getScale()));
|
||||
app->fonts->getFont(Fonts::Type::ChatMedium, this->getScale()));
|
||||
}));
|
||||
|
||||
// open emote popup
|
||||
|
||||
Reference in New Issue
Block a user