D11694: Add a dark theme
Nicolas Fella
noreply at phabricator.kde.org
Sun Apr 15 10:16:17 UTC 2018
nicolasfella added a comment.
My suggestion:
F5808590: photo5375474608775473493.jpg <https://phabricator.kde.org/F5808590>
F5808592: photo5375474608775473499.jpg <https://phabricator.kde.org/F5808592>
F5808594: photo5375474608775473500.jpg <https://phabricator.kde.org/F5808594>
With this patch
diff --git a/res/drawable/state_list_drawer_background_dark.xml b/res/drawable/state_list_drawer_background_dark.xml
index 0ff668f..bc85bfd 100644
- a/res/drawable/state_list_drawer_background_dark.xml
+++ b/res/drawable/state_list_drawer_background_dark.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:drawable="@color/primary" android:state_checked="true" />
+ <item android:drawable="@color/accent" android:state_checked="true" />
<item android:drawable="@android:color/black" android:state_checked="false" />
</selector>
diff --git a/res/layout-v14/nav_dark_mode_switch.xml b/res/layout-v14/nav_dark_mode_switch.xml
index 8d5b590..a521b0c 100644
- a/res/layout-v14/nav_dark_mode_switch.xml
+++ b/res/layout-v14/nav_dark_mode_switch.xml
@@ -12,7 +12,6 @@
android:paddingStart="16dp"
android:paddingTop="4dp"
android:text="Dark theme"
- android:textColor="@android:color/white" app:switchPadding="12dp" tools:background="@drawable/drawer_header" />
\ No newline at end of file
diff --git a/res/layout/nav_header.xml b/res/layout/nav_header.xml
index 18f0ed4..fca00a0 100644
- a/res/layout/nav_header.xml
+++ b/res/layout/nav_header.xml
@@ -2,7 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="160dp"
- android:background="@drawable/drawer_header"
+ android:background="@drawable/konqui"
android:gravity="bottom"
android:orientation="vertical">
@@ -16,7 +16,6 @@
android:paddingStart="16dp"
android:paddingTop="8dp"
android:text="KDE Connect"
- android:textColor="#FFF" android:textStyle="bold" />
<TextView
@@ -30,7 +29,6 @@
android:paddingRight="48dp"
android:paddingStart="16dp"
android:paddingTop="4dp"
- android:text="My device"
- android:textColor="#fff" />
+ android:text="My device" />
</LinearLayout>
diff --git a/res/values/styles-dark.xml b/res/values/styles-dark.xml
index 5051e15..f0de2f9 100644
- a/res/values/styles-dark.xml
+++ b/res/values/styles-dark.xml
@@ -1,7 +1,7 @@
<resources>
- <color name="darkToolbarBackground">#612e00</color>
- <color name="darkStatusBarBackground">#502600</color>
+ <color name="darkToolbarBackground">#222222</color>
+ <color name="darkStatusBarBackground">#333333</color>
<!-- KdeConnectThemeBase styles must only be defined in the main res/values/ folder -->
<style name="KdeConnectThemeBase.Dark" parent="Theme.AppCompat">
F5808598: konqui.png <https://phabricator.kde.org/F5808598>
REPOSITORY
R225 KDE Connect - Android application
BRANCH
feature/dark-theme
REVISION DETAIL
https://phabricator.kde.org/D11694
To: philipc, #kde_connect, mtijink, #vdg
Cc: ngraham, nicolasfella, mtijink, yannux, Danial0_0, johnq, Pitel, adeen-s, SemperPeritus, ahmedbesbes, ndavis, daniel.z.tg, jeanv, seebauer, bugzy, MayeulC, menasshock, ach, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20180415/9729991f/attachment-0001.html>
More information about the KDEConnect
mailing list