mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-29 14:33:51 +00:00
refactor: replace 8 more inline color literals with existing constants
Replace kYellow (5), kRed (2), kGray (1), kLightGray (1) inline ImVec4 literals in realm_screen, spellbook_screen, talent_screen, game_screen, and inventory_screen.
This commit is contained in:
parent
4090041431
commit
ee20f823f7
5 changed files with 9 additions and 9 deletions
|
|
@ -485,12 +485,12 @@ void SpellbookScreen::renderSpellTooltip(const SpellInfo* info, game::GameHandle
|
|||
ImGui::PushTextWrapPos(320.0f);
|
||||
|
||||
// Spell name in yellow
|
||||
ImGui::TextColored(ImVec4(1.0f, 1.0f, 0.3f, 1.0f), "%s", info->name.c_str());
|
||||
ImGui::TextColored(ui::colors::kYellow, "%s", info->name.c_str());
|
||||
|
||||
// Rank in gray
|
||||
if (!info->rank.empty()) {
|
||||
ImGui::SameLine();
|
||||
ImGui::TextColored(ImVec4(0.6f, 0.6f, 0.6f, 1.0f), "(%s)", info->rank.c_str());
|
||||
ImGui::TextColored(ui::colors::kGray, "(%s)", info->rank.c_str());
|
||||
}
|
||||
|
||||
// Passive indicator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue