feat: Added interface accent colors

This commit is contained in:
WerWolv
2025-01-07 00:06:52 +01:00
parent ae4dde8255
commit 803cb335e1
7 changed files with 139 additions and 105 deletions

View File

@@ -789,6 +789,12 @@ namespace hex::plugin::builtin {
}
});
ContentRegistry::Settings::add<Widgets::ColorPicker>("hex.builtin.setting.interface", "hex.builtin.setting.interface.style", "hex.builtin.setting.interface.accent", ImGui::GetStyleColorVec4(ImGuiCol_Button))
.setChangedCallback([](auto &widget) {
auto colorPicker = static_cast<Widgets::ColorPicker *>(&widget);
ThemeManager::setAccentColor(colorPicker->getColor());
});
ContentRegistry::Settings::add<ScalingWidget>("hex.builtin.setting.interface", "hex.builtin.setting.interface.style", "hex.builtin.setting.interface.scaling_factor")
.requiresRestart();