1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-28 07:11:17 +00:00
syncthing-android/src/main/res/values/styles.xml
Paul Annekov 6e1b689fa9 [WIP] Ability to share to syncthing (#843)
* increased folder button size

* increased folder button size

* code formatting

* init

* added copy

* get name from content provider

* implemented file sharing, multiple sharing and display name getter

* putting everything in order

* cancel button added

* ignore existing files, translation, styling

* fixed file copy

* Updated UI, moved copy to background, fixed content:// copying

* Fixed possible crash when displayName == null

* Fixed lint issues, removed ru translations

* Fixed plural params

* Escaped quotes to display them in Toast

* Changed spinner design to material one

* Changed copy code, moved credits to code, fixed members naming

* Fallback to id if label is not set

* Added doc for some methods

* Removed try-catch as there are no exceptions here

* Removed try-catch as there are no exceptions here

* Fixed general exception type

* Removed ShareActivity from recents

* Moved style to appropriate place

* Small fixes for toString()

* Moved credits from comment to javadoc of the class
2017-03-29 16:36:16 +09:00

67 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Widget" />
<style name="Widget.Syncthing" />
<!-- 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>
<style name="Widget.Syncthing.TextView" />
<style name="Widget.Syncthing.TextView.Label" parent="@android:style/Widget.TextView">
<item name="android:background">?selectableItemBackground</item>
<item name="android:drawablePadding">32dp</item>
<item name="android:gravity">start|center_vertical</item>
<item name="android:textAppearance">@style/TextAppearance.AppCompat.Body1</item>
<item name="android:paddingLeft">@dimen/abc_action_bar_content_inset_material</item>
<item name="android:paddingRight">@dimen/abc_action_bar_content_inset_material</item>
</style>
<style name="Widget.Syncthing.TextView.Label.Details">
<item name="android:textColor">?attr/editTextColor</item>
<item name="android:minHeight">56dp</item>
<item name="android:paddingTop">8dp</item>
<item name="android:paddingBottom">8dp</item>
</style>
<style name="Widget.Syncthing.TextView.Label.Details.DeviceList">
<item name="android:paddingLeft">4dp</item>
<item name="android:minHeight">48dp</item>
</style>
<style name="Widget.Syncthing.TextView.Label.Details.Field">
<item name="android:background">@null</item>
</style>
<style name="Widget.Syncthing.DrawerArrowToggle" parent="Widget.AppCompat.DrawerArrowToggle">
<item name="spinBars">false</item>
<item name="color">@android:color/white</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" />
<style name="Widget.Syncthing.TextView.SpinnerItem" parent="Widget.AppCompat.TextView.SpinnerItem">
<item name="android:textSize">18sp</item>
<item name="android:paddingTop">5dp</item>
<item name="android:paddingBottom">5dp</item>
</style>
</resources>