mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-03 05:57:40 -05:00
impr: General code cleanup
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "content/views/view_theme_manager.hpp"
|
||||
|
||||
#include <hex/api/content_registry.hpp>
|
||||
#include <hex/api/theme_manager.hpp>
|
||||
|
||||
#include <wolv/io/file.hpp>
|
||||
@@ -31,7 +32,7 @@ namespace hex::plugin::builtin {
|
||||
auto color = handler.getFunction(colorId);
|
||||
|
||||
// Draw a color picker for the color
|
||||
if (ImGui::ColorEdit4(colorName.c_str(), (float*)&color.Value, ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_AlphaBar | ImGuiColorEditFlags_AlphaPreviewHalf)) {
|
||||
if (ImGui::ColorEdit4(colorName.c_str(), reinterpret_cast<float*>(&color.Value), ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_AlphaBar | ImGuiColorEditFlags_AlphaPreviewHalf)) {
|
||||
// Update the color value
|
||||
handler.setFunction(colorId, color);
|
||||
EventManager::post<EventThemeChanged>();
|
||||
|
||||
Reference in New Issue
Block a user