1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-27 14:51:15 +00:00

Made styles, themes and colours more closely follow material design guidelines.

This commit is contained in:
George Venios 2015-08-03 00:27:29 +01:00
parent ea94302676
commit f425cf995a
4 changed files with 37 additions and 4 deletions

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<attr name="textAppearanceListItemPrimary" format="reference"/>
<attr name="textAppearanceListItemSecondary" format="reference"/>
</resources>

View file

@ -4,8 +4,6 @@
<color name="primary_dark">#0288D1</color> <color name="primary_dark">#0288D1</color>
<color name="primary_light">#B3E5FC</color> <color name="primary_light">#B3E5FC</color>
<color name="accent">#FF9100</color> <color name="accent">#FF9100</color>
<color name="primary_text">#212121</color>
<color name="secondary_text">#727272</color>
<color name="icons">#FFFFFF</color> <color name="icons">#FFFFFF</color>
<color name="divider">#B6B6B6</color> <color name="divider">#B6B6B6</color>

View file

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Widget styles -->
<eat-comment />
<style name="Widget.Syncthing.ListView" parent="Widget.AppCompat.ListView">
<item name="android:paddingTop">8dp</item>
<item name="android:paddingBottom">8dp</item>
<item name="android:clipToPadding">false</item>
<item name="android:scrollbarStyle">outsideOverlay</item>
<item name="android:divider">@android:color/transparent</item>
</style>
<!-- Text appearances -->
<eat-comment />
<style name="TextAppearance.Syncthing.ListItemPrimary" parent="TextAppearance.AppCompat.Subhead">
<item name="android:textColor">?android:textColorPrimary</item>
</style>
<style name="TextAppearance.Syncthing.ListItemSecondary" parent="TextAppearance.AppCompat.Body1">
<item name="android:textColor">?android:textColorSecondary</item>
</style>
<style name="TextAppearance.Syncthing.ListItemSmall" parent="TextAppearance.AppCompat.Caption" />
</resources>

View file

@ -8,9 +8,12 @@
<item name="colorPrimary">@color/primary</item> <item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary_dark</item> <item name="colorPrimaryDark">@color/primary_dark</item>
<item name="colorAccent">@color/accent</item> <item name="colorAccent">@color/accent</item>
<item name="android:textColorPrimary">@color/primary_text</item>
<item name="android:textColorSecondary">@color/secondary_text</item>
<item name="actionBarTheme">@style/ThemeOverlay.Syncthing.ActionBar</item> <item name="actionBarTheme">@style/ThemeOverlay.Syncthing.ActionBar</item>
<item name="textAppearanceListItemPrimary">@style/TextAppearance.Syncthing.ListItemPrimary</item>
<item name="textAppearanceListItemSecondary">@style/TextAppearance.Syncthing.ListItemSecondary</item>
<item name="textAppearanceListItemSmall">@style/TextAppearance.Syncthing.ListItemSmall</item>
<item name="android:listViewStyle">@style/Widget.Syncthing.ListView</item>
</style> </style>
<style name="Theme.Syncthing" parent="Theme.Syncthing.Base"/> <style name="Theme.Syncthing" parent="Theme.Syncthing.Base"/>