Start working on Material Design
This commit is contained in:
@@ -1,8 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<color name="emphasis">#aa66cc</color>
|
||||
<color name="emphasis_dark">#9933cc</color>
|
||||
<!--<color name="colorPrimary">@color/material_deep_teal_500</color>-->
|
||||
<!--<color name="colorPrimaryDark">@color/material_blue_grey_900</color>-->
|
||||
|
||||
<!-- TODO: -->
|
||||
|
||||
<color name="colorSecondary">@color/material_deep_teal_200</color>
|
||||
<color name="colorSecondaryDark">@color/material_deep_teal_500</color>
|
||||
<!--<color name="windowBackgroundColor">#333333</color>-->
|
||||
<color name="black_translucent">#80000000</color>
|
||||
|
||||
<!-- Palette generated by Material Palette materialpalette.com/green/indigo -->
|
||||
<color name="colorPrimary">#4CAF50</color>
|
||||
<color name="colorPrimaryDark">#388E3C</color>
|
||||
|
||||
<!-- TODO: -->
|
||||
<color name="primary">#4CAF50</color>
|
||||
<color name="primary_dark">#388E3C</color>
|
||||
<color name="primary_light">#C8E6C9</color>
|
||||
<color name="accent">#536DFE</color>
|
||||
<color name="primary_text">#212121</color>
|
||||
<color name="secondary_text">#727272</color>
|
||||
<color name="icons">#FFFFFF</color>
|
||||
<color name="divider">#B6B6B6</color>
|
||||
|
||||
|
||||
<!-- set to text colors -->
|
||||
<color name="emphasis">#212121</color>
|
||||
<color name="emphasis_dark">#727272</color>
|
||||
|
||||
<color name="bg_gray">#cecbce</color>
|
||||
<color name="tertiary_text_light">#808080</color>
|
||||
<color name="alert">#ffdd3333</color>
|
||||
@@ -10,14 +37,18 @@
|
||||
<color name="holo_gray_light">#33999999</color>
|
||||
<color name="holo_gray_bright">#33CCCCCC</color>
|
||||
|
||||
<!-- http://developer.android.com/design/style/color.html -->
|
||||
<color name="android_red_light">#ffff4444</color>
|
||||
<color name="android_red_dark">#ffCC0000</color>
|
||||
<color name="android_orange_light">#ffffbb33</color>
|
||||
<color name="android_orange_dark">#ffFF8800</color>
|
||||
<color name="android_green_light">#ff99cc00</color>
|
||||
<color name="android_green_dark">#ff669900</color>
|
||||
<color name="android_purple_light">#ffaa66cc</color>
|
||||
<color name="android_purple_dark">#ff9933CC</color>
|
||||
<!--
|
||||
http://www.google.com/design/spec/style/color.html#color-color-palette
|
||||
light = normal color
|
||||
dark = 900
|
||||
-->
|
||||
<color name="android_red_light">#f44336</color>
|
||||
<color name="android_red_dark">#b71c1c</color>
|
||||
<color name="android_orange_light">#ff9800</color>
|
||||
<color name="android_orange_dark">#e65100</color>
|
||||
<color name="android_green_light">#4caf50</color>
|
||||
<color name="android_green_dark">#1b5e20</color>
|
||||
<color name="android_purple_light">#673ab7</color>
|
||||
<color name="android_purple_dark">#311b92</color>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<resources>
|
||||
<!-- Used in Android < 4 -->
|
||||
|
||||
<style name="KeychainTheme" parent="@style/Theme.AppCompat.Light">
|
||||
<style name="KeychainThemeOLD" parent="@style/Theme.AppCompat.Light">
|
||||
<item name="android:alertDialogStyle">@style/CustomDialogTheme</item>
|
||||
</style>
|
||||
|
||||
@@ -34,4 +34,35 @@
|
||||
<item name="android:background">@drawable/selector_transparent_button</item>
|
||||
</style>
|
||||
|
||||
<!--
|
||||
Make Toolbar with white text and white overflow menu
|
||||
http://www.murrayc.com/permalink/2014/10/28/android-changing-the-toolbars-text-color-and-overflow-icon-color/
|
||||
-->
|
||||
<style name="KeychainToolbarOverflow" parent="KeychainTheme">
|
||||
<!-- android:textColorPrimary is the color of the title text
|
||||
in the Toolbar, in the Theme.AppCompat theme: -->
|
||||
<item name="android:textColorPrimary">@color/abc_primary_text_material_dark</item>
|
||||
|
||||
<!-- android:textColorPrimaryInverse is the color of the title
|
||||
text in the Toolbar, in the Theme.AppCompat.Light theme: -->
|
||||
<!-- <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_light</item> -->
|
||||
|
||||
<!-- android:actionMenuTextColor is the color of the text of
|
||||
action (menu) items in the Toolbar, at least in the
|
||||
Theme.AppCompat theme.
|
||||
For some reason, they already get the textColorPrimary
|
||||
when running on API 21, but not on older versions of
|
||||
Android, so this is only necessary to support older
|
||||
Android versions.-->
|
||||
<item name="actionMenuTextColor">@color/abc_primary_text_material_dark</item>
|
||||
<!-- android:textColorSecondary is the color of the menu
|
||||
overflow icon (three vertical dots) -->
|
||||
<item name="android:textColorSecondary">@color/abc_primary_text_material_dark</item>
|
||||
|
||||
<!-- This would set the toolbar's background color,
|
||||
but setting this also changes the popup menu's background,
|
||||
even if we define popupTheme for our <Toolbar> -->
|
||||
<!-- <item name="android:background">@color/color_primary</item> -->
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
12
OpenKeychain/src/main/res/values/themes.xml
Normal file
12
OpenKeychain/src/main/res/values/themes.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="KeychainTheme" parent="KeychainTheme.Base" />
|
||||
|
||||
<style name="KeychainTheme.Base" parent="Theme.AppCompat.Light">
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimary</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="windowActionBar">false</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user