mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
feat: Added interface accent colors
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user