X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fgen-styles;h=23920c54bd29fcf3ac02d22295894b0aebdcbf1c;hb=e7a2fe989ab244998347c82c002e281246916186;hp=7a22c7e7f1924b8d346d2cfc25a9172f0dad8796;hpb=4f910919819fbe8db070847cfbfba493a62c7c58;p=mobile-ledger.git
diff --git a/tools/gen-styles b/tools/gen-styles
index 7a22c7e7..23920c54 100644
--- a/tools/gen-styles
+++ b/tools/gen-styles
@@ -207,8 +207,8 @@ sub hslStyleForHue {
# linear interpolation
my $l1 = $y0 + 1.0 * ( $hue - $x0 ) * ( $y1 - $y0 ) / ( $x1 - $x0 );
- my $l2 = $l1 * ( $opt_night ? 1.10 : 0.80 );
- my $l3 = $opt_night ? 0.200 : 0.950;
+ my $l2 = $l1 * 0.80;
+ 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",