]> git.ktnx.net Git - mobile-ledger.git/blobdiff - tools/gen-styles
migrate a bunch of globals to LiveData
[mobile-ledger.git] / tools / gen-styles
index 1c2c4c8524af8796d0c35ce33214857f70a3a069..19c420a45476a30ee32fa51c1733049df61a0fea 100644 (file)
@@ -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 .= "  <item name=\"windowActionBar\">false</item>\n";
                 $result .= "  <item name=\"windowNoTitle\">true</item>\n";
-                $result .= "  <item name=\"textColor\">#d0000000</item>\n";
+                $result .= "  <item name=\"textColor\">#8a000000</item>\n";
         }
         my $S = 0.845;
         $result .= sprintf "  <item name=\"colorPrimary\">#%s</item>\n",