summaryrefslogtreecommitdiff
path: root/main/src/ui/res
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2019-09-04 20:28:32 +0300
committerArne Schwabe <arne@rfc2549.org>2019-09-04 20:30:46 +0300
commitb49591c377bb2e8c2adb0789a2bf1863b5d3d576 (patch)
tree568e36f88c49804f67296e16385674d834d81f7f /main/src/ui/res
parent10d7110c352072a98edaa827800939aa16e85f6d (diff)
Implement dark mode
Diffstat (limited to 'main/src/ui/res')
-rw-r--r--main/src/ui/res/layout/log_fragment.xml2
-rw-r--r--main/src/ui/res/values-night-v21/refs.xml9
-rw-r--r--main/src/ui/res/values-v21/styles.xml29
3 files changed, 9 insertions, 31 deletions
diff --git a/main/src/ui/res/layout/log_fragment.xml b/main/src/ui/res/layout/log_fragment.xml
index ab070117..abfe7894 100644
--- a/main/src/ui/res/layout/log_fragment.xml
+++ b/main/src/ui/res/layout/log_fragment.xml
@@ -11,7 +11,6 @@
android:orientation="vertical">
<LinearLayout
- android:background="@drawable/white_rect"
android:elevation="1dp"
android:orientation="vertical"
android:layout_height="wrap_content"
@@ -23,7 +22,6 @@
android:text="@string/speed_waiting"
android:singleLine="true"
android:id="@+id/speed"
- tools:ignore="InconsistentLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
diff --git a/main/src/ui/res/values-night-v21/refs.xml b/main/src/ui/res/values-night-v21/refs.xml
new file mode 100644
index 00000000..bc498d41
--- /dev/null
+++ b/main/src/ui/res/values-night-v21/refs.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (c) 2012-2016 Arne Schwabe
+ ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
+ -->
+
+<resources>
+ <drawable name="vpn_item_edit">@drawable/ic_edit_white_24dp</drawable>
+</resources> \ No newline at end of file
diff --git a/main/src/ui/res/values-v21/styles.xml b/main/src/ui/res/values-v21/styles.xml
deleted file mode 100644
index fa27ebe8..00000000
--- a/main/src/ui/res/values-v21/styles.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- ~ Copyright (c) 2012-2016 Arne Schwabe
- ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
- -->
-
-<resources>
- <!-- http://www.google.de/design/spec/style/color.html#color-color-palette -->
- <style name="blinkt.baseTheme" parent="android:Theme.Material.Light.DarkActionBar">
- <item name="android:colorPrimary">@color/primary</item>
- <item name="android:colorPrimaryDark">@color/primary_dark</item>
- <item name="android:colorAccent">@color/accent</item>
- <item name="android:alertDialogTheme">@style/blinkt.alertDialog</item>
- </style>
-
- <style name="blinkt.dialog" parent="android:Theme.Material.Light.Dialog">
- <item name="android:colorPrimary">@color/primary</item>
- <item name="android:colorPrimaryDark">@color/primary_dark</item>
- <item name="android:colorAccent">@color/accent</item>
- <item name="android:alertDialogTheme">@style/blinkt.alertDialog</item>
- </style>
-
- <style name="blinkt.alertDialog" parent="android:Theme.Material.Light.Dialog.Alert">
- <item name="android:colorPrimary">@color/primary</item>
- <item name="android:colorPrimaryDark">@color/primary_dark</item>
- <item name="android:colorAccent">@color/accent</item>
- </style>
-
-</resources>