aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2015-09-11 17:03:10 -0700
committerKenny Root <kenny@the-b.org>2015-09-11 17:04:58 -0700
commitb7fdebfe3d7e803d674a34b8fb43c4d738585806 (patch)
tree6548a3917480704f5e9aceac437bf439ba0b485a
parent5d688384fa53708ad0f6706e69d641cd27863bd2 (diff)
downloadconnectbot-b7fdebfe3d7e803d674a34b8fb43c4d738585806.tar.gz
connectbot-b7fdebfe3d7e803d674a34b8fb43c4d738585806.tar.bz2
connectbot-b7fdebfe3d7e803d674a34b8fb43c4d738585806.zip
Add Material theme palette
Fixes #167
-rw-r--r--app/src/main/AndroidManifest.xml3
-rw-r--r--app/src/main/res/values-v11/styles.xml6
-rw-r--r--app/src/main/res/values-v21/styles.xml25
-rw-r--r--app/src/main/res/values/colors.xml5
-rw-r--r--app/src/main/res/values/styles.xml6
5 files changed, 44 insertions, 1 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 0f9bd76..cb17ed8 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -39,7 +39,8 @@
android:description="@string/app_desc"
android:allowBackup="true"
android:backupAgent=".service.BackupAgent"
- android:killAfterRestore="true">
+ android:killAfterRestore="true"
+ android:theme="@style/AppTheme">
<activity
android:name=".HostListActivity"
diff --git a/app/src/main/res/values-v11/styles.xml b/app/src/main/res/values-v11/styles.xml
index 8522aae..3d67346 100644
--- a/app/src/main/res/values-v11/styles.xml
+++ b/app/src/main/res/values-v11/styles.xml
@@ -18,6 +18,12 @@
-->
<resources>
+ <style name="AppTheme" parent="Theme.AppCompat">
+ <item name="colorPrimary">@color/primary</item>
+ <item name="colorPrimaryDark">@color/dark_primary</item>
+ <item name="colorAccent">@color/accent</item>
+ </style>
+
<style name="ListItemFirstLineText" parent="TextAppearance.AppCompat">
<item name="android:textColor">?android:textColorPrimary</item>
<item name="android:textSize">16sp</item>
diff --git a/app/src/main/res/values-v21/styles.xml b/app/src/main/res/values-v21/styles.xml
new file mode 100644
index 0000000..5129767
--- /dev/null
+++ b/app/src/main/res/values-v21/styles.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ ConnectBot: simple, powerful, open-source SSH client for Android
+ ~ Copyright 2015 Kenny Root, Jeffrey Sharkey
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<resources>
+ <style name="AppTheme" parent="android:Theme.Material">
+ <item name="android:colorPrimary">@color/primary</item>
+ <item name="android:colorPrimaryDark">@color/dark_primary</item>
+ <item name="android:colorAccent">@color/accent</item>
+ </style>
+</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index eb99202..299b896 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -22,4 +22,9 @@
<color name="key_background_layout">#55000000</color>
<color name="key_separator">#00000000</color>
<color name="keyboard_background">#55b0b0f0</color>
+
+ <color name="dark_primary">#0097A7</color>
+ <color name="primary">#00BCD4</color>
+
+ <color name="accent">#F4511E</color>
</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 13a424f..39dc628 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -18,6 +18,12 @@
-->
<resources>
+ <style name="AppTheme" parent="Theme.AppCompat">
+ <item name="colorPrimary">@color/primary</item>
+ <item name="colorPrimaryDark">@color/dark_primary</item>
+ <item name="colorAccent">@color/accent</item>
+ </style>
+
<style name="KeyboardKey">
<item name="android:layout_width">45dip</item>
<item name="android:layout_height">30dip</item>