first commit

This commit is contained in:
2025-10-20 00:32:01 +08:00
parent edac742f6a
commit 6ad03fc44f
106 changed files with 52165 additions and 0 deletions

21
component.hh Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include <modern-qt/utility/theme/theme.hh>
#include <qwidget.h>
template <typename T>
using raw_pointer = T*;
struct NavComponentState {
creeper::ThemeManager& manager;
std::function<void(int, const std::string_view&)> switch_callback;
std::vector<std::tuple<std::string_view, std::string_view>> buttons_context;
};
auto NavComponent(NavComponentState&) noexcept -> raw_pointer<QWidget>;
struct ViewComponentState {
creeper::ThemeManager& manager;
};
auto ViewComponent(ViewComponentState&) noexcept -> raw_pointer<QWidget>;