X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=tools%2Fgen-styles;fp=tools%2Fgen-styles;h=23920c54bd29fcf3ac02d22295894b0aebdcbf1c;hp=785ece60b1a90aed5924850fe8b8da63a99c7670;hb=e7a2fe989ab244998347c82c002e281246916186;hpb=e740260921aed6c607043203baf31cdaba2e5fed diff --git a/tools/gen-styles b/tools/gen-styles index 785ece60..23920c54 100644 --- a/tools/gen-styles +++ b/tools/gen-styles @@ -208,7 +208,7 @@ sub hslStyleForHue { my $l1 = $y0 + 1.0 * ( $hue - $x0 ) * ( $y1 - $y0 ) / ( $x1 - $x0 ); my $l2 = $l1 * 0.80; - my $l3 = $opt_night ? 0.200 : 0.950; + my $l3 = $opt_night ? 0.150 : 0.950; my $l4 = $opt_night ? 0.100 : 0.980; my $result = ""; @@ -230,6 +230,8 @@ sub hslStyleForHue { 'colorPrimary', hslHex( $hue, $S, $l1 ); $result .= sprintf "$indent#00%s\n", 'colorPrimaryTransparent', hslHex( $hue, $S, $l1 ); + $result .= sprintf "$indent#%s\n", + 'colorSecondary', hslHex( $hue, $S, $l2 ); $result .= sprintf "$indent#%s\n", 'colorAccent', hslHex( $hue, $S, $l2 ); $result .= sprintf "$indent#%s\n",