mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 01:23:51 +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
|
|
@ -22,6 +22,10 @@ namespace colors {
|
|||
constexpr ImVec4 kLightBlue = {0.4f, 0.6f, 1.0f, 1.0f};
|
||||
constexpr ImVec4 kManaBlue = {0.2f, 0.2f, 0.9f, 1.0f};
|
||||
constexpr ImVec4 kCyan = {0.0f, 0.8f, 1.0f, 1.0f};
|
||||
constexpr ImVec4 kDarkRed = {0.9f, 0.2f, 0.2f, 1.0f};
|
||||
constexpr ImVec4 kSoftRed = {1.0f, 0.4f, 0.4f, 1.0f};
|
||||
constexpr ImVec4 kHostileRed = {1.0f, 0.35f, 0.35f, 1.0f};
|
||||
constexpr ImVec4 kMediumGray = {0.65f, 0.65f, 0.65f, 1.0f};
|
||||
|
||||
// Coin colors
|
||||
constexpr ImVec4 kGold = {1.00f, 0.82f, 0.00f, 1.0f};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue