Skip to content

Commit

Permalink
Add Material theme palette
Browse files Browse the repository at this point in the history
Fixes #167
  • Loading branch information
kruton committed Sep 12, 2015
1 parent 5d68838 commit b7fdebf
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/values-v11/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
25 changes: 25 additions & 0 deletions app/src/main/res/values-v21/styles.xml
Original file line number Diff line number Diff line change
@@ -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>
5 changes: 5 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
6 changes: 6 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit b7fdebf

Please sign in to comment.