refactor: add 4 color constants, replace 31 more inline literals

Add kDarkRed, kSoftRed, kHostileRed, kMediumGray to ui_colors.hpp and
replace 31 inline ImVec4 literals across game_screen, character_screen,
inventory_screen, and performance_hud. Also replace local color aliases
in performance_hud with shared constants.
This commit is contained in:
Kelsi 2026-03-27 10:20:45 -07:00
parent dec23423d8
commit e3c999d844
5 changed files with 40 additions and 34 deletions

View file

@ -825,7 +825,7 @@ void InventoryScreen::render(game::Inventory& inventory, uint64_t moneyCopper) {
destroyConfirmOpen_ = false;
}
if (ImGui::BeginPopup("##DestroyItem", ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar)) {
ImGui::TextColored(ImVec4(1.0f, 0.4f, 0.4f, 1.0f), "Destroy");
ImGui::TextColored(ui::colors::kSoftRed, "Destroy");
ImGui::TextUnformatted(destroyItemName_.c_str());
ImGui::Spacing();
if (ImGui::Button("Yes, Destroy", ImVec2(110, 0))) {