summaryrefslogtreecommitdiff
path: root/navit/android/res
diff options
context:
space:
mode:
authorPierre Grandin <grandinp@altern.org>2016-12-01 19:23:13 +0000
committerPierre Grandin <grandinp@altern.org>2016-12-01 19:23:13 +0000
commit5030d911084584f9b37aeaa916ab43130044edbf (patch)
tree0f0e400aa2c575c3fcdfcceaa6012d2f760e525e /navit/android/res
parent449e5530c4ee68f77691c811f0670cf90e9e58a4 (diff)
parent59bbe485ba74a6df5ec944275ae28fc1bd98981e (diff)
downloadnavit-trac/1341.tar.gz
Merge branch 'trunk' into trac/1341trac/1341
Conflicts: navit/Makefile.am navit/xpm/Makefile.am po/Makefile.am
Diffstat (limited to 'navit/android/res')
-rw-r--r--navit/android/res/drawable-hdpi/ic_notify.pngbin0 -> 634 bytes
-rw-r--r--navit/android/res/drawable-hdpi/icon.pngbin6054 -> 5949 bytes
-rw-r--r--navit/android/res/drawable-ldpi/ic_notify.pngbin0 -> 370 bytes
-rw-r--r--navit/android/res/drawable-ldpi/icon.pngbin1966 -> 2208 bytes
-rw-r--r--navit/android/res/drawable-mdpi/ic_notify.pngbin0 -> 462 bytes
-rw-r--r--navit/android/res/drawable-mdpi/icon.pngbin3595 -> 3353 bytes
-rw-r--r--navit/android/res/drawable-xhdpi/ic_notify.pngbin0 -> 832 bytes
-rw-r--r--navit/android/res/drawable-xhdpi/icon.pngbin0 -> 8858 bytes
-rw-r--r--navit/android/res/drawable-xxhdpi/ic_notify.pngbin0 -> 1216 bytes
-rw-r--r--navit/android/res/drawable-xxhdpi/icon.pngbin0 -> 15235 bytes
-rw-r--r--navit/android/res/values-v19/styles.xml31
-rw-r--r--navit/android/res/values-v21/styles.xml46
-rw-r--r--navit/android/res/values/styles.xml42
13 files changed, 119 insertions, 0 deletions
diff --git a/navit/android/res/drawable-hdpi/ic_notify.png b/navit/android/res/drawable-hdpi/ic_notify.png
new file mode 100644
index 000000000..7516b2fbd
--- /dev/null
+++ b/navit/android/res/drawable-hdpi/ic_notify.png
Binary files differ
diff --git a/navit/android/res/drawable-hdpi/icon.png b/navit/android/res/drawable-hdpi/icon.png
index 3b01b5c3d..311c57b59 100644
--- a/navit/android/res/drawable-hdpi/icon.png
+++ b/navit/android/res/drawable-hdpi/icon.png
Binary files differ
diff --git a/navit/android/res/drawable-ldpi/ic_notify.png b/navit/android/res/drawable-ldpi/ic_notify.png
new file mode 100644
index 000000000..010d55fb3
--- /dev/null
+++ b/navit/android/res/drawable-ldpi/ic_notify.png
Binary files differ
diff --git a/navit/android/res/drawable-ldpi/icon.png b/navit/android/res/drawable-ldpi/icon.png
index b72d1e40b..da2553687 100644
--- a/navit/android/res/drawable-ldpi/icon.png
+++ b/navit/android/res/drawable-ldpi/icon.png
Binary files differ
diff --git a/navit/android/res/drawable-mdpi/ic_notify.png b/navit/android/res/drawable-mdpi/ic_notify.png
new file mode 100644
index 000000000..d6de8d53f
--- /dev/null
+++ b/navit/android/res/drawable-mdpi/ic_notify.png
Binary files differ
diff --git a/navit/android/res/drawable-mdpi/icon.png b/navit/android/res/drawable-mdpi/icon.png
index 33bbab7f6..f8f68e8bc 100644
--- a/navit/android/res/drawable-mdpi/icon.png
+++ b/navit/android/res/drawable-mdpi/icon.png
Binary files differ
diff --git a/navit/android/res/drawable-xhdpi/ic_notify.png b/navit/android/res/drawable-xhdpi/ic_notify.png
new file mode 100644
index 000000000..72371c974
--- /dev/null
+++ b/navit/android/res/drawable-xhdpi/ic_notify.png
Binary files differ
diff --git a/navit/android/res/drawable-xhdpi/icon.png b/navit/android/res/drawable-xhdpi/icon.png
new file mode 100644
index 000000000..649fb32d4
--- /dev/null
+++ b/navit/android/res/drawable-xhdpi/icon.png
Binary files differ
diff --git a/navit/android/res/drawable-xxhdpi/ic_notify.png b/navit/android/res/drawable-xxhdpi/ic_notify.png
new file mode 100644
index 000000000..d47a41154
--- /dev/null
+++ b/navit/android/res/drawable-xxhdpi/ic_notify.png
Binary files differ
diff --git a/navit/android/res/drawable-xxhdpi/icon.png b/navit/android/res/drawable-xxhdpi/icon.png
new file mode 100644
index 000000000..398945c23
--- /dev/null
+++ b/navit/android/res/drawable-xxhdpi/icon.png
Binary files differ
diff --git a/navit/android/res/values-v19/styles.xml b/navit/android/res/values-v19/styles.xml
new file mode 100644
index 000000000..b3ea5c14f
--- /dev/null
+++ b/navit/android/res/values-v19/styles.xml
@@ -0,0 +1,31 @@
+<resources>
+
+ <!--
+ Base application theme for API 19+. This theme completely replaces
+ NavitBaseTheme from BOTH res/values/styles.xml and
+ res/values-v19/styles.xml on API 19+ devices.
+ -->
+ <style name="NavitBaseTheme" parent="android:Theme.Holo">
+
+ <!-- Main theme colors -->
+ <!-- your app branding color for the app bar -->
+ <item name="android:colorPrimary">@color/navitYellow500</item>
+ <!-- darker variant for the status bar and contextual app bars -->
+ <item name="android:colorPrimaryDark">@color/navitYellow700</item>
+ <!-- theme UI controls like checkboxes and text fields -->
+ <item name="android:colorAccent">@color/navitBlue500</item>
+ </style>
+
+ <!--
+ Main Activity theme for API 19+. This theme completely replaces
+ NavitTheme from BOTH res/values/styles.xml and
+ res/values-v19/styles.xml on API 19+ devices.
+ -->
+ <style name="NavitTheme" parent="NavitBaseTheme">
+
+ <!-- API 19 theme customizations can go here. -->
+ <item name="android:windowTranslucentNavigation">true</item>
+ <item name="android:windowTranslucentStatus">true</item>
+ </style>
+
+</resources> \ No newline at end of file
diff --git a/navit/android/res/values-v21/styles.xml b/navit/android/res/values-v21/styles.xml
new file mode 100644
index 000000000..a1d66bb3d
--- /dev/null
+++ b/navit/android/res/values-v21/styles.xml
@@ -0,0 +1,46 @@
+<resources>
+
+ <!--
+ Base application theme for API 21+. This theme completely replaces
+ NavitBaseTheme from BOTH res/values/styles.xml and
+ res/values-v.../styles.xml on API 21+ devices.
+ -->
+ <style name="NavitBaseTheme" parent="android:Theme.Material">
+
+ <!-- Main theme colors -->
+ <!-- your app branding color for the app bar -->
+ <item name="android:colorPrimary">@color/navitYellow500</item>
+ <!-- darker variant for the status bar and contextual app bars -->
+ <item name="android:colorPrimaryDark">@color/navitYellow700</item>
+ <!-- theme UI controls like checkboxes and text fields -->
+ <item name="android:colorAccent">@color/navitBlue500</item>
+ </style>
+
+ <!--
+ Main Activity theme for API 21+. This theme completely replaces
+ NavitTheme from BOTH res/values/styles.xml and
+ res/values-v21/styles.xml on API 21+ devices.
+ -->
+ <style name="NavitTheme" parent="NavitBaseTheme">
+
+ <!-- API 21 theme customizations can go here. -->
+
+ <!--
+ Don't use translucent system bars on API 21 as they are drawn with a semitransparent
+ black background which can't be changed.
+ -->
+ <item name="android:windowTranslucentNavigation">false</item>
+ <item name="android:windowTranslucentStatus">false</item>
+
+ <!--
+ We could set any semi-transparent color here (or change it in code), but this would not
+ be available on API 19/20. Simply specifying full transparency allows us to implement a
+ separate mechanism that will work on all versions.
+ -->
+ <item name="android:navigationBarColor">@android:color/transparent</item>
+ <item name="android:statusBarColor">@android:color/transparent</item>
+
+ <item name="android:windowDrawsSystemBarBackgrounds">true</item>
+ </style>
+
+</resources> \ No newline at end of file
diff --git a/navit/android/res/values/styles.xml b/navit/android/res/values/styles.xml
new file mode 100644
index 000000000..91094e222
--- /dev/null
+++ b/navit/android/res/values/styles.xml
@@ -0,0 +1,42 @@
+<resources>
+
+ <!--
+ Base application theme, dependent on API level. This theme is replaced
+ by NavitBaseTheme from res/values-vXX/styles.xml on newer devices.
+ -->
+ <style name="NavitBaseTheme" parent="android:Theme.Holo">
+ <!--
+ Theme customizations available in newer API levels can go in
+ res/values-vXX/styles.xml, while customizations related to
+ backward-compatibility can go here.
+ -->
+ </style>
+
+ <!-- Theme for Navit's main Activity. -->
+ <style name="NavitTheme" parent="NavitBaseTheme">
+ <!-- All customizations that are NOT specific to a particular API-level can go here. -->
+ </style>
+
+ <!-- TODO complete list of shades for both colors -->
+ <!--
+ Primary color is derived average of icon colors (500 in Android parlance):
+ 213 164 19 #d5a411 hsl 45 92 84
+
+ Dark color is normally the 600 color (i.e. slightly darker than 500)
+ 209 155 19 #d19b13 hsl 43 91 82
+ -->
+
+
+ <!-- Yellow from Navit icon background (300 and 700 are the extremes of the gradient, 500 is the average, 900 is the line color) -->
+ <color name="navitYellow300">#e9cb14</color>
+ <color name="navitYellow500">#d5a411</color>
+ <!-- <color name="navitYellow600">#d19b13</color> -->
+ <color name="navitYellow700">#c17d11</color>
+ <color name="navitYellow900">#43350f</color>
+
+ <!-- Blue from arrow in Navit icon (500 is the midpoint of the gradient, 300 is the end, 900 is the line color) -->
+ <color name="navitBlue300">#329eff</color>
+ <color name="navitBlue500">#1a6cb6</color>
+ <color name="navitBlue900">#1f3157</color>
+
+</resources> \ No newline at end of file