mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-27 06:41:15 +00:00
Made styles, themes and colours more closely follow material design guidelines.
This commit is contained in:
parent
ea94302676
commit
f425cf995a
4 changed files with 37 additions and 4 deletions
5
src/main/res/values/attrs.xml
Normal file
5
src/main/res/values/attrs.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<attr name="textAppearanceListItemPrimary" format="reference"/>
|
||||
<attr name="textAppearanceListItemSecondary" format="reference"/>
|
||||
</resources>
|
|
@ -4,8 +4,6 @@
|
|||
<color name="primary_dark">#0288D1</color>
|
||||
<color name="primary_light">#B3E5FC</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="divider">#B6B6B6</color>
|
||||
|
||||
|
|
27
src/main/res/values/styles.xml
Normal file
27
src/main/res/values/styles.xml
Normal 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>
|
|
@ -8,9 +8,12 @@
|
|||
<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>
|
||||
<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 name="Theme.Syncthing" parent="Theme.Syncthing.Base"/>
|
||||
|
|
Loading…
Reference in a new issue