X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=tools%2Fgen-styles;h=19c420a45476a30ee32fa51c1733049df61a0fea;hp=1c2c4c8524af8796d0c35ce33214857f70a3a069;hb=0fc2ddc465cd9b9314ae336e69535020a96a7fbc;hpb=da3450cd594a3f9ad6f0a76b2b2fc219949a6695 diff --git a/tools/gen-styles b/tools/gen-styles index 1c2c4c85..19c420a4 100644 --- a/tools/gen-styles +++ b/tools/gen-styles @@ -176,11 +176,16 @@ sub hslStyleForHue { my $blueL = 0.665; my $yellowL = 0.350; + my $blueL2 = 0.350; + my $yellowL2 = 0.500; + + # $y == 0 for yellow my $y = $hue - 60; $y += 360 if $y < 0; + # $q == 0 for yellow, 1 for blue my $q = cos(deg2rad(abs($y-180)/2.0)); my $l1 = $yellowL + ($blueL - $yellowL) * $q; - my $l2 = 0.150 + 0.350 * $q; + my $l2 = 0.250 + 0.250 * $q; my $l3 = 0.950; my $l4 = 0.980; @@ -195,7 +200,7 @@ sub hslStyleForHue { $baseTheme; $result .= " false\n"; $result .= " true\n"; - $result .= " #d0000000\n"; + $result .= " #8a000000\n"; } my $S = 0.845; $result .= sprintf " #%s\n",