颜色修改红绿,修复帧错误卡顿bug

This commit is contained in:
2025-12-16 14:25:48 +08:00
parent c86c24488c
commit a1f7f337c2
15 changed files with 2201 additions and 917 deletions

View File

@@ -15,7 +15,7 @@
#include <creeper-qt/widget/main-window.hh>
#include <creeper-qt/layout/stacked.hh>
#include <qfontdatabase.h>
#include <iostream>
using namespace creeper;
namespace lnpro = linear::pro;
@@ -29,7 +29,7 @@ auto main(int argc, char *argv[]) -> int {
app::pro::Attribute {Qt::AA_UseHighDpiPixmaps},
app::pro::Complete {argc, argv},
};
std::cout << "========begin========" << std::endl;
auto stack_index = std::make_shared<MutableValue<int>>();
stack_index->set_silent(0);
@@ -38,6 +38,8 @@ auto main(int argc, char *argv[]) -> int {
auto nav_component_state = NavComponentState {
.manager = manager,
.switch_callback = [&](int index, const auto& name) {
qDebug() << "switch_callback index: " << index;
},
.buttons_context = {