mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-14 08:23:52 +00:00
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:
parent
dec23423d8
commit
e3c999d844
5 changed files with 40 additions and 34 deletions
|
|
@ -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))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue