Using attr icons in preferences

This commit is contained in:
ByteHamster 2018-04-11 00:41:44 +02:00
parent 6957cc9e27
commit 0b96588b10
13 changed files with 13 additions and 8 deletions

View File

@ -1,36 +1,35 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen <PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:app="http://schemas.android.com/apk/res-auto">
<Preference <Preference
android:key="prefScreenInterface" android:key="prefScreenInterface"
android:title="@string/user_interface_label" android:title="@string/user_interface_label"
android:icon="@drawable/ic_remove_red_eye_grey600_18dp" /> android:icon="?attr/type_video" />
<Preference <Preference
android:key="prefScreenPlayback" android:key="prefScreenPlayback"
android:title="@string/playback_pref" android:title="@string/playback_pref"
android:icon="@drawable/ic_play_arrow_grey600_24dp" /> android:icon="?attr/av_play" />
<Preference <Preference
android:key="prefScreenDownloads" android:key="prefScreenDownloads"
android:title="@string/downloads_label" android:title="@string/downloads_label"
android:icon="@drawable/ic_file_download_grey600_24dp" /> android:icon="?attr/av_download" />
<Preference <Preference
android:key="prefScreenServices" android:key="prefScreenServices"
android:title="@string/services_label" android:title="@string/services_label"
android:icon="@drawable/ic_star_grey600_24dp" /> android:icon="?attr/ic_unfav" />
<Preference <Preference
android:key="prefScreenStorage" android:key="prefScreenStorage"
android:title="@string/storage_pref" android:title="@string/storage_pref"
android:icon="@drawable/ic_sd_grey600_24dp" /> android:icon="?attr/storage" />
<Preference <Preference
android:key="statistics" android:key="statistics"
android:title="@string/statistics_label" android:title="@string/statistics_label"
android:icon="@drawable/ic_poll_box_grey600_24dp" /> android:icon="?attr/statistics" />
<PreferenceCategory android:title="@string/project_pref"> <PreferenceCategory android:title="@string/project_pref">
<Preference <Preference

Binary file not shown.

After

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 704 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 848 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 842 B

View File

@ -12,6 +12,8 @@
<attr name="av_rewind" format="reference"/> <attr name="av_rewind" format="reference"/>
<attr name="content_discard" format="reference"/> <attr name="content_discard" format="reference"/>
<attr name="content_new" format="reference"/> <attr name="content_new" format="reference"/>
<attr name="storage" format="reference"/>
<attr name="statistics" format="reference"/>
<attr name="feed" format="reference"/> <attr name="feed" format="reference"/>
<attr name="location_web_site" format="reference"/> <attr name="location_web_site" format="reference"/>
<attr name="navigation_accept" format="reference"/> <attr name="navigation_accept" format="reference"/>

View File

@ -12,6 +12,8 @@
<item name="buttonStyle">@style/Widget.AntennaPod.Button</item> <item name="buttonStyle">@style/Widget.AntennaPod.Button</item>
<item name="alertDialogTheme">@style/AntennaPod.Dialog.Light</item> <item name="alertDialogTheme">@style/AntennaPod.Dialog.Light</item>
<item type="attr" name="action_bar_icon_color">@color/grey600</item> <item type="attr" name="action_bar_icon_color">@color/grey600</item>
<item type="attr" name="storage">@drawable/ic_sd_grey600_24dp</item>
<item type="attr" name="statistics">@drawable/ic_poll_box_grey600_24dp</item>
<item type="attr" name="action_about">@drawable/ic_info_grey600_24dp</item> <item type="attr" name="action_about">@drawable/ic_info_grey600_24dp</item>
<item type="attr" name="action_search">@drawable/ic_search_grey600_24dp</item> <item type="attr" name="action_search">@drawable/ic_search_grey600_24dp</item>
<item type="attr" name="action_stream">@drawable/ic_settings_input_antenna_grey600_24dp</item> <item type="attr" name="action_stream">@drawable/ic_settings_input_antenna_grey600_24dp</item>
@ -75,6 +77,8 @@
<item name="progressBarTheme">@style/ProgressBarDark</item> <item name="progressBarTheme">@style/ProgressBarDark</item>
<item name="alertDialogTheme">@style/AntennaPod.Dialog.Dark</item> <item name="alertDialogTheme">@style/AntennaPod.Dialog.Dark</item>
<item type="attr" name="action_bar_icon_color">@color/white</item> <item type="attr" name="action_bar_icon_color">@color/white</item>
<item type="attr" name="storage">@drawable/ic_sd_white_24dp</item>
<item type="attr" name="statistics">@drawable/ic_poll_box_white_24dp</item>
<item type="attr" name="action_about">@drawable/ic_info_white_24dp</item>g <item type="attr" name="action_about">@drawable/ic_info_white_24dp</item>g
<item type="attr" name="action_search">@drawable/ic_search_white_24dp</item> <item type="attr" name="action_search">@drawable/ic_search_white_24dp</item>
<item type="attr" name="action_stream">@drawable/ic_settings_input_antenna_white_24dp</item> <item type="attr" name="action_stream">@drawable/ic_settings_input_antenna_white_24dp</item>