mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-15 21:32:05 +08:00
完善设置中的亮色暗色设置与UI的集成
This commit is contained in:
@@ -371,6 +371,13 @@ void SpkMainWindow::Initialize()
|
||||
connect(ui->PageHome->ui->btnReloadCategory, &QPushButton::clicked,
|
||||
this, &SpkMainWindow::RefreshCategoryData);
|
||||
|
||||
connect(&SpkUi::SpkUiMetaObject, &SpkUi::UiMetaObject::SetThemeButtonVisible,
|
||||
[=](bool visible)
|
||||
{
|
||||
ui->BtnDayNight->setVisible(visible);
|
||||
ReloadThemedUiIcons();
|
||||
});
|
||||
|
||||
// Register themed button icons
|
||||
// mThemedUiIconReferences.append({ ui->BtnSettings, "settings" });
|
||||
mThemedUiIconReferences.append({ ui->BtnDayNight, "daynight" });
|
||||
|
||||
Reference in New Issue
Block a user