mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
renamed classes AppearancePage and BahaviourPage
This commit is contained in:
parent
cd57b2b518
commit
3a9de8cb86
5 changed files with 18 additions and 18 deletions
|
@ -82,8 +82,8 @@ void SettingsDialog::addTabs()
|
|||
|
||||
this->ui_.tabContainer->addSpacing(16);
|
||||
|
||||
this->addTab(new AppearancePage);
|
||||
this->addTab(new BehaviourPage);
|
||||
this->addTab(new LookPage);
|
||||
this->addTab(new FeelPage);
|
||||
|
||||
this->ui_.tabContainer->addSpacing(16);
|
||||
|
||||
|
|
|
@ -21,11 +21,11 @@
|
|||
|
||||
namespace chatterino {
|
||||
|
||||
BehaviourPage::BehaviourPage()
|
||||
FeelPage::FeelPage()
|
||||
: SettingsPage("Feel", ":/images/behave.svg")
|
||||
{
|
||||
auto app = getApp();
|
||||
LayoutCreator<BehaviourPage> layoutCreator(this);
|
||||
LayoutCreator<FeelPage> layoutCreator(this);
|
||||
|
||||
auto layout = layoutCreator.setLayoutType<QVBoxLayout>();
|
||||
|
||||
|
@ -113,7 +113,7 @@ BehaviourPage::BehaviourPage()
|
|||
layout->addStretch(1);
|
||||
}
|
||||
|
||||
QSlider *BehaviourPage::createMouseScrollSlider()
|
||||
QSlider *FeelPage::createMouseScrollSlider()
|
||||
{
|
||||
auto app = getApp();
|
||||
auto slider = new QSlider(Qt::Horizontal);
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
|
||||
namespace chatterino {
|
||||
|
||||
class BehaviourPage : public SettingsPage
|
||||
class FeelPage : public SettingsPage
|
||||
{
|
||||
public:
|
||||
BehaviourPage();
|
||||
FeelPage();
|
||||
|
||||
private:
|
||||
QSlider *createMouseScrollSlider();
|
||||
|
|
|
@ -30,10 +30,10 @@
|
|||
|
||||
namespace chatterino {
|
||||
|
||||
AppearancePage::AppearancePage()
|
||||
LookPage::LookPage()
|
||||
: SettingsPage("Look", ":/images/theme.svg")
|
||||
{
|
||||
LayoutCreator<AppearancePage> layoutCreator(this);
|
||||
LayoutCreator<LookPage> layoutCreator(this);
|
||||
|
||||
auto xd = layoutCreator.emplace<QVBoxLayout>().withoutMargin();
|
||||
|
||||
|
@ -59,7 +59,7 @@ AppearancePage::AppearancePage()
|
|||
layout.addStretch(1);
|
||||
}
|
||||
|
||||
void AppearancePage::addApplicationGroup(QVBoxLayout &layout)
|
||||
void LookPage::addApplicationGroup(QVBoxLayout &layout)
|
||||
{
|
||||
auto box = LayoutCreator<QVBoxLayout>(&layout)
|
||||
.emplace<QGroupBox>("Application")
|
||||
|
@ -97,7 +97,7 @@ void AppearancePage::addApplicationGroup(QVBoxLayout &layout)
|
|||
"", this->createCheckBox(SCROLL_NEWMSG, getSettings()->enableSmoothScrollingNewMessages));
|
||||
}
|
||||
|
||||
void AppearancePage::addMessagesGroup(QVBoxLayout &layout)
|
||||
void LookPage::addMessagesGroup(QVBoxLayout &layout)
|
||||
{
|
||||
auto box =
|
||||
LayoutCreator<QVBoxLayout>(&layout).emplace<QGroupBox>("Messages").emplace<QVBoxLayout>();
|
||||
|
@ -147,7 +147,7 @@ void AppearancePage::addMessagesGroup(QVBoxLayout &layout)
|
|||
getSettings()->alternateMessageBackground));
|
||||
}
|
||||
|
||||
void AppearancePage::addEmotesGroup(QVBoxLayout &layout)
|
||||
void LookPage::addEmotesGroup(QVBoxLayout &layout)
|
||||
{
|
||||
auto box = LayoutCreator<QVBoxLayout>(&layout)
|
||||
.emplace<QGroupBox>("Emotes")
|
||||
|
@ -205,7 +205,7 @@ void AppearancePage::addEmotesGroup(QVBoxLayout &layout)
|
|||
}
|
||||
}
|
||||
|
||||
ChannelPtr AppearancePage::createPreviewChannel()
|
||||
ChannelPtr LookPage::createPreviewChannel()
|
||||
{
|
||||
auto channel = ChannelPtr(new Channel("preview", Channel::Misc));
|
||||
|
||||
|
@ -235,7 +235,7 @@ ChannelPtr AppearancePage::createPreviewChannel()
|
|||
return channel;
|
||||
}
|
||||
|
||||
QLayout *AppearancePage::createThemeColorChanger()
|
||||
QLayout *LookPage::createThemeColorChanger()
|
||||
{
|
||||
auto app = getApp();
|
||||
QHBoxLayout *layout = new QHBoxLayout;
|
||||
|
@ -274,7 +274,7 @@ QLayout *AppearancePage::createThemeColorChanger()
|
|||
return layout;
|
||||
}
|
||||
|
||||
QLayout *AppearancePage::createFontChanger()
|
||||
QLayout *LookPage::createFontChanger()
|
||||
{
|
||||
auto app = getApp();
|
||||
|
||||
|
@ -314,7 +314,7 @@ QLayout *AppearancePage::createFontChanger()
|
|||
return layout;
|
||||
}
|
||||
|
||||
QLayout *AppearancePage::createUiScaleSlider()
|
||||
QLayout *LookPage::createUiScaleSlider()
|
||||
{
|
||||
auto layout = new QHBoxLayout();
|
||||
auto slider = new QSlider(Qt::Horizontal);
|
||||
|
|
|
@ -10,10 +10,10 @@ class QVBoxLayout;
|
|||
|
||||
namespace chatterino {
|
||||
|
||||
class AppearancePage : public SettingsPage
|
||||
class LookPage : public SettingsPage
|
||||
{
|
||||
public:
|
||||
AppearancePage();
|
||||
LookPage();
|
||||
|
||||
void addApplicationGroup(QVBoxLayout &layout);
|
||||
void addMessagesGroup(QVBoxLayout &layout);
|
||||
|
|
Loading…
Reference in a new issue