From: Damyan Ivanov Date: Sun, 5 Jul 2020 20:23:35 +0000 (+0000) Subject: a bit darker 'table_row_dark_bg' in night mode X-Git-Tag: v0.15.0~105 X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=commitdiff_plain;h=e7a2fe989ab244998347c82c002e281246916186 a bit darker 'table_row_dark_bg' in night mode --- diff --git a/app/src/main/res/values-night/styles.xml b/app/src/main/res/values-night/styles.xml index fd949f97..b0a8fffc 100644 --- a/app/src/main/res/values-night/styles.xml +++ b/app/src/main/res/values-night/styles.xml @@ -42,7 +42,7 @@ #00935ff2 #6921ec #6921ec - #26085e + #1d0647 #13042f @@ -51,7 +51,7 @@ #00d41212 #a90e0e #a90e0e - #5e0808 + #470606 #2f0404 @@ -60,7 +60,7 @@ #00d22212 #a81b0e #a81b0e - #5e0f08 + #470b06 #2f0804 @@ -69,7 +69,7 @@ #00d03111 #a6270e #a6270e - #5e1608 + #471106 #2f0b04 @@ -78,7 +78,7 @@ #00ce4011 #a5340e #a5340e - #5e1d08 + #471606 #2f0f04 @@ -87,7 +87,7 @@ #00cc4f11 #a3400e #a3400e - #5e2508 + #471b06 #2f1204 @@ -96,7 +96,7 @@ #00ca5e11 #a24b0e #a24b0e - #5e2c08 + #472106 #2f1604 @@ -105,7 +105,7 @@ #00c86c11 #a0570d #a0570d - #5e3308 + #472606 #2f1a04 @@ -114,7 +114,7 @@ #00c67a11 #9e620d #9e620d - #5e3a08 + #472c06 #2f1d04 @@ -123,7 +123,7 @@ #00c48810 #9d6d0d #9d6d0d - #5e4108 + #473106 #2f2104 @@ -132,7 +132,7 @@ #00c29610 #9b780d #9b780d - #5e4908 + #473606 #2f2404 @@ -141,7 +141,7 @@ #00c0a310 #9a820d #9a820d - #5e5008 + #473c06 #2f2804 @@ -150,7 +150,7 @@ #00beb010 #988d0d #988d0d - #5e5708 + #474106 #2f2b04 @@ -159,7 +159,7 @@ #00bcbc10 #97970d #97970d - #5e5e08 + #474706 #2f2f04 @@ -168,7 +168,7 @@ #00aebc10 #8b970d #8b970d - #575e08 + #414706 #2b2f04 @@ -177,7 +177,7 @@ #009fbc10 #80970d #80970d - #505e08 + #3c4706 #282f04 @@ -186,7 +186,7 @@ #0091bc10 #74970d #74970d - #495e08 + #364706 #242f04 @@ -195,7 +195,7 @@ #0083bc10 #69970d #69970d - #415e08 + #314706 #212f04 @@ -204,7 +204,7 @@ #0074bc10 #5d970d #5d970d - #3a5e08 + #2c4706 #1d2f04 @@ -213,7 +213,7 @@ #0066bc10 #52970d #52970d - #335e08 + #264706 #1a2f04 @@ -222,7 +222,7 @@ #0058bc10 #46970d #46970d - #2c5e08 + #214706 #162f04 @@ -231,7 +231,7 @@ #0049bc10 #3b970d #3b970d - #255e08 + #1b4706 #122f04 @@ -240,7 +240,7 @@ #003bbc10 #2f970d #2f970d - #1d5e08 + #164706 #0f2f04 @@ -249,7 +249,7 @@ #002dbc10 #24970d #24970d - #165e08 + #114706 #0b2f04 @@ -258,7 +258,7 @@ #001ebc10 #18970d #18970d - #0f5e08 + #0b4706 #082f04 @@ -267,7 +267,7 @@ #0010bc10 #0d970d #0d970d - #085e08 + #064706 #042f04 @@ -276,7 +276,7 @@ #0010bc1e #0d9618 #0d9618 - #085e0f + #06470b #042f08 @@ -285,7 +285,7 @@ #0010bb2c #0d9623 #0d9623 - #085e16 + #064711 #042f0b @@ -294,7 +294,7 @@ #0010bb3b #0d962f #0d962f - #085e1d + #064716 #042f0f @@ -303,7 +303,7 @@ #0010bb49 #0d953a #0d953a - #085e25 + #06471b #042f12 @@ -312,7 +312,7 @@ #0010ba57 #0d9545 #0d9545 - #085e2c + #064721 #042f16 @@ -321,7 +321,7 @@ #0010ba65 #0c9551 #0c9551 - #085e33 + #064726 #042f1a @@ -330,7 +330,7 @@ #0010b973 #0c945c #0c945c - #085e3a + #06472c #042f1d @@ -339,7 +339,7 @@ #0010b981 #0c9467 #0c9467 - #085e41 + #064731 #042f21 @@ -348,7 +348,7 @@ #0010b98e #0c9472 #0c9472 - #085e49 + #064736 #042f24 @@ -357,7 +357,7 @@ #000fb89c #0c937d #0c937d - #085e50 + #06473c #042f28 @@ -366,7 +366,7 @@ #000fb8aa #0c9388 #0c9388 - #085e57 + #064741 #042f2b @@ -375,7 +375,7 @@ #000fb7b7 #0c9393 #0c9393 - #085e5e + #064747 #042f2f @@ -384,7 +384,7 @@ #0011b6c5 #0d929e #0d929e - #08575e + #064147 #042b2f @@ -393,7 +393,7 @@ #0012b3d3 #0e8fa9 #0e8fa9 - #08505e + #063c47 #04282f @@ -402,7 +402,7 @@ #0013aee1 #0f8bb4 #0f8bb4 - #08495e + #063647 #04242f @@ -411,7 +411,7 @@ #0018a5ec #1085bf #1085bf - #08415e + #063147 #04212f @@ -420,7 +420,7 @@ #00269aed #117dca #117dca - #083a5e + #062c47 #041d2f @@ -429,7 +429,7 @@ #003491ee #1274d6 #1274d6 - #08335e + #062647 #041a2f @@ -438,7 +438,7 @@ #00418aef #1369e1 #1369e1 - #082c5e + #062147 #04162f @@ -447,7 +447,7 @@ #004f85f0 #145ceb #145ceb - #08255e + #061b47 #04122f @@ -456,7 +456,7 @@ #005d82f1 #2053ec #2053ec - #081d5e + #061647 #040f2f @@ -465,7 +465,7 @@ #006b82f3 #2b4bed #2b4bed - #08165e + #061147 #040b2f @@ -474,7 +474,7 @@ #007983f4 #3645ee #3645ee - #080f5e + #060b47 #04082f @@ -483,7 +483,7 @@ #008787f5 #4141ef #4141ef - #08085e + #060647 #04042f @@ -492,7 +492,7 @@ #00877ef4 #4839ee #4839ee - #0f085e + #0b0647 #08042f @@ -501,7 +501,7 @@ #008974f3 #5132ee #5132ee - #16085e + #110647 #0b042f @@ -510,7 +510,7 @@ #008d6bf3 #5b2aed #5b2aed - #1d085e + #160647 #0f042f @@ -519,7 +519,7 @@ #009261f2 #6623ed #6623ed - #25085e + #1b0647 #12042f @@ -528,7 +528,7 @@ #009858f1 #721bec #721bec - #2c085e + #210647 #16042f @@ -537,7 +537,7 @@ #009f4ff0 #8014eb #8014eb - #33085e + #260647 #1a042f @@ -546,7 +546,7 @@ #00a845ef #8d13e4 #8d13e4 - #3a085e + #2c0647 #1d042f @@ -555,7 +555,7 @@ #00b33cef #9912dc #9912dc - #41085e + #310647 #21042f @@ -564,7 +564,7 @@ #00bf32ee #a412d5 #a412d5 - #49085e + #360647 #24042f @@ -573,7 +573,7 @@ #00cc29ed #ae11cd #ae11cd - #50085e + #3c0647 #28042f @@ -582,7 +582,7 @@ #00db20ec #b711c6 #b711c6 - #57085e + #410647 #2b042f @@ -591,7 +591,7 @@ #00eb16eb #be10be #be10be - #5e085e + #470647 #2f042f @@ -600,7 +600,7 @@ #00eb14d9 #bc10ae #bc10ae - #5e0857 + #470641 #2f042b @@ -609,7 +609,7 @@ #00e914c6 #bb109e #bb109e - #5e0850 + #47063c #2f0428 @@ -618,7 +618,7 @@ #00e713b2 #b9108f #b9108f - #5e0849 + #470636 #2f0424 @@ -627,7 +627,7 @@ #00e5139f #b70f7f #b70f7f - #5e0841 + #470631 #2f0421 @@ -636,7 +636,7 @@ #00e3138c #b50f70 #b50f70 - #5e083a + #47062c #2f041d @@ -645,7 +645,7 @@ #00e1137a #b40f61 #b40f61 - #5e0833 + #470626 #2f041a @@ -654,7 +654,7 @@ #00de1368 #b20f53 #b20f53 - #5e082c + #470621 #2f0416 @@ -663,7 +663,7 @@ #00dc1356 #b00f45 #b00f45 - #5e0825 + #47061b #2f0412 @@ -672,7 +672,7 @@ #00da1244 #af0f37 #af0f37 - #5e081d + #470616 #2f040f @@ -681,7 +681,7 @@ #00d81233 #ad0f29 #ad0f29 - #5e0816 + #470611 #2f040b @@ -690,7 +690,7 @@ #00d61222 #ab0e1b #ab0e1b - #5e080f + #47060b #2f0408 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",