diff --git a/oeffi/AndroidManifest.xml b/oeffi/AndroidManifest.xml
index e152d9e..f0437ba 100644
--- a/oeffi/AndroidManifest.xml
+++ b/oeffi/AndroidManifest.xml
@@ -63,7 +63,7 @@
android:icon="@mipmap/ic_oeffi_stations_color_48dp"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
- android:theme="@style/My.Theme.Light">
+ android:theme="@style/My.Theme">
+ android:taskAffinity="de.schildbach.oeffi.directions" />
-
-
-
-
-
-
-
-
-
diff --git a/oeffi/res/drawable/list_divider.xml b/oeffi/res/drawable/list_divider.xml
new file mode 100644
index 0000000..65f7aaf
--- /dev/null
+++ b/oeffi/res/drawable/list_divider.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/oeffi/res/drawable/list_entry_background.xml b/oeffi/res/drawable/list_entry_background.xml
index 7860976..bb3c6f0 100644
--- a/oeffi/res/drawable/list_entry_background.xml
+++ b/oeffi/res/drawable/list_entry_background.xml
@@ -5,14 +5,14 @@
-
-
+
-
-
+
diff --git a/oeffi/res/layout/directions_content.xml b/oeffi/res/layout/directions_content.xml
index 7167165..ac7a732 100644
--- a/oeffi/res/layout/directions_content.xml
+++ b/oeffi/res/layout/directions_content.xml
@@ -87,7 +87,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
- android:background="@android:color/white"
+ android:background="@color/bg_level1"
android:elevation="@dimen/elevation_panel">
diff --git a/oeffi/res/layout/directions_location_dropdown_entry.xml b/oeffi/res/layout/directions_location_dropdown_entry.xml
index 5061a6f..090a74f 100644
--- a/oeffi/res/layout/directions_location_dropdown_entry.xml
+++ b/oeffi/res/layout/directions_location_dropdown_entry.xml
@@ -4,7 +4,9 @@
style="?android:attr/dropDownItemStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:background="@color/bg_level0"
android:drawablePadding="@dimen/list_entry_padding_horizontal_lax"
+ android:drawableTint="@color/fg_less_significant"
android:minHeight="52dp"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax"
android:textSize="@dimen/font_size_large" />
diff --git a/oeffi/res/layout/directions_map_pin.xml b/oeffi/res/layout/directions_map_pin.xml
index d20b26c..eb26496 100644
--- a/oeffi/res/layout/directions_map_pin.xml
+++ b/oeffi/res/layout/directions_map_pin.xml
@@ -17,7 +17,8 @@
android:gravity="left"
android:paddingBottom="@dimen/list_entry_padding_vertical"
android:paddingLeft="@dimen/list_entry_padding_horizontal"
- android:paddingRight="@dimen/list_entry_padding_horizontal" />
+ android:paddingRight="@dimen/list_entry_padding_horizontal"
+ android:textColor="@color/fg_significant_on_light" />
+ android:text="@string/directions_map_pin_button_from"
+ android:textColor="@color/fg_significant_on_light" />
+ android:text="@string/directions_map_pin_button_to"
+ android:textColor="@color/fg_significant_on_light" />
diff --git a/oeffi/res/layout/directions_query_history_entry.xml b/oeffi/res/layout/directions_query_history_entry.xml
index 0c82ef5..7979cb1 100644
--- a/oeffi/res/layout/directions_query_history_entry.xml
+++ b/oeffi/res/layout/directions_query_history_entry.xml
@@ -27,6 +27,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawablePadding="@dimen/list_entry_padding_horizontal_lax"
+ android:drawableTint="@color/fg_less_significant"
android:gravity="center_vertical"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax"
android:paddingRight="@dimen/list_entry_padding_horizontal_cram"
@@ -37,6 +38,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawablePadding="@dimen/list_entry_padding_horizontal_lax"
+ android:drawableTint="@color/fg_less_significant"
android:gravity="center_vertical"
android:paddingBottom="@dimen/list_entry_padding_vertical_verylax"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax"
@@ -51,6 +53,7 @@
android:layout_weight="2"
android:drawableLeft="@drawable/ic_beenhere_grey600_24dp"
android:drawablePadding="@dimen/list_entry_padding_horizontal_lax"
+ android:drawableTint="@color/fg_less_significant"
android:gravity="left|center_vertical"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax"
android:paddingRight="@dimen/list_entry_padding_horizontal_cram" />
diff --git a/oeffi/res/layout/directions_trip_details_content.xml b/oeffi/res/layout/directions_trip_details_content.xml
index 301b290..589eb54 100644
--- a/oeffi/res/layout/directions_trip_details_content.xml
+++ b/oeffi/res/layout/directions_trip_details_content.xml
@@ -30,14 +30,14 @@
android:id="@+id/directions_trip_details_legs_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:divider="?android:attr/listDivider"
+ android:divider="@drawable/list_divider"
android:orientation="vertical"
android:showDividers="middle">
diff --git a/oeffi/res/layout/directions_trip_details_individual_entry.xml b/oeffi/res/layout/directions_trip_details_individual_entry.xml
index d68fcb2..b4d3767 100644
--- a/oeffi/res/layout/directions_trip_details_individual_entry.xml
+++ b/oeffi/res/layout/directions_trip_details_individual_entry.xml
@@ -22,6 +22,7 @@
android:layout_width="@dimen/action_bar_button_width"
android:layout_height="match_parent"
android:scaleType="center"
- android:src="@drawable/ic_map_black_24dp" />
+ android:src="@drawable/ic_map_black_24dp"
+ android:tint="@color/fg_less_significant" />
diff --git a/oeffi/res/layout/directions_trip_details_public_entry.xml b/oeffi/res/layout/directions_trip_details_public_entry.xml
index f1938bb..7730687 100644
--- a/oeffi/res/layout/directions_trip_details_public_entry.xml
+++ b/oeffi/res/layout/directions_trip_details_public_entry.xml
@@ -72,7 +72,8 @@
android:layout_width="@dimen/action_bar_button_width"
android:layout_height="match_parent"
android:scaleType="center"
- android:src="@drawable/ic_expand_black_24dp" />
+ android:src="@drawable/ic_expand_black_24dp"
+ android:tint="@color/fg_less_significant" />
@@ -37,8 +35,6 @@
android:layout_gravity="bottom|right"
android:layout_margin="4dp"
android:gravity="right"
- android:shadowColor="#000"
- android:shadowRadius="2"
android:text="@string/disclaimer_responsibility_2line"
android:textSize="@dimen/font_size_disclaimer" />
diff --git a/oeffi/res/layout/navigation_drawer.xml b/oeffi/res/layout/navigation_drawer.xml
index d7ad681..be6217f 100644
--- a/oeffi/res/layout/navigation_drawer.xml
+++ b/oeffi/res/layout/navigation_drawer.xml
@@ -4,7 +4,7 @@
android:layout_width="@dimen/layout_navigation_drawer_width"
android:layout_height="match_parent"
android:layout_gravity="left"
- android:background="@android:color/white"
+ android:background="@color/bg_level0"
android:orientation="vertical">
diff --git a/oeffi/res/layout/plans_picker_content.xml b/oeffi/res/layout/plans_picker_content.xml
index 883a551..7ace335 100644
--- a/oeffi/res/layout/plans_picker_content.xml
+++ b/oeffi/res/layout/plans_picker_content.xml
@@ -47,6 +47,7 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableLeft="@drawable/ic_search_grey600_24dp"
+ android:drawableTint="@color/fg_significant"
android:drawablePadding="@dimen/list_entry_padding_horizontal"
android:gravity="left|center_vertical"
android:paddingBottom="@dimen/list_entry_padding_vertical"
@@ -61,7 +62,8 @@
android:layout_width="36dp"
android:layout_height="match_parent"
android:gravity="right|center_vertical"
- android:src="@drawable/ic_clear_black_24dp" />
+ android:src="@drawable/ic_clear_black_24dp"
+ android:tint="@color/fg_significant" />
+ android:layout_height="match_parent"
+ android:alpha="@dimen/alpha_bright_white" />
+ android:src="@drawable/ic_offline_pin_grey600_24dp"
+ android:tint="@color/fg_less_significant" />
+ android:textColor="@color/fg_less_significant" />
+ android:textColor="@color/fg_less_significant" />
+ android:src="@drawable/ic_clear_black_24dp"
+ android:tint="@color/fg_significant" />
diff --git a/oeffi/res/layout/stations_station_details_content.xml b/oeffi/res/layout/stations_station_details_content.xml
index 4b1c95a..57aaef7 100644
--- a/oeffi/res/layout/stations_station_details_content.xml
+++ b/oeffi/res/layout/stations_station_details_content.xml
@@ -48,7 +48,6 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_margin="4dp"
- android:background="@drawable/disclaimer_background"
android:baselineAligned="false"
android:orientation="horizontal">
diff --git a/oeffi/res/layout/stations_station_details_header.xml b/oeffi/res/layout/stations_station_details_header.xml
index bbd9521..2bf08e4 100644
--- a/oeffi/res/layout/stations_station_details_header.xml
+++ b/oeffi/res/layout/stations_station_details_header.xml
@@ -3,7 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="?android:attr/listDivider"
+ android:background="@color/bg_divider"
android:orientation="vertical"
android:paddingBottom="@dimen/list_entry_padding_vertical_lax"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax"
diff --git a/oeffi/res/values-night/colors.xml b/oeffi/res/values-night/colors.xml
new file mode 100644
index 0000000..7bd043d
--- /dev/null
+++ b/oeffi/res/values-night/colors.xml
@@ -0,0 +1,28 @@
+
+
+
+
+ #ffffff
+ #aaaaaa
+ #888888
+ #ff9966
+ #ff6666
+ #000000
+
+
+ #222222
+ #333333
+ #444444
+ #444444
+ #444400
+ #114411
+ #555555
+ #284028
+ #444444
+ #444444
+ #ffff00
+ #bbbbbb
+
+ - 0.7
+
+
diff --git a/oeffi/res/values-night/styles.xml b/oeffi/res/values-night/styles.xml
new file mode 100644
index 0000000..91cd0e8
--- /dev/null
+++ b/oeffi/res/values-night/styles.xml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/oeffi/res/values/colors.xml b/oeffi/res/values/colors.xml
index ffe4bf5..fed4108 100644
--- a/oeffi/res/values/colors.xml
+++ b/oeffi/res/values/colors.xml
@@ -1,21 +1,30 @@
- #757575
-
#000000
#999999
#bbbbbb
#dd9055
#aa0000
+ #ffffff
#ffffff
+ #000000
+ #f7f7f7
+ #ffffff
+ #dddddd
#555555
#777700
#227722
- #114411
#cccccc
+ #ffcfffaf
+ #cccccc
+ #cccccc
+ #eebb00
+ #757575
+
+ - 1
diff --git a/oeffi/res/values/styles.xml b/oeffi/res/values/styles.xml
index 8cbc3e7..12f42ab 100644
--- a/oeffi/res/values/styles.xml
+++ b/oeffi/res/values/styles.xml
@@ -3,8 +3,8 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
-
-
-
-
+
+