Skip to content

Commit

Permalink
Improve a bit the color of input widgets
Browse files Browse the repository at this point in the history
The color lightning effect was too strong.
  • Loading branch information
guillaumechereau committed Jan 5, 2024
1 parent 4d53192 commit b7a8322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static const ImVec2 ITEM_SPACING = ImVec2(8, 4);
((uint8_t)((x >> 8) & 0xff)) / 255.0, \
((uint8_t)((x >> 0) & 0xff)) / 255.0)

static inline ImVec4 color_lighten(ImVec4 c, float k = 0.2)
static inline ImVec4 color_lighten(ImVec4 c, float k = 0.1)
{
float h, s, v, r, g, b;
r = c.x;
Expand All @@ -91,7 +91,7 @@ static inline ImVec4 color_lighten(ImVec4 c, float k = 0.2)

static inline ImVec4 color_lighten2(ImVec4 v)
{
return color_lighten(v, 0.5);
return color_lighten(v, 0.2);
}

static texture_t *g_tex_icons = NULL;
Expand Down

0 comments on commit b7a8322

Please sign in to comment.