mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-05 04:33:51 +00:00
refactor: replace 31 more inline color literals with named constants in game_screen
Replace inline ImVec4 literals with shared constants from ui_colors.hpp: kHealthGreen(5), kOrange(5), kWarmGold(5), kFriendlyGreen(3), kActiveGreen(3), kLightGreen(4), kSocketGreen(2), new constants kSocketGreen/kActiveGreen/kLightGreen/kHealthGreen/kWarmGold/kOrange/kFriendlyGreen added to ui_colors.hpp.
This commit is contained in:
parent
e3c999d844
commit
c38fa6d9ec
2 changed files with 42 additions and 35 deletions
|
|
@ -26,6 +26,13 @@ namespace colors {
|
|||
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};
|
||||
constexpr ImVec4 kWarmGold = {1.0f, 0.84f, 0.0f, 1.0f};
|
||||
constexpr ImVec4 kOrange = {0.9f, 0.6f, 0.1f, 1.0f};
|
||||
constexpr ImVec4 kFriendlyGreen = {0.2f, 0.7f, 0.2f, 1.0f};
|
||||
constexpr ImVec4 kHealthGreen = {0.2f, 0.8f, 0.2f, 1.0f};
|
||||
constexpr ImVec4 kLightGreen = {0.6f, 1.0f, 0.6f, 1.0f};
|
||||
constexpr ImVec4 kActiveGreen = {0.5f, 1.0f, 0.5f, 1.0f};
|
||||
constexpr ImVec4 kSocketGreen = {0.5f, 0.8f, 0.5f, 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