Adjustments to UI color to compensate for brighter environment light. May need further tweaking!
@@ -289,11 +289,11 @@ void ui_settings(ui_settings_t settings) {
void ui_set_color(color128 color) {
vec3 hsv = color_to_hsv(color);
- skui_palette[0] = color_to_linear( color );
- skui_palette[1] = color_to_linear( color_hsv(hsv.x, hsv.y * 0.2f, hsv.z * 0.5f, color.a) );
- skui_palette[2] = color_to_linear( color_hsv(hsv.x, hsv.y * 0.075f, hsv.z * 0.8f, color.a) );
- skui_palette[3] = color_to_linear( color_hsv(fmodf(hsv.x + 0.5f, 1), hsv.y * 0.075f, hsv.z * 0.8f, color.a) );
- skui_palette[4] = color128{1, 1, 1, 1};
+ skui_palette[0] = color_to_linear( color ); // Primary color: Headers, separators, etc.
+ skui_palette[1] = color_to_linear( color_hsv(hsv.x, hsv.y * 0.2f, hsv.z * 0.45f, color.a) ); // Dark color: body and backgrounds
+ skui_palette[2] = color_to_linear( color_hsv(hsv.x, hsv.y * 0.075f, hsv.z * 0.65f, color.a) ); // Primary element color: buttons, sliders, etc.
+ skui_palette[3] = color_to_linear( color_hsv(fmodf(hsv.x + 0.5f, 1), hsv.y * 0.075f, hsv.z * 0.65f, color.a) ); // Complement color: unused so far?
+ skui_palette[4] = color128{1, 1, 1, 1}; // Text color
}
///////////////////////////////////////////
@@ -315,7 +315,7 @@ void ui_pop_text_style() {
///////////////////////////////////////////
bool ui_init() {
- ui_set_color(color_hsv(0.07f, 0.5f, 0.8f, 1));
+ ui_set_color(color_hsv(0.07f, 0.5f, 0.75f, 1));
ui_quadrant_mesh(skui_settings.padding*0.75f);
skui_box_dbg = mesh_find(default_id_mesh_cube);
