]> git.ktnx.net Git - mobile-ledger.git/commitdiff
5-degree theme steps, for smooth color selection
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 5 May 2019 14:55:26 +0000 (17:55 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 5 May 2019 14:55:26 +0000 (17:55 +0300)
also replaces the fixed switch on theme hue with heuristic for getting
resource theme ID from the hue

the three-digit number (%03d) in the resource theme id name is needed because
the build infrastructure orders the IDs by lexical order (0,10,15,100,150,200)
instead of numerical order (0,5,10,15). By zero-padding both orders are the same
(000,005,010,015)

app/src/main/java/net/ktnx/mobileledger/ui/HueRing.java
app/src/main/java/net/ktnx/mobileledger/utils/Colors.java
app/src/main/res/values/styles.xml
tools/gen-styles

index ac3ef612e315bb611eefd0951b10b49928f3e222..c97741a9b1f4e98a4559c4b709a53f69b107d360 100644 (file)
@@ -36,7 +36,7 @@ import androidx.annotation.Nullable;
 import static net.ktnx.mobileledger.utils.Logger.debug;
 
 public class HueRing extends View {
 import static net.ktnx.mobileledger.utils.Logger.debug;
 
 public class HueRing extends View {
-    private static final int hueStepDegrees = 15;
+    public static final int hueStepDegrees = 5;
     private Paint ringPaint, initialPaint, currentPaint, markerPaint;
     private int centerX, centerY;
     private int diameter;
     private Paint ringPaint, initialPaint, currentPaint, markerPaint;
     private int centerX, centerY;
     private int diameter;
index 80bc9951778ffb22b5cc86188b33f9ef85969224..fb4298b25d93772f3826f2065cbc73dd74b4ba21 100644 (file)
@@ -24,6 +24,7 @@ import android.util.TypedValue;
 import net.ktnx.mobileledger.R;
 import net.ktnx.mobileledger.model.Data;
 import net.ktnx.mobileledger.model.MobileLedgerProfile;
 import net.ktnx.mobileledger.R;
 import net.ktnx.mobileledger.model.Data;
 import net.ktnx.mobileledger.model.MobileLedgerProfile;
+import net.ktnx.mobileledger.ui.HueRing;
 
 import java.util.Locale;
 
 
 import java.util.Locale;
 
@@ -164,88 +165,25 @@ public class Colors {
         setupTheme(activity, profile);
     }
     public static void setupTheme(Activity activity, MobileLedgerProfile profile) {
         setupTheme(activity, profile);
     }
     public static void setupTheme(Activity activity, MobileLedgerProfile profile) {
-        final int themeId = (profile == null) ? -1 : profile.getThemeId();
-        setupTheme(activity, themeId);
+        final int themeHue = (profile == null) ? -1 : profile.getThemeId();
+        setupTheme(activity, themeHue);
     }
     }
-    public static void setupTheme(Activity activity, int themeId) {
-        switch (themeId) {
-            case 0:
-            case 360:
-                activity.setTheme(R.style.AppTheme_NoActionBar_0);
-                break;
-            case 15:
-                activity.setTheme(R.style.AppTheme_NoActionBar_15);
-                break;
-            case 30:
-                activity.setTheme(R.style.AppTheme_NoActionBar_30);
-                break;
-            case 45:
-                activity.setTheme(R.style.AppTheme_NoActionBar_45);
-                break;
-            case 60:
-                activity.setTheme(R.style.AppTheme_NoActionBar_60);
-                break;
-            case 75:
-                activity.setTheme(R.style.AppTheme_NoActionBar_75);
-                break;
-            case 90:
-                activity.setTheme(R.style.AppTheme_NoActionBar_90);
-                break;
-            case 105:
-                activity.setTheme(R.style.AppTheme_NoActionBar_105);
-                break;
-            case 120:
-                activity.setTheme(R.style.AppTheme_NoActionBar_120);
-                break;
-            case 135:
-                activity.setTheme(R.style.AppTheme_NoActionBar_135);
-                break;
-            case 150:
-                activity.setTheme(R.style.AppTheme_NoActionBar_150);
-                break;
-            case 165:
-                activity.setTheme(R.style.AppTheme_NoActionBar_165);
-                break;
-            case 180:
-                activity.setTheme(R.style.AppTheme_NoActionBar_180);
-                break;
-            case 195:
-                activity.setTheme(R.style.AppTheme_NoActionBar_195);
-                break;
-            case 210:
-                activity.setTheme(R.style.AppTheme_NoActionBar_210);
-                break;
-            case 225:
-                activity.setTheme(R.style.AppTheme_NoActionBar_225);
-                break;
-            case 240:
-                activity.setTheme(R.style.AppTheme_NoActionBar_240);
-                break;
-            case 255:
-                activity.setTheme(R.style.AppTheme_NoActionBar_255);
-                break;
-            case 270:
-                activity.setTheme(R.style.AppTheme_NoActionBar_270);
-                break;
-            case 285:
-                activity.setTheme(R.style.AppTheme_NoActionBar_285);
-                break;
-            case 300:
-                activity.setTheme(R.style.AppTheme_NoActionBar_300);
-                break;
-            case 315:
-                activity.setTheme(R.style.AppTheme_NoActionBar_315);
-                break;
-            case 330:
-                activity.setTheme(R.style.AppTheme_NoActionBar_330);
-                break;
-            case 345:
-                activity.setTheme(R.style.AppTheme_NoActionBar_345);
-                break;
-            default:
-                activity.setTheme(R.style.AppTheme_NoActionBar);
-                debug("profiles", String.format(Locale.ENGLISH,
-                        "Theme hue %d not supported, using the default", themeId));
+    public static void setupTheme(Activity activity, int themeHue) {
+        int themeId = -1;
+        // Relies that theme resource IDs are sequential numbers
+        if (themeHue == 360) themeHue = 0;
+        if ((themeHue >= 0) && (themeHue < 360) && ((themeHue % HueRing.hueStepDegrees) == 0)) {
+            themeId = R.style.AppTheme_NoActionBar_000 + (themeHue / HueRing.hueStepDegrees);
+        }
+
+        if (themeId < 0) {
+            activity.setTheme(R.style.AppTheme_NoActionBar);
+            debug("profiles",
+                    String.format(Locale.ENGLISH, "Theme hue %d not supported, using the default",
+                            themeHue));
+        }
+        else {
+            activity.setTheme(themeId);
         }
 
         refreshColors(activity.getTheme());
         }
 
         refreshColors(activity.getTheme());
index 7f8762407f0cee315100c9310d15e26f08497923..e0df401f7fa45cc0481abf000ee7275fb778e434 100644 (file)
@@ -43,7 +43,7 @@
         <item name="table_row_light_bg">#f9f6fe</item>
     </style>
 
         <item name="table_row_light_bg">#f9f6fe</item>
     </style>
 
-    <style name="AppTheme.NoActionBar.0" parent="AppTheme.NoActionBar">
+    <style name="AppTheme.NoActionBar.000" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#ec1717</item>
         <item name="colorPrimaryTransparent">#00ec1717</item>
         <item name="colorAccent">#b00f0f</item>
         <item name="colorPrimary">#ec1717</item>
         <item name="colorPrimaryTransparent">#00ec1717</item>
         <item name="colorAccent">#b00f0f</item>
         <item name="table_row_light_bg">#fef6f6</item>
     </style>
 
         <item name="table_row_light_bg">#fef6f6</item>
     </style>
 
-    <style name="AppTheme.NoActionBar.15" parent="AppTheme.NoActionBar">
+    <style name="AppTheme.NoActionBar.005" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#e92514</item>
+        <item name="colorPrimaryTransparent">#00e92514</item>
+        <item name="colorAccent">#ac1c0e</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fde9e7</item>
+        <item name="table_row_light_bg">#fef6f6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.010" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#e33613</item>
+        <item name="colorPrimaryTransparent">#00e33613</item>
+        <item name="colorAccent">#a7280e</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fdebe7</item>
+        <item name="table_row_light_bg">#fef7f6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.015" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#dd4513</item>
         <item name="colorPrimaryTransparent">#00dd4513</item>
         <item name="colorAccent">#a3330e</item>
         <item name="colorPrimary">#dd4513</item>
         <item name="colorPrimaryTransparent">#00dd4513</item>
         <item name="colorAccent">#a3330e</item>
         <item name="table_row_light_bg">#fef8f6</item>
     </style>
 
         <item name="table_row_light_bg">#fef8f6</item>
     </style>
 
-    <style name="AppTheme.NoActionBar.30" parent="AppTheme.NoActionBar">
+    <style name="AppTheme.NoActionBar.020" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#d75412</item>
+        <item name="colorPrimaryTransparent">#00d75412</item>
+        <item name="colorAccent">#9e3d0d</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fdefe7</item>
+        <item name="table_row_light_bg">#fef8f6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.025" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#d16112</item>
+        <item name="colorPrimaryTransparent">#00d16112</item>
+        <item name="colorAccent">#99470d</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fdf0e7</item>
+        <item name="table_row_light_bg">#fef9f6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.030" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#cb6e11</item>
         <item name="colorPrimaryTransparent">#00cb6e11</item>
         <item name="colorAccent">#94500c</item>
         <item name="colorPrimary">#cb6e11</item>
         <item name="colorPrimaryTransparent">#00cb6e11</item>
         <item name="colorAccent">#94500c</item>
         <item name="table_row_light_bg">#fefaf6</item>
     </style>
 
         <item name="table_row_light_bg">#fefaf6</item>
     </style>
 
-    <style name="AppTheme.NoActionBar.45" parent="AppTheme.NoActionBar">
+    <style name="AppTheme.NoActionBar.035" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#c57a11</item>
+        <item name="colorPrimaryTransparent">#00c57a11</item>
+        <item name="colorAccent">#8f580c</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fdf4e7</item>
+        <item name="table_row_light_bg">#fefbf6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.040" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#be8410</item>
+        <item name="colorPrimaryTransparent">#00be8410</item>
+        <item name="colorAccent">#8a600c</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fdf6e7</item>
+        <item name="table_row_light_bg">#fefbf6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.045" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#b88e0f</item>
         <item name="colorPrimaryTransparent">#00b88e0f</item>
         <item name="colorAccent">#85670b</item>
         <item name="colorPrimary">#b88e0f</item>
         <item name="colorPrimaryTransparent">#00b88e0f</item>
         <item name="colorAccent">#85670b</item>
         <item name="table_row_light_bg">#fefcf6</item>
     </style>
 
         <item name="table_row_light_bg">#fefcf6</item>
     </style>
 
-    <style name="AppTheme.NoActionBar.60" parent="AppTheme.NoActionBar">
+    <style name="AppTheme.NoActionBar.050" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#b2960f</item>
+        <item name="colorPrimaryTransparent">#00b2960f</item>
+        <item name="colorAccent">#806c0b</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fdf9e7</item>
+        <item name="table_row_light_bg">#fefdf6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.055" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#ab9e0e</item>
+        <item name="colorPrimaryTransparent">#00ab9e0e</item>
+        <item name="colorAccent">#7b710a</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fdfbe7</item>
+        <item name="table_row_light_bg">#fefdf6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.060" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#a5a50e</item>
         <item name="colorPrimaryTransparent">#00a5a50e</item>
         <item name="colorAccent">#76760a</item>
         <item name="colorPrimary">#a5a50e</item>
         <item name="colorPrimaryTransparent">#00a5a50e</item>
         <item name="colorAccent">#76760a</item>
         <item name="table_row_light_bg">#fefef6</item>
     </style>
 
         <item name="table_row_light_bg">#fefef6</item>
     </style>
 
-    <style name="AppTheme.NoActionBar.75" parent="AppTheme.NoActionBar">
+    <style name="AppTheme.NoActionBar.065" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#9eab0e</item>
+        <item name="colorPrimaryTransparent">#009eab0e</item>
+        <item name="colorAccent">#717b0a</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fbfde7</item>
+        <item name="table_row_light_bg">#fdfef6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.070" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#96b20f</item>
+        <item name="colorPrimaryTransparent">#0096b20f</item>
+        <item name="colorAccent">#6c800b</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#f9fde7</item>
+        <item name="table_row_light_bg">#fdfef6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.075" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#8eb80f</item>
         <item name="colorPrimaryTransparent">#008eb80f</item>
         <item name="colorAccent">#67850b</item>
         <item name="colorPrimary">#8eb80f</item>
         <item name="colorPrimaryTransparent">#008eb80f</item>
         <item name="colorAccent">#67850b</item>
         <item name="table_row_light_bg">#fcfef6</item>
     </style>
 
         <item name="table_row_light_bg">#fcfef6</item>
     </style>
 
-    <style name="AppTheme.NoActionBar.90" parent="AppTheme.NoActionBar">
+    <style name="AppTheme.NoActionBar.080" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#84be10</item>
+        <item name="colorPrimaryTransparent">#0084be10</item>
+        <item name="colorAccent">#608a0c</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#f6fde7</item>
+        <item name="table_row_light_bg">#fbfef6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.085" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#7ac511</item>
+        <item name="colorPrimaryTransparent">#007ac511</item>
+        <item name="colorAccent">#588f0c</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#f4fde7</item>
+        <item name="table_row_light_bg">#fbfef6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.090" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#6ecb11</item>
         <item name="colorPrimaryTransparent">#006ecb11</item>
         <item name="colorAccent">#50940c</item>
         <item name="colorPrimary">#6ecb11</item>
         <item name="colorPrimaryTransparent">#006ecb11</item>
         <item name="colorAccent">#50940c</item>
         <item name="table_row_light_bg">#fafef6</item>
     </style>
 
         <item name="table_row_light_bg">#fafef6</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.095" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#61d112</item>
+        <item name="colorPrimaryTransparent">#0061d112</item>
+        <item name="colorAccent">#47990d</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#f0fde7</item>
+        <item name="table_row_light_bg">#f9fef6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.100" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#54d712</item>
+        <item name="colorPrimaryTransparent">#0054d712</item>
+        <item name="colorAccent">#3d9e0d</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#effde7</item>
+        <item name="table_row_light_bg">#f8fef6</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.105" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#45dd13</item>
         <item name="colorPrimaryTransparent">#0045dd13</item>
     <style name="AppTheme.NoActionBar.105" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#45dd13</item>
         <item name="colorPrimaryTransparent">#0045dd13</item>
         <item name="table_row_light_bg">#f8fef6</item>
     </style>
 
         <item name="table_row_light_bg">#f8fef6</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.110" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#36e313</item>
+        <item name="colorPrimaryTransparent">#0036e313</item>
+        <item name="colorAccent">#28a70e</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#ebfde7</item>
+        <item name="table_row_light_bg">#f7fef6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.115" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#25e914</item>
+        <item name="colorPrimaryTransparent">#0025e914</item>
+        <item name="colorAccent">#1cac0e</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e9fde7</item>
+        <item name="table_row_light_bg">#f6fef6</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.120" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#17ec17</item>
         <item name="colorPrimaryTransparent">#0017ec17</item>
     <style name="AppTheme.NoActionBar.120" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#17ec17</item>
         <item name="colorPrimaryTransparent">#0017ec17</item>
         <item name="table_row_light_bg">#f6fef6</item>
     </style>
 
         <item name="table_row_light_bg">#f6fef6</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.125" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#1dec2e</item>
+        <item name="colorPrimaryTransparent">#001dec2e</item>
+        <item name="colorAccent">#0fb51d</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7fde9</item>
+        <item name="table_row_light_bg">#f6fef6</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.130" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#22ec44</item>
+        <item name="colorPrimaryTransparent">#0022ec44</item>
+        <item name="colorAccent">#10b92c</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7fdeb</item>
+        <item name="table_row_light_bg">#f6fef7</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.135" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#27ed59</item>
         <item name="colorPrimaryTransparent">#0027ed59</item>
     <style name="AppTheme.NoActionBar.135" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#27ed59</item>
         <item name="colorPrimaryTransparent">#0027ed59</item>
         <item name="table_row_light_bg">#f6fef8</item>
     </style>
 
         <item name="table_row_light_bg">#f6fef8</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.140" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#2ced6d</item>
+        <item name="colorPrimaryTransparent">#002ced6d</item>
+        <item name="colorAccent">#10c14b</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7fdef</item>
+        <item name="table_row_light_bg">#f6fef8</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.145" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#31ee80</item>
+        <item name="colorPrimaryTransparent">#0031ee80</item>
+        <item name="colorAccent">#11c55c</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7fdf0</item>
+        <item name="table_row_light_bg">#f6fef9</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.150" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#36ee92</item>
         <item name="colorPrimaryTransparent">#0036ee92</item>
     <style name="AppTheme.NoActionBar.150" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#36ee92</item>
         <item name="colorPrimaryTransparent">#0036ee92</item>
         <item name="table_row_light_bg">#f6fefa</item>
     </style>
 
         <item name="table_row_light_bg">#f6fefa</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.155" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#3aeea3</item>
+        <item name="colorPrimaryTransparent">#003aeea3</item>
+        <item name="colorAccent">#11cc7e</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7fdf4</item>
+        <item name="table_row_light_bg">#f6fefb</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.160" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#3fefb4</item>
+        <item name="colorPrimaryTransparent">#003fefb4</item>
+        <item name="colorAccent">#11d090</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7fdf6</item>
+        <item name="table_row_light_bg">#f6fefb</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.165" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#43efc4</item>
         <item name="colorPrimaryTransparent">#0043efc4</item>
     <style name="AppTheme.NoActionBar.165" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#43efc4</item>
         <item name="colorPrimaryTransparent">#0043efc4</item>
         <item name="table_row_light_bg">#f6fefc</item>
     </style>
 
         <item name="table_row_light_bg">#f6fefc</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.170" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#47f0d3</item>
+        <item name="colorPrimaryTransparent">#0047f0d3</item>
+        <item name="colorAccent">#12d6b5</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7fdf9</item>
+        <item name="table_row_light_bg">#f6fefd</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.175" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#4af0e2</item>
+        <item name="colorPrimaryTransparent">#004af0e2</item>
+        <item name="colorAccent">#12d9c8</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7fdfb</item>
+        <item name="table_row_light_bg">#f6fefd</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.180" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#4ef0f0</item>
         <item name="colorPrimaryTransparent">#004ef0f0</item>
     <style name="AppTheme.NoActionBar.180" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#4ef0f0</item>
         <item name="colorPrimaryTransparent">#004ef0f0</item>
         <item name="table_row_light_bg">#f6fefe</item>
     </style>
 
         <item name="table_row_light_bg">#f6fefe</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.185" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#51e3f0</item>
+        <item name="colorPrimaryTransparent">#0051e3f0</item>
+        <item name="colorAccent">#13cdde</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7fbfd</item>
+        <item name="table_row_light_bg">#f6fdfe</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.190" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#54d6f1</item>
+        <item name="colorPrimaryTransparent">#0054d6f1</item>
+        <item name="colorAccent">#13bee0</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7f9fd</item>
+        <item name="table_row_light_bg">#f6fdfe</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.195" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#56caf1</item>
         <item name="colorPrimaryTransparent">#0056caf1</item>
     <style name="AppTheme.NoActionBar.195" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#56caf1</item>
         <item name="colorPrimaryTransparent">#0056caf1</item>
         <item name="table_row_light_bg">#f6fcfe</item>
     </style>
 
         <item name="table_row_light_bg">#f6fcfe</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.200" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#58bef1</item>
+        <item name="colorPrimaryTransparent">#0058bef1</item>
+        <item name="colorAccent">#139ee4</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7f6fd</item>
+        <item name="table_row_light_bg">#f6fbfe</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.205" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#5bb2f1</item>
+        <item name="colorPrimaryTransparent">#005bb2f1</item>
+        <item name="colorAccent">#138ee6</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7f4fd</item>
+        <item name="table_row_light_bg">#f6fbfe</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.210" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#5ca7f1</item>
         <item name="colorPrimaryTransparent">#005ca7f1</item>
     <style name="AppTheme.NoActionBar.210" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#5ca7f1</item>
         <item name="colorPrimaryTransparent">#005ca7f1</item>
         <item name="table_row_light_bg">#f6fafe</item>
     </style>
 
         <item name="table_row_light_bg">#f6fafe</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.215" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#5e9bf1</item>
+        <item name="colorPrimaryTransparent">#005e9bf1</item>
+        <item name="colorAccent">#146ce8</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7f0fd</item>
+        <item name="table_row_light_bg">#f6f9fe</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.220" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#5f90f2</item>
+        <item name="colorPrimaryTransparent">#005f90f2</item>
+        <item name="colorAccent">#145be9</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7effd</item>
+        <item name="table_row_light_bg">#f6f8fe</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.225" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#6085f2</item>
         <item name="colorPrimaryTransparent">#006085f2</item>
     <style name="AppTheme.NoActionBar.225" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#6085f2</item>
         <item name="colorPrimaryTransparent">#006085f2</item>
         <item name="table_row_light_bg">#f6f8fe</item>
     </style>
 
         <item name="table_row_light_bg">#f6f8fe</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.230" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#6179f2</item>
+        <item name="colorPrimaryTransparent">#006179f2</item>
+        <item name="colorAccent">#1438eb</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7ebfd</item>
+        <item name="table_row_light_bg">#f6f7fe</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.235" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#616df2</item>
+        <item name="colorPrimaryTransparent">#00616df2</item>
+        <item name="colorAccent">#1426eb</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e7e9fd</item>
+        <item name="table_row_light_bg">#f6f6fe</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.240" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#6161f2</item>
         <item name="colorPrimaryTransparent">#006161f2</item>
     <style name="AppTheme.NoActionBar.240" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#6161f2</item>
         <item name="colorPrimaryTransparent">#006161f2</item>
         <item name="table_row_light_bg">#f6f6fe</item>
     </style>
 
         <item name="table_row_light_bg">#f6f6fe</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.245" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#6d61f2</item>
+        <item name="colorPrimaryTransparent">#006d61f2</item>
+        <item name="colorAccent">#2614eb</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#e9e7fd</item>
+        <item name="table_row_light_bg">#f6f6fe</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.250" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#7961f2</item>
+        <item name="colorPrimaryTransparent">#007961f2</item>
+        <item name="colorAccent">#3814eb</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#ebe7fd</item>
+        <item name="table_row_light_bg">#f7f6fe</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.255" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#8560f2</item>
         <item name="colorPrimaryTransparent">#008560f2</item>
     <style name="AppTheme.NoActionBar.255" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#8560f2</item>
         <item name="colorPrimaryTransparent">#008560f2</item>
         <item name="table_row_light_bg">#f8f6fe</item>
     </style>
 
         <item name="table_row_light_bg">#f8f6fe</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.260" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#905ff2</item>
+        <item name="colorPrimaryTransparent">#00905ff2</item>
+        <item name="colorAccent">#5b14e9</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#efe7fd</item>
+        <item name="table_row_light_bg">#f8f6fe</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.265" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#9b5ef1</item>
+        <item name="colorPrimaryTransparent">#009b5ef1</item>
+        <item name="colorAccent">#6c14e8</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#f0e7fd</item>
+        <item name="table_row_light_bg">#f9f6fe</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.270" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#a75cf1</item>
         <item name="colorPrimaryTransparent">#00a75cf1</item>
     <style name="AppTheme.NoActionBar.270" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#a75cf1</item>
         <item name="colorPrimaryTransparent">#00a75cf1</item>
         <item name="table_row_light_bg">#faf6fe</item>
     </style>
 
         <item name="table_row_light_bg">#faf6fe</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.275" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#b25bf1</item>
+        <item name="colorPrimaryTransparent">#00b25bf1</item>
+        <item name="colorAccent">#8e13e6</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#f4e7fd</item>
+        <item name="table_row_light_bg">#fbf6fe</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.280" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#be58f1</item>
+        <item name="colorPrimaryTransparent">#00be58f1</item>
+        <item name="colorAccent">#9e13e4</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#f6e7fd</item>
+        <item name="table_row_light_bg">#fbf6fe</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.285" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#ca56f1</item>
         <item name="colorPrimaryTransparent">#00ca56f1</item>
     <style name="AppTheme.NoActionBar.285" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#ca56f1</item>
         <item name="colorPrimaryTransparent">#00ca56f1</item>
         <item name="table_row_light_bg">#fcf6fe</item>
     </style>
 
         <item name="table_row_light_bg">#fcf6fe</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.290" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#d654f1</item>
+        <item name="colorPrimaryTransparent">#00d654f1</item>
+        <item name="colorAccent">#be13e0</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#f9e7fd</item>
+        <item name="table_row_light_bg">#fdf6fe</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.295" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#e351f0</item>
+        <item name="colorPrimaryTransparent">#00e351f0</item>
+        <item name="colorAccent">#cd13de</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fbe7fd</item>
+        <item name="table_row_light_bg">#fdf6fe</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.300" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#f04ef0</item>
         <item name="colorPrimaryTransparent">#00f04ef0</item>
     <style name="AppTheme.NoActionBar.300" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#f04ef0</item>
         <item name="colorPrimaryTransparent">#00f04ef0</item>
         <item name="table_row_light_bg">#fef6fe</item>
     </style>
 
         <item name="table_row_light_bg">#fef6fe</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.305" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#f04ae2</item>
+        <item name="colorPrimaryTransparent">#00f04ae2</item>
+        <item name="colorAccent">#d912c8</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fde7fb</item>
+        <item name="table_row_light_bg">#fef6fd</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.310" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#f047d3</item>
+        <item name="colorPrimaryTransparent">#00f047d3</item>
+        <item name="colorAccent">#d612b5</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fde7f9</item>
+        <item name="table_row_light_bg">#fef6fd</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.315" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#ef43c4</item>
         <item name="colorPrimaryTransparent">#00ef43c4</item>
     <style name="AppTheme.NoActionBar.315" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#ef43c4</item>
         <item name="colorPrimaryTransparent">#00ef43c4</item>
         <item name="table_row_light_bg">#fef6fc</item>
     </style>
 
         <item name="table_row_light_bg">#fef6fc</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.320" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#ef3fb4</item>
+        <item name="colorPrimaryTransparent">#00ef3fb4</item>
+        <item name="colorAccent">#d01190</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fde7f6</item>
+        <item name="table_row_light_bg">#fef6fb</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.325" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#ee3aa3</item>
+        <item name="colorPrimaryTransparent">#00ee3aa3</item>
+        <item name="colorAccent">#cc117e</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fde7f4</item>
+        <item name="table_row_light_bg">#fef6fb</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.330" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#ee3692</item>
         <item name="colorPrimaryTransparent">#00ee3692</item>
     <style name="AppTheme.NoActionBar.330" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#ee3692</item>
         <item name="colorPrimaryTransparent">#00ee3692</item>
         <item name="table_row_light_bg">#fef6fa</item>
     </style>
 
         <item name="table_row_light_bg">#fef6fa</item>
     </style>
 
+    <style name="AppTheme.NoActionBar.335" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#ee3180</item>
+        <item name="colorPrimaryTransparent">#00ee3180</item>
+        <item name="colorAccent">#c5115c</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fde7f0</item>
+        <item name="table_row_light_bg">#fef6f9</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.340" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#ed2c6d</item>
+        <item name="colorPrimaryTransparent">#00ed2c6d</item>
+        <item name="colorAccent">#c1104b</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fde7ef</item>
+        <item name="table_row_light_bg">#fef6f8</item>
+    </style>
+
     <style name="AppTheme.NoActionBar.345" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#ed2759</item>
         <item name="colorPrimaryTransparent">#00ed2759</item>
     <style name="AppTheme.NoActionBar.345" parent="AppTheme.NoActionBar">
         <item name="colorPrimary">#ed2759</item>
         <item name="colorPrimaryTransparent">#00ed2759</item>
         <item name="table_row_dark_bg">#fde7ed</item>
         <item name="table_row_light_bg">#fef6f8</item>
     </style>
         <item name="table_row_dark_bg">#fde7ed</item>
         <item name="table_row_light_bg">#fef6f8</item>
     </style>
+
+    <style name="AppTheme.NoActionBar.350" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#ec2244</item>
+        <item name="colorPrimaryTransparent">#00ec2244</item>
+        <item name="colorAccent">#b9102c</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fde7eb</item>
+        <item name="table_row_light_bg">#fef6f7</item>
+    </style>
+
+    <style name="AppTheme.NoActionBar.355" parent="AppTheme.NoActionBar">
+        <item name="colorPrimary">#ec1d2e</item>
+        <item name="colorPrimaryTransparent">#00ec1d2e</item>
+        <item name="colorAccent">#b50f1d</item>
+        <item name="drawer_background">#ffffffff</item>
+        <item name="table_row_dark_bg">#fde7e9</item>
+        <item name="table_row_light_bg">#fef6f6</item>
+    </style>
     <!-- theme list end -->
 
     <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
     <!-- theme list end -->
 
     <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
index d158d8bf370e227e5b9894c9a39b8c02558006dd..60b01a6325a7cd849135051c0c9894fba4986694 100644 (file)
@@ -140,11 +140,11 @@ warn sprintf( 's%1.3f, l%1.3f -> %s',
 
 my $baseTheme = "AppTheme.NoActionBar";
 
 
 my $baseTheme = "AppTheme.NoActionBar";
 
-use constant STEP_DEGREES => 15;
+use constant STEP_DEGREES => 5;
 
 # # hsb
 # for( my $hue = 0; $hue < 360; $hue += STEP_DEGREES ) {
 
 # # hsb
 # for( my $hue = 0; $hue < 360; $hue += STEP_DEGREES ) {
-#      printf "<style name=\"%s.%d\" parent=\"%s\">\n",
+#      printf "<style name=\"%s.%03d\" parent=\"%s\">\n",
 #              $baseTheme, $hue, $baseTheme;
 #      printf "  <item name=\"colorPrimary\">#%s</item>\n",
 #                      hsvHex($hue/360.0, 0.61, 0.95);
 #              $baseTheme, $hue, $baseTheme;
 #      printf "  <item name=\"colorPrimary\">#%s</item>\n",
 #                      hsvHex($hue/360.0, 0.61, 0.95);
@@ -198,7 +198,7 @@ sub hslStyleForHue {
        my $indent = "$baseIndent    ";
 
        if ($base) {
        my $indent = "$baseIndent    ";
 
        if ($base) {
-               $result .= sprintf "$baseIndent<style name=\"%s.%d\" parent=\"%s\">\n",
+               $result .= sprintf "$baseIndent<style name=\"%s.%03d\" parent=\"%s\">\n",
                         $baseTheme, $hue, $baseTheme;
         }
         else {
                         $baseTheme, $hue, $baseTheme;
         }
         else {