mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 04:41:16 +00:00
Added material design colors.
This commit is contained in:
parent
236541a915
commit
3ac46c3536
4 changed files with 39 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
android:icon="@drawable/ic_launcher"
|
||||
android:banner="@drawable/banner"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/Theme.AppCompat.Light.DarkActionBar"
|
||||
android:theme="@style/AppTheme"
|
||||
android:description="@string/app_description"
|
||||
android:supportsRtl="true"
|
||||
android:installLocation="internalOnly">
|
||||
|
|
15
src/main/res/values-v11/styles.xml
Normal file
15
src/main/res/values-v11/styles.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- DialogTheme produces weird background on 4.4, so we only use it on Lollipop for now. -->
|
||||
<style name="AppTheme" parent="BaseTheme">
|
||||
<item name="android:alertDialogTheme">@style/DialogTheme</item>
|
||||
</style>
|
||||
|
||||
<style name="DialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert">
|
||||
<item name="colorPrimary">@color/primary</item>
|
||||
<item name="colorPrimaryDark">@color/primary_dark</item>
|
||||
<item name="colorAccent">@color/accent</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
|
@ -1,5 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="primary">#03A9F4</color>
|
||||
<color name="primary_dark">#0288D1</color>
|
||||
<color name="primary_light">#B3E5FC</color>
|
||||
<color name="accent">#4CAF50</color>
|
||||
<color name="primary_text">#212121</color>
|
||||
<color name="secondary_text">#727272</color>
|
||||
<color name="icons">#FFFFFF</color>
|
||||
<color name="divider">#B6B6B6</color>
|
||||
|
||||
<color name="text_red">#ffff4444</color>
|
||||
<color name="text_blue">#ff33b5e5</color>
|
||||
<color name="text_green">#ff99cc00</color>
|
||||
|
|
14
src/main/res/values/styles.xml
Normal file
14
src/main/res/values/styles.xml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="BaseTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
|
||||
<item name="colorPrimary">@color/primary</item>
|
||||
<item name="colorPrimaryDark">@color/primary_dark</item>
|
||||
<item name="colorAccent">@color/accent</item>
|
||||
<item name="android:textColorPrimary">@color/primary_text</item>
|
||||
<item name="android:textColorSecondary">@color/secondary_text</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme" parent="BaseTheme"/>
|
||||
|
||||
</resources>
|
Loading…
Reference in a new issue