]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Define a new color scheme
authorTobias Brunner <tobias@strongswan.org>
Tue, 12 Apr 2016 15:46:53 +0000 (17:46 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 27 Apr 2016 12:24:27 +0000 (14:24 +0200)
This mainly changes the color of the appbar (colorPrimary), the color
of the status bar (colorPrimaryDark) is black like the default.
The accent color (colorAccent) used for controls like buttons and check
boxes is a slightly toned down version of the default.

src/frontends/android/app/src/main/res/values/colors.xml
src/frontends/android/app/src/main/res/values/styles.xml

index 4af28b4d49c9834b59b6e0de38126d8500e99fce..6377d8fb00b3c5f5bfde1e0d260c2a7235f0de31 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
-    Copyright (C) 2012-2013 Tobias Brunner
-    Hochschule fuer Technik Rapperswil
+    Copyright (C) 2012-2016 Tobias Brunner
+    HSR Hochschule fuer Technik Rapperswil
 
     This program is free software; you can redistribute it and/or modify it
     under the terms of the GNU General Public License as published by the
 -->
 <resources>
 
+    <color
+        name="accent">#96BDC2</color>
+
+    <color
+        name="primary">#A2042C</color>
+
+    <color
+        name="primary_dark">#000000</color>
+
     <color
         name="error_text">#D9192C</color>
 
@@ -25,7 +34,7 @@
         name="success_text">#99CC00</color>
 
     <color
-        name="panel_background">#333333</color>
+        name="panel_background">#444444</color>
 
     <color
         name="panel_separator">#5a5a5a</color>
index aa77e54ee24f595ed54f84a739cdd37615d9eb6c..82a957813b527bfa07d2b534d253d03e2e5e697a 100644 (file)
 <resources xmlns:android="http://schemas.android.com/apk/res/android">
 
     <style name="ApplicationTheme.Base" parent="Theme.AppCompat">
+        <item name="colorAccent">@color/accent</item>
+        <item name="colorPrimary">@color/primary</item>
+        <item name="colorPrimaryDark">@color/primary_dark</item>
         <item name="android:alertDialogTheme">@style/AlertDialogTheme</item>
     </style>
 
     <style name="AlertDialogTheme.Base" parent="Theme.AppCompat.Dialog.Alert">
+        <item name="colorAccent">@color/accent</item>
     </style>
 
 </resources>