UI: Add icon color saturation preference

Toolbar icon saturation can now be set from the preferences,
(use 0.4 by default).
This commit is contained in:
2018-04-28 13:34:52 +02:00
parent 69ca12c45c
commit a74097dc19
8 changed files with 31 additions and 10 deletions

View File

@@ -1327,7 +1327,8 @@ static void widget_draw_icon_ex(
UI_icon_draw_aspect(xs, ys, icon, aspect, alpha);
}
else {
UI_icon_draw_desaturate(xs, ys, icon, aspect, alpha);
const bTheme *btheme = UI_GetTheme();
UI_icon_draw_desaturate(xs, ys, icon, aspect, alpha, 1.0 - btheme->tui.icon_saturation);
}
}