mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
refactor: Better interface for the event system
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
namespace hex::plugin::builtin {
|
||||
|
||||
void registerThemeHandlers() {
|
||||
EventManager::subscribe<RequestInitThemeHandlers>([] {
|
||||
RequestInitThemeHandlers::subscribe([] {
|
||||
{
|
||||
const static ThemeManager::ColorMap ImGuiColorMap = {
|
||||
{ "text", ImGuiCol_Text },
|
||||
@@ -253,7 +253,7 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
|
||||
void registerStyleHandlers() {
|
||||
EventManager::subscribe<RequestInitThemeHandlers>([] {
|
||||
RequestInitThemeHandlers::subscribe([] {
|
||||
{
|
||||
auto &style = ImGui::GetStyle();
|
||||
const static ThemeManager::StyleMap ImGuiStyleMap = {
|
||||
|
||||
Reference in New Issue
Block a user