feat:完成设置界面和主界面的参数配置
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#include "component.hh"
|
||||
|
||||
#include "modern-qt/core/application.hh"
|
||||
#include "modern-qt/layout/group.hh"
|
||||
#include "modern-qt/layout/linear.hh"
|
||||
#include "modern-qt/layout/mutual-exclusion-group.hh"
|
||||
#include "modern-qt/utility/material-icon.hh"
|
||||
#include "modern-qt/utility/theme/theme.hh"
|
||||
#include "modern-qt/widget/buttons/icon-button.hh"
|
||||
#include "modern-qt/widget/cards/filled-card.hh"
|
||||
#include "modern-qt/widget/image.hh"
|
||||
#include "creeper-qt/core/application.hh"
|
||||
#include "creeper-qt/layout/group.hh"
|
||||
#include "creeper-qt/layout/linear.hh"
|
||||
#include "creeper-qt/layout/mutual-exclusion-group.hh"
|
||||
#include "creeper-qt/utility/material-icon.hh"
|
||||
#include "creeper-qt/utility/theme/theme.hh"
|
||||
#include "creeper-qt/widget/buttons/icon-button.hh"
|
||||
#include "creeper-qt/widget/cards/filled-card.hh"
|
||||
#include "creeper-qt/widget/image.hh"
|
||||
|
||||
using namespace creeper;
|
||||
namespace fc = filled_card::pro;
|
||||
@@ -26,7 +26,6 @@ auto NavComponent(NavComponentState& state) noexcept -> raw_pointer<QWidget> {
|
||||
im::BorderWidth {3},
|
||||
im::PainterResource {
|
||||
":/images/images/logo.png",
|
||||
// "./images/logo.png",
|
||||
},
|
||||
};
|
||||
state.manager.append_handler(AvatarComponent, [AvatarComponent](const ThemeManager& manager) {
|
||||
@@ -74,7 +73,10 @@ auto NavComponent(NavComponentState& state) noexcept -> raw_pointer<QWidget> {
|
||||
navigation_icons_config,
|
||||
status,
|
||||
ic::FontIcon(icon.data()),
|
||||
ic::Clickable {[=]{state.switch_callback(index, name);}},
|
||||
ic::Clickable {[=] {
|
||||
// state.switch_callback(index, name);
|
||||
state.stacked_callback(index);
|
||||
}},
|
||||
};
|
||||
},
|
||||
Qt::AlignHCenter,
|
||||
|
||||
Reference in New Issue
Block a user