cssvalue: Make shade() work properly again
In a previous commit, I accidentally scaled the hue instead of the saturation. Ooops.
This commit is contained in:
parent
10c3a66e40
commit
aae2bf91cb
@ -189,8 +189,8 @@ gtk_css_color_value_resolve_full (GtkCssValue *color,
|
||||
hsla.lightness *= color->sym_col.shade.factor;
|
||||
hsla.lightness = CLAMP (hsla.lightness, 0.0, 1.0);
|
||||
|
||||
hsla.hue *= color->sym_col.shade.factor;
|
||||
hsla.hue = CLAMP (hsla.hue, 0.0, 1.0);
|
||||
hsla.saturation *= color->sym_col.shade.factor;
|
||||
hsla.saturation = CLAMP (hsla.saturation, 0.0, 1.0);
|
||||
|
||||
_gdk_rgba_init_from_hsla (&shade, &hsla);
|
||||
|
||||
|
@ -521,8 +521,8 @@ _shade_color (GdkRGBA *color,
|
||||
hsla.lightness *= factor;
|
||||
hsla.lightness = CLAMP (hsla.lightness, 0.0, 1.0);
|
||||
|
||||
hsla.hue *= factor;
|
||||
hsla.hue = CLAMP (hsla.hue, 0.0, 1.0);
|
||||
hsla.saturation *= factor;
|
||||
hsla.saturation = CLAMP (hsla.saturation, 0.0, 1.0);
|
||||
|
||||
_gdk_rgba_init_from_hsla (color, &hsla);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user