Skip to content

Commit a6b57e3

Browse files
committed
Forgot to put the ramp
1 parent 2ac7c3a commit a6b57e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Models/StyleManager.vala

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ public class He.StyleManager : Object {
106106
var error_container_hex = Color.hct_to_hex (error_container_hct.h, error_container_hct.c, error_container_hct.t);
107107

108108
var on_error_container_hct = is_dark ?
109-
Color.from_params (20.0, 10.0, 90.0) :
110-
Color.from_params (25.0, 65.0, 10.0);
109+
Color.from_params (20.0, 10.0, new ContrastCurve (contrast, 85, 90, 100, 100).contrast_level) :
110+
Color.from_params (25.0, 65.0, new ContrastCurve (contrast, 20, 10, 0, 0).contrast_level);
111111
var on_error_container_hex = Color.hct_to_hex (on_error_container_hct.h, on_error_container_hct.c, on_error_container_hct.t);
112112

113113
// HCT Color blendin'

0 commit comments

Comments
 (0)