添加设置页面

This commit is contained in:
2022-12-09 19:02:36 +08:00
parent 73917eeeb1
commit 562b582f72
6 changed files with 527 additions and 100 deletions
+25
View File
@@ -0,0 +1,25 @@
#include "settingspage.h"
#include "ui_settingspage.h"
SettingsPage::SettingsPage(QWidget *parent) :
QWidget(parent),
ui(new Ui::SettingsPage)
{
ui->setupUi(this);
}
void SettingsPage::setTheme(bool dark)
{
if(dark)
{
this->setStyleSheet("#frame{background-color: #252525;border-radius:14px;border:1px solid rgb(64, 64, 64);}");
}else {
//亮色模式
this->setStyleSheet("#frame{background-color: #ffffff;border-radius:14px;border:1px solid rgb(229,229,229);}");
}
}
SettingsPage::~SettingsPage()
{
delete ui;
}