diff --git a/F-Droid/build.gradle b/F-Droid/build.gradle index 4219e4c4a..737fd5c25 100644 --- a/F-Droid/build.gradle +++ b/F-Droid/build.gradle @@ -16,9 +16,9 @@ if ( !hasProperty( 'sourceDeps' ) ) { dependencies { - compile 'com.android.support:support-v4:20.0.0', - 'com.android.support:appcompat-v7:20.0.0', - 'com.android.support:support-annotations:20.0.0', + compile 'com.android.support:support-v4:22.1.0', + 'com.android.support:appcompat-v7:22.1.0', + 'com.android.support:support-annotations:22.1.0', 'org.thoughtcrime.ssl.pinning:AndroidPinning:1.0.0', 'com.nostra13.universalimageloader:universal-image-loader:1.9.4', @@ -80,9 +80,9 @@ if ( !hasProperty( 'sourceDeps' ) ) { // then you can find the relevant portions of the ../build.gradle file that // include magic required to make it work at around about the v0.78 git tag. // They have since been removed to clean up the build file. - compile 'com.android.support:support-v4:20.0.0', - 'com.android.support:appcompat-v7:20.0.0', - 'com.android.support:support-annotations:20.0.0' + compile 'com.android.support:support-v4:22.1.0', + 'com.android.support:appcompat-v7:22.1.0', + 'com.android.support:support-annotations:22.1.0' androidTestCompile 'commons-io:commons-io:2.2' } diff --git a/F-Droid/res/drawable-hdpi/ic_add_white.png b/F-Droid/res/drawable-hdpi/ic_add_white.png new file mode 100644 index 000000000..72cedcad4 Binary files /dev/null and b/F-Droid/res/drawable-hdpi/ic_add_white.png differ diff --git a/F-Droid/res/drawable-hdpi/ic_bluetooth_white.png b/F-Droid/res/drawable-hdpi/ic_bluetooth_white.png new file mode 100644 index 000000000..bf5912471 Binary files /dev/null and b/F-Droid/res/drawable-hdpi/ic_bluetooth_white.png differ diff --git a/F-Droid/res/drawable-hdpi/ic_delete_white.png b/F-Droid/res/drawable-hdpi/ic_delete_white.png new file mode 100644 index 000000000..0e95e9b1d Binary files /dev/null and b/F-Droid/res/drawable-hdpi/ic_delete_white.png differ diff --git a/F-Droid/res/drawable-hdpi/ic_do_not_disturb_white.png b/F-Droid/res/drawable-hdpi/ic_do_not_disturb_white.png new file mode 100644 index 000000000..bb07825f1 Binary files /dev/null and b/F-Droid/res/drawable-hdpi/ic_do_not_disturb_white.png differ diff --git a/F-Droid/res/drawable-hdpi/ic_edit_white.png b/F-Droid/res/drawable-hdpi/ic_edit_white.png new file mode 100644 index 000000000..34ec7092f Binary files /dev/null and b/F-Droid/res/drawable-hdpi/ic_edit_white.png differ diff --git a/F-Droid/res/drawable-hdpi/ic_help_white.png b/F-Droid/res/drawable-hdpi/ic_help_white.png new file mode 100644 index 000000000..1173aed08 Binary files /dev/null and b/F-Droid/res/drawable-hdpi/ic_help_white.png differ diff --git a/F-Droid/res/drawable-hdpi/ic_nfc_white.png b/F-Droid/res/drawable-hdpi/ic_nfc_white.png new file mode 100644 index 000000000..78db0e17e Binary files /dev/null and b/F-Droid/res/drawable-hdpi/ic_nfc_white.png differ diff --git a/F-Droid/res/drawable-hdpi/ic_play_arrow_white.png b/F-Droid/res/drawable-hdpi/ic_play_arrow_white.png new file mode 100644 index 000000000..043acd808 Binary files /dev/null and b/F-Droid/res/drawable-hdpi/ic_play_arrow_white.png differ diff --git a/F-Droid/res/drawable-hdpi/ic_refresh_white.png b/F-Droid/res/drawable-hdpi/ic_refresh_white.png new file mode 100644 index 000000000..72128fe69 Binary files /dev/null and b/F-Droid/res/drawable-hdpi/ic_refresh_white.png differ diff --git a/F-Droid/res/drawable-hdpi/ic_search_white.png b/F-Droid/res/drawable-hdpi/ic_search_white.png new file mode 100644 index 000000000..0bbeab150 Binary files /dev/null and b/F-Droid/res/drawable-hdpi/ic_search_white.png differ diff --git a/F-Droid/res/drawable-hdpi/ic_settings_white.png b/F-Droid/res/drawable-hdpi/ic_settings_white.png new file mode 100644 index 000000000..6bb8f6e08 Binary files /dev/null and b/F-Droid/res/drawable-hdpi/ic_settings_white.png differ diff --git a/F-Droid/res/drawable-hdpi/ic_share_white.png b/F-Droid/res/drawable-hdpi/ic_share_white.png new file mode 100644 index 000000000..9963c6a05 Binary files /dev/null and b/F-Droid/res/drawable-hdpi/ic_share_white.png differ diff --git a/F-Droid/res/drawable-hdpi/ic_view_headline_white.png b/F-Droid/res/drawable-hdpi/ic_view_headline_white.png new file mode 100644 index 000000000..4f9458b1a Binary files /dev/null and b/F-Droid/res/drawable-hdpi/ic_view_headline_white.png differ diff --git a/F-Droid/res/drawable-mdpi/ic_add_white.png b/F-Droid/res/drawable-mdpi/ic_add_white.png new file mode 100644 index 000000000..67042105d Binary files /dev/null and b/F-Droid/res/drawable-mdpi/ic_add_white.png differ diff --git a/F-Droid/res/drawable-mdpi/ic_bluetooth_white.png b/F-Droid/res/drawable-mdpi/ic_bluetooth_white.png new file mode 100644 index 000000000..678678da4 Binary files /dev/null and b/F-Droid/res/drawable-mdpi/ic_bluetooth_white.png differ diff --git a/F-Droid/res/drawable-mdpi/ic_delete_white.png b/F-Droid/res/drawable-mdpi/ic_delete_white.png new file mode 100644 index 000000000..cdb230c2f Binary files /dev/null and b/F-Droid/res/drawable-mdpi/ic_delete_white.png differ diff --git a/F-Droid/res/drawable-mdpi/ic_do_not_disturb_white.png b/F-Droid/res/drawable-mdpi/ic_do_not_disturb_white.png new file mode 100644 index 000000000..4e4fa1e59 Binary files /dev/null and b/F-Droid/res/drawable-mdpi/ic_do_not_disturb_white.png differ diff --git a/F-Droid/res/drawable-mdpi/ic_edit_white.png b/F-Droid/res/drawable-mdpi/ic_edit_white.png new file mode 100644 index 000000000..7f0ea51bf Binary files /dev/null and b/F-Droid/res/drawable-mdpi/ic_edit_white.png differ diff --git a/F-Droid/res/drawable-mdpi/ic_help_white.png b/F-Droid/res/drawable-mdpi/ic_help_white.png new file mode 100644 index 000000000..9f8051b44 Binary files /dev/null and b/F-Droid/res/drawable-mdpi/ic_help_white.png differ diff --git a/F-Droid/res/drawable-mdpi/ic_nfc_white.png b/F-Droid/res/drawable-mdpi/ic_nfc_white.png new file mode 100644 index 000000000..428351e8e Binary files /dev/null and b/F-Droid/res/drawable-mdpi/ic_nfc_white.png differ diff --git a/F-Droid/res/drawable-mdpi/ic_play_arrow_white.png b/F-Droid/res/drawable-mdpi/ic_play_arrow_white.png new file mode 100644 index 000000000..a55d19922 Binary files /dev/null and b/F-Droid/res/drawable-mdpi/ic_play_arrow_white.png differ diff --git a/F-Droid/res/drawable-mdpi/ic_refresh_white.png b/F-Droid/res/drawable-mdpi/ic_refresh_white.png new file mode 100644 index 000000000..5f89fc257 Binary files /dev/null and b/F-Droid/res/drawable-mdpi/ic_refresh_white.png differ diff --git a/F-Droid/res/drawable-mdpi/ic_search_white.png b/F-Droid/res/drawable-mdpi/ic_search_white.png new file mode 100644 index 000000000..043759acd Binary files /dev/null and b/F-Droid/res/drawable-mdpi/ic_search_white.png differ diff --git a/F-Droid/res/drawable-mdpi/ic_settings_white.png b/F-Droid/res/drawable-mdpi/ic_settings_white.png new file mode 100644 index 000000000..12e5d100d Binary files /dev/null and b/F-Droid/res/drawable-mdpi/ic_settings_white.png differ diff --git a/F-Droid/res/drawable-mdpi/ic_share_white.png b/F-Droid/res/drawable-mdpi/ic_share_white.png new file mode 100644 index 000000000..dd536bca2 Binary files /dev/null and b/F-Droid/res/drawable-mdpi/ic_share_white.png differ diff --git a/F-Droid/res/drawable-mdpi/ic_view_headline_white.png b/F-Droid/res/drawable-mdpi/ic_view_headline_white.png new file mode 100644 index 000000000..e6ecf5a1d Binary files /dev/null and b/F-Droid/res/drawable-mdpi/ic_view_headline_white.png differ diff --git a/F-Droid/res/drawable-xhdpi/ic_add_white.png b/F-Droid/res/drawable-xhdpi/ic_add_white.png new file mode 100644 index 000000000..2bef05958 Binary files /dev/null and b/F-Droid/res/drawable-xhdpi/ic_add_white.png differ diff --git a/F-Droid/res/drawable-xhdpi/ic_bluetooth_white.png b/F-Droid/res/drawable-xhdpi/ic_bluetooth_white.png new file mode 100644 index 000000000..e3fe3cfbb Binary files /dev/null and b/F-Droid/res/drawable-xhdpi/ic_bluetooth_white.png differ diff --git a/F-Droid/res/drawable-xhdpi/ic_delete_white.png b/F-Droid/res/drawable-xhdpi/ic_delete_white.png new file mode 100644 index 000000000..e69de29bb diff --git a/F-Droid/res/drawable-xhdpi/ic_do_not_disturb_white.png b/F-Droid/res/drawable-xhdpi/ic_do_not_disturb_white.png new file mode 100644 index 000000000..38f12a7b5 Binary files /dev/null and b/F-Droid/res/drawable-xhdpi/ic_do_not_disturb_white.png differ diff --git a/F-Droid/res/drawable-xhdpi/ic_edit_white.png b/F-Droid/res/drawable-xhdpi/ic_edit_white.png new file mode 100644 index 000000000..9380370f4 Binary files /dev/null and b/F-Droid/res/drawable-xhdpi/ic_edit_white.png differ diff --git a/F-Droid/res/drawable-xhdpi/ic_help_white.png b/F-Droid/res/drawable-xhdpi/ic_help_white.png new file mode 100644 index 000000000..9b27847bb Binary files /dev/null and b/F-Droid/res/drawable-xhdpi/ic_help_white.png differ diff --git a/F-Droid/res/drawable-xhdpi/ic_nfc_white.png b/F-Droid/res/drawable-xhdpi/ic_nfc_white.png new file mode 100644 index 000000000..821029ce4 Binary files /dev/null and b/F-Droid/res/drawable-xhdpi/ic_nfc_white.png differ diff --git a/F-Droid/res/drawable-xhdpi/ic_play_arrow_white.png b/F-Droid/res/drawable-xhdpi/ic_play_arrow_white.png new file mode 100644 index 000000000..7cc008475 Binary files /dev/null and b/F-Droid/res/drawable-xhdpi/ic_play_arrow_white.png differ diff --git a/F-Droid/res/drawable-xhdpi/ic_refresh_white.png b/F-Droid/res/drawable-xhdpi/ic_refresh_white.png new file mode 100644 index 000000000..d271d8e03 Binary files /dev/null and b/F-Droid/res/drawable-xhdpi/ic_refresh_white.png differ diff --git a/F-Droid/res/drawable-xhdpi/ic_search_white.png b/F-Droid/res/drawable-xhdpi/ic_search_white.png new file mode 100644 index 000000000..70c21baf7 Binary files /dev/null and b/F-Droid/res/drawable-xhdpi/ic_search_white.png differ diff --git a/F-Droid/res/drawable-xhdpi/ic_settings_white.png b/F-Droid/res/drawable-xhdpi/ic_settings_white.png new file mode 100644 index 000000000..97e9ca945 Binary files /dev/null and b/F-Droid/res/drawable-xhdpi/ic_settings_white.png differ diff --git a/F-Droid/res/drawable-xhdpi/ic_share_white.png b/F-Droid/res/drawable-xhdpi/ic_share_white.png new file mode 100644 index 000000000..bb521c141 Binary files /dev/null and b/F-Droid/res/drawable-xhdpi/ic_share_white.png differ diff --git a/F-Droid/res/drawable-xhdpi/ic_view_headline_white.png b/F-Droid/res/drawable-xhdpi/ic_view_headline_white.png new file mode 100644 index 000000000..c66e9d234 Binary files /dev/null and b/F-Droid/res/drawable-xhdpi/ic_view_headline_white.png differ diff --git a/F-Droid/res/drawable-xxhdpi/ic_add_white.png b/F-Droid/res/drawable-xxhdpi/ic_add_white.png new file mode 100644 index 000000000..b12e040e0 Binary files /dev/null and b/F-Droid/res/drawable-xxhdpi/ic_add_white.png differ diff --git a/F-Droid/res/drawable-xxhdpi/ic_bluetooth_white.png b/F-Droid/res/drawable-xxhdpi/ic_bluetooth_white.png new file mode 100644 index 000000000..6c8cb16af Binary files /dev/null and b/F-Droid/res/drawable-xxhdpi/ic_bluetooth_white.png differ diff --git a/F-Droid/res/drawable-xxhdpi/ic_delete_white.png b/F-Droid/res/drawable-xxhdpi/ic_delete_white.png new file mode 100644 index 000000000..a8d8ca84d Binary files /dev/null and b/F-Droid/res/drawable-xxhdpi/ic_delete_white.png differ diff --git a/F-Droid/res/drawable-xxhdpi/ic_do_not_disturb_white.png b/F-Droid/res/drawable-xxhdpi/ic_do_not_disturb_white.png new file mode 100644 index 000000000..9ac3d7a02 Binary files /dev/null and b/F-Droid/res/drawable-xxhdpi/ic_do_not_disturb_white.png differ diff --git a/F-Droid/res/drawable-xxhdpi/ic_edit_white.png b/F-Droid/res/drawable-xxhdpi/ic_edit_white.png new file mode 100644 index 000000000..fe5bd13fb Binary files /dev/null and b/F-Droid/res/drawable-xxhdpi/ic_edit_white.png differ diff --git a/F-Droid/res/drawable-xxhdpi/ic_help_white.png b/F-Droid/res/drawable-xxhdpi/ic_help_white.png new file mode 100644 index 000000000..f34516ecc Binary files /dev/null and b/F-Droid/res/drawable-xxhdpi/ic_help_white.png differ diff --git a/F-Droid/res/drawable-xxhdpi/ic_nfc_white.png b/F-Droid/res/drawable-xxhdpi/ic_nfc_white.png new file mode 100644 index 000000000..81b19ef04 Binary files /dev/null and b/F-Droid/res/drawable-xxhdpi/ic_nfc_white.png differ diff --git a/F-Droid/res/drawable-xxhdpi/ic_play_arrow_white.png b/F-Droid/res/drawable-xxhdpi/ic_play_arrow_white.png new file mode 100644 index 000000000..de7f9bdb5 Binary files /dev/null and b/F-Droid/res/drawable-xxhdpi/ic_play_arrow_white.png differ diff --git a/F-Droid/res/drawable-xxhdpi/ic_refresh_white.png b/F-Droid/res/drawable-xxhdpi/ic_refresh_white.png new file mode 100644 index 000000000..87ab2d640 Binary files /dev/null and b/F-Droid/res/drawable-xxhdpi/ic_refresh_white.png differ diff --git a/F-Droid/res/drawable-xxhdpi/ic_search_white.png b/F-Droid/res/drawable-xxhdpi/ic_search_white.png new file mode 100644 index 000000000..75d9aa69f Binary files /dev/null and b/F-Droid/res/drawable-xxhdpi/ic_search_white.png differ diff --git a/F-Droid/res/drawable-xxhdpi/ic_settings_white.png b/F-Droid/res/drawable-xxhdpi/ic_settings_white.png new file mode 100644 index 000000000..5940812da Binary files /dev/null and b/F-Droid/res/drawable-xxhdpi/ic_settings_white.png differ diff --git a/F-Droid/res/drawable-xxhdpi/ic_share_white.png b/F-Droid/res/drawable-xxhdpi/ic_share_white.png new file mode 100644 index 000000000..cf3072ecf Binary files /dev/null and b/F-Droid/res/drawable-xxhdpi/ic_share_white.png differ diff --git a/F-Droid/res/drawable-xxhdpi/ic_view_headline_white.png b/F-Droid/res/drawable-xxhdpi/ic_view_headline_white.png new file mode 100644 index 000000000..faccf3d23 Binary files /dev/null and b/F-Droid/res/drawable-xxhdpi/ic_view_headline_white.png differ diff --git a/F-Droid/res/drawable-xxxhdpi/ic_add_white.png b/F-Droid/res/drawable-xxxhdpi/ic_add_white.png new file mode 100644 index 000000000..cd32f0a82 Binary files /dev/null and b/F-Droid/res/drawable-xxxhdpi/ic_add_white.png differ diff --git a/F-Droid/res/drawable-xxxhdpi/ic_bluetooth_white.png b/F-Droid/res/drawable-xxxhdpi/ic_bluetooth_white.png new file mode 100644 index 000000000..c0181e016 Binary files /dev/null and b/F-Droid/res/drawable-xxxhdpi/ic_bluetooth_white.png differ diff --git a/F-Droid/res/drawable-xxxhdpi/ic_delete_white.png b/F-Droid/res/drawable-xxxhdpi/ic_delete_white.png new file mode 100644 index 000000000..47fef5aab Binary files /dev/null and b/F-Droid/res/drawable-xxxhdpi/ic_delete_white.png differ diff --git a/F-Droid/res/drawable-xxxhdpi/ic_do_not_disturb_white.png b/F-Droid/res/drawable-xxxhdpi/ic_do_not_disturb_white.png new file mode 100644 index 000000000..446abf648 Binary files /dev/null and b/F-Droid/res/drawable-xxxhdpi/ic_do_not_disturb_white.png differ diff --git a/F-Droid/res/drawable-xxxhdpi/ic_edit_white.png b/F-Droid/res/drawable-xxxhdpi/ic_edit_white.png new file mode 100644 index 000000000..736806495 Binary files /dev/null and b/F-Droid/res/drawable-xxxhdpi/ic_edit_white.png differ diff --git a/F-Droid/res/drawable-xxxhdpi/ic_help_white.png b/F-Droid/res/drawable-xxxhdpi/ic_help_white.png new file mode 100644 index 000000000..c99653261 Binary files /dev/null and b/F-Droid/res/drawable-xxxhdpi/ic_help_white.png differ diff --git a/F-Droid/res/drawable-xxxhdpi/ic_nfc_white.png b/F-Droid/res/drawable-xxxhdpi/ic_nfc_white.png new file mode 100644 index 000000000..12cd90eae Binary files /dev/null and b/F-Droid/res/drawable-xxxhdpi/ic_nfc_white.png differ diff --git a/F-Droid/res/drawable-xxxhdpi/ic_play_arrow_white.png b/F-Droid/res/drawable-xxxhdpi/ic_play_arrow_white.png new file mode 100644 index 000000000..f4f713e83 Binary files /dev/null and b/F-Droid/res/drawable-xxxhdpi/ic_play_arrow_white.png differ diff --git a/F-Droid/res/drawable-xxxhdpi/ic_refresh_white.png b/F-Droid/res/drawable-xxxhdpi/ic_refresh_white.png new file mode 100644 index 000000000..fe0ae13aa Binary files /dev/null and b/F-Droid/res/drawable-xxxhdpi/ic_refresh_white.png differ diff --git a/F-Droid/res/drawable-xxxhdpi/ic_search_white.png b/F-Droid/res/drawable-xxxhdpi/ic_search_white.png new file mode 100644 index 000000000..7caf6c9b7 Binary files /dev/null and b/F-Droid/res/drawable-xxxhdpi/ic_search_white.png differ diff --git a/F-Droid/res/drawable-xxxhdpi/ic_settings_white.png b/F-Droid/res/drawable-xxxhdpi/ic_settings_white.png new file mode 100644 index 000000000..4d36a012e Binary files /dev/null and b/F-Droid/res/drawable-xxxhdpi/ic_settings_white.png differ diff --git a/F-Droid/res/drawable-xxxhdpi/ic_share_white.png b/F-Droid/res/drawable-xxxhdpi/ic_share_white.png new file mode 100644 index 000000000..4eeff94cf Binary files /dev/null and b/F-Droid/res/drawable-xxxhdpi/ic_share_white.png differ diff --git a/F-Droid/res/drawable-xxxhdpi/ic_view_headline_white.png b/F-Droid/res/drawable-xxxhdpi/ic_view_headline_white.png new file mode 100644 index 000000000..7674b081f Binary files /dev/null and b/F-Droid/res/drawable-xxxhdpi/ic_view_headline_white.png differ diff --git a/F-Droid/res/drawable/ic_add_white.png b/F-Droid/res/drawable/ic_add_white.png new file mode 100644 index 000000000..67042105d Binary files /dev/null and b/F-Droid/res/drawable/ic_add_white.png differ diff --git a/F-Droid/res/drawable/ic_bluetooth_white.png b/F-Droid/res/drawable/ic_bluetooth_white.png new file mode 100644 index 000000000..678678da4 Binary files /dev/null and b/F-Droid/res/drawable/ic_bluetooth_white.png differ diff --git a/F-Droid/res/drawable/ic_delete_white.png b/F-Droid/res/drawable/ic_delete_white.png new file mode 100644 index 000000000..cdb230c2f Binary files /dev/null and b/F-Droid/res/drawable/ic_delete_white.png differ diff --git a/F-Droid/res/drawable/ic_do_not_disturb_white.png b/F-Droid/res/drawable/ic_do_not_disturb_white.png new file mode 100644 index 000000000..4e4fa1e59 Binary files /dev/null and b/F-Droid/res/drawable/ic_do_not_disturb_white.png differ diff --git a/F-Droid/res/drawable/ic_edit_white.png b/F-Droid/res/drawable/ic_edit_white.png new file mode 100644 index 000000000..7f0ea51bf Binary files /dev/null and b/F-Droid/res/drawable/ic_edit_white.png differ diff --git a/F-Droid/res/drawable/ic_help_white.png b/F-Droid/res/drawable/ic_help_white.png new file mode 100644 index 000000000..9f8051b44 Binary files /dev/null and b/F-Droid/res/drawable/ic_help_white.png differ diff --git a/F-Droid/res/drawable/ic_nfc_white.png b/F-Droid/res/drawable/ic_nfc_white.png new file mode 100644 index 000000000..428351e8e Binary files /dev/null and b/F-Droid/res/drawable/ic_nfc_white.png differ diff --git a/F-Droid/res/drawable/ic_play_arrow_white.png b/F-Droid/res/drawable/ic_play_arrow_white.png new file mode 100644 index 000000000..a55d19922 Binary files /dev/null and b/F-Droid/res/drawable/ic_play_arrow_white.png differ diff --git a/F-Droid/res/drawable/ic_refresh_white.png b/F-Droid/res/drawable/ic_refresh_white.png new file mode 100644 index 000000000..5f89fc257 Binary files /dev/null and b/F-Droid/res/drawable/ic_refresh_white.png differ diff --git a/F-Droid/res/drawable/ic_search_white.png b/F-Droid/res/drawable/ic_search_white.png new file mode 100644 index 000000000..043759acd Binary files /dev/null and b/F-Droid/res/drawable/ic_search_white.png differ diff --git a/F-Droid/res/drawable/ic_settings_white.png b/F-Droid/res/drawable/ic_settings_white.png new file mode 100644 index 000000000..12e5d100d Binary files /dev/null and b/F-Droid/res/drawable/ic_settings_white.png differ diff --git a/F-Droid/res/drawable/ic_share_white.png b/F-Droid/res/drawable/ic_share_white.png new file mode 100644 index 000000000..dd536bca2 Binary files /dev/null and b/F-Droid/res/drawable/ic_share_white.png differ diff --git a/F-Droid/res/drawable/ic_view_headline_white.png b/F-Droid/res/drawable/ic_view_headline_white.png new file mode 100644 index 000000000..e6ecf5a1d Binary files /dev/null and b/F-Droid/res/drawable/ic_view_headline_white.png differ diff --git a/F-Droid/res/layout/available_app_list.xml b/F-Droid/res/layout/available_app_list.xml new file mode 100644 index 000000000..f4c147f8b --- /dev/null +++ b/F-Droid/res/layout/available_app_list.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <Spinner + android:id="@+id/category_spinner" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + </Spinner> + + <ListView + android:id="@android:id/list" + android:fastScrollEnabled="true" + android:layout_width="match_parent" + android:layout_height="match_parent"> + </ListView> + +</LinearLayout> \ No newline at end of file diff --git a/F-Droid/res/layout/swap_blank.xml b/F-Droid/res/layout/swap_blank.xml index ff4591a89..5825668d0 100644 --- a/F-Droid/res/layout/swap_blank.xml +++ b/F-Droid/res/layout/swap_blank.xml @@ -18,6 +18,7 @@ android:text="@string/swap_start" style="@style/SwapTheme.StartSwap.StartButton" android:layout_width="match_parent" + android:layout_height="wrap_content" android:layout_below="@+id/text_description" android:layout_centerHorizontal="true"/> diff --git a/F-Droid/res/menu/main.xml b/F-Droid/res/menu/main.xml index e768a8152..b454adc54 100644 --- a/F-Droid/res/menu/main.xml +++ b/F-Droid/res/menu/main.xml @@ -4,12 +4,12 @@ <item android:id="@+id/action_search" - android:icon="@android:drawable/ic_menu_search" + android:icon="@drawable/ic_search_white" android:title="@string/menu_search" app:showAsAction="always"/> <item android:id="@+id/action_update_repo" - android:icon="@drawable/ic_menu_refresh" + android:icon="@drawable/ic_refresh_white" android:title="@string/menu_update_repo" app:showAsAction="ifRoom"/> <item @@ -18,22 +18,22 @@ app:showAsAction="ifRoom"/> <item android:id="@+id/action_manage_repos" - android:icon="@android:drawable/ic_menu_agenda" + android:icon="@drawable/ic_view_headline_white" android:title="@string/menu_manage" app:showAsAction="ifRoom"/> <item android:id="@+id/action_bluetooth_apk" - android:icon="@android:drawable/stat_sys_data_bluetooth" + android:icon="@drawable/ic_bluetooth_white" android:title="@string/menu_send_apk_bt" app:showAsAction="ifRoom"/> <item android:id="@+id/action_settings" - android:icon="@android:drawable/ic_menu_preferences" + android:icon="@drawable/ic_settings_white" android:title="@string/menu_preferences" app:showAsAction="ifRoom"/> <item android:id="@+id/action_about" - android:icon="@android:drawable/ic_menu_help" + android:icon="@drawable/ic_help_white" android:title="@string/menu_about" app:showAsAction="ifRoom"/> diff --git a/F-Droid/res/menu/manage_repo_context.xml b/F-Droid/res/menu/manage_repo_context.xml index cef66b120..57506a395 100644 --- a/F-Droid/res/menu/manage_repo_context.xml +++ b/F-Droid/res/menu/manage_repo_context.xml @@ -5,11 +5,11 @@ <item android:id="@+id/edit_repo" android:title="@string/edit" - android:icon="@android:drawable/ic_menu_edit" /> + android:icon="@drawable/ic_edit_white" /> <item android:id="@+id/delete_repo" android:title="@string/delete" - android:icon="@android:drawable/ic_menu_delete" /> + android:icon="@drawable/ic_delete_white" /> </menu> \ No newline at end of file diff --git a/F-Droid/res/menu/manage_repos.xml b/F-Droid/res/menu/manage_repos.xml index 6fa0b699a..ef440e3dc 100644 --- a/F-Droid/res/menu/manage_repos.xml +++ b/F-Droid/res/menu/manage_repos.xml @@ -4,12 +4,12 @@ <item android:id="@+id/action_update_repo" - android:icon="@drawable/ic_menu_refresh" + android:icon="@drawable/ic_refresh_white" android:title="@string/menu_update_repo" app:showAsAction="always|withText"/> <item android:id="@+id/action_add_repo" - android:icon="@android:drawable/ic_menu_add" + android:icon="@drawable/ic_add_white" android:title="@string/menu_add_repo" app:showAsAction="always|withText"/> <item diff --git a/F-Droid/res/menu/swap_next_search.xml b/F-Droid/res/menu/swap_next_search.xml index 0a048467f..2f2bd980c 100644 --- a/F-Droid/res/menu/swap_next_search.xml +++ b/F-Droid/res/menu/swap_next_search.xml @@ -7,7 +7,7 @@ <item android:id="@+id/action_search" - android:icon="@android:drawable/ic_menu_search" + android:icon="@drawable/ic_search_white" android:title="@string/menu_search" android:titleCondensed="@string/menu_search"/> diff --git a/F-Droid/res/values-v11/styles.xml b/F-Droid/res/values-v11/styles.xml deleted file mode 100644 index 0d7bd9897..000000000 --- a/F-Droid/res/values-v11/styles.xml +++ /dev/null @@ -1,15 +0,0 @@ -<resources> - - <style name="AppBaseThemeDark" parent="Theme.AppCompat"> - <!-- API 11 theme customizations go here --> - </style> - - <style name="AppBaseThemeLight" parent="Theme.AppCompat.Light"> - <!-- API 11 theme customizations go here --> - </style> - - <style name="AppBaseThemeLightWithDarkActionBar" parent="Theme.AppCompat.Light.DarkActionBar"> - <!-- API 11 theme customizations go here --> - </style> - -</resources> diff --git a/F-Droid/res/values-v21/styles.xml b/F-Droid/res/values-v21/styles.xml new file mode 100644 index 000000000..76b75bab0 --- /dev/null +++ b/F-Droid/res/values-v21/styles.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <style name="AppThemeDark" parent="AppBaseThemeDark"> + <!-- customizations that are not API-level specific go here. --> + <item name="android:colorEdgeEffect">@color/fdroid_blue</item> + <item name="android:colorControlActivated">@color/fdroid_green</item> + <item name="android:colorControlHighlight">@color/fdroid_green</item> + </style> + + <style name="AppThemeLight" parent="AppBaseThemeLight"> + <!-- customizations that are not API-level specific go here. --> + <item name="android:colorEdgeEffect">@color/fdroid_blue</item> + </style> + +</resources> \ No newline at end of file diff --git a/F-Droid/res/values/array.xml b/F-Droid/res/values/array.xml index 3deb4a5d4..38e4465c7 100644 --- a/F-Droid/res/values/array.xml +++ b/F-Droid/res/values/array.xml @@ -13,6 +13,5 @@ <string-array name="themeNames"> <item>Dark</item> <item>Light</item> - <item>Light (with dark action bar)</item> </string-array> </resources> diff --git a/F-Droid/res/values/colors.xml b/F-Droid/res/values/colors.xml index 919c8c261..b37bad8d6 100644 --- a/F-Droid/res/values/colors.xml +++ b/F-Droid/res/values/colors.xml @@ -4,6 +4,10 @@ <color name="unsigned">#ffCC0000</color> <color name="unverified">#ff999999</color> + <color name="fdroid_blue">#FF6097C5</color> + <color name="fdroid_blue_dark">#ff4b7195</color> + <color name="fdroid_green">#FFAAD024</color> + <color name="swap_light_blue">#27aae1</color> <color name="swap_light_blue_pressed">#ff98cce1</color> <color name="swap_blue">#1c6bbc</color> diff --git a/F-Droid/res/values/donottranslate.xml b/F-Droid/res/values/donottranslate.xml index 359feb67c..e7743b0fe 100644 --- a/F-Droid/res/values/donottranslate.xml +++ b/F-Droid/res/values/donottranslate.xml @@ -26,7 +26,6 @@ <string-array name="themeValues"> <item>dark</item> <item>light</item> - <item>lightWithDarkActionBar</item> </string-array> <string-array name="languageValues"> diff --git a/F-Droid/res/values/ids.xml b/F-Droid/res/values/ids.xml index 2d82ad59c..9b031b54e 100644 --- a/F-Droid/res/values/ids.xml +++ b/F-Droid/res/values/ids.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> <resources> - <item type="id" name="categorySpinner" /> + <item type="id" name="category_spinner" /> <item type="id" name="appDetailsSummaryHeader" /> </resources> \ No newline at end of file diff --git a/F-Droid/res/values/styles.xml b/F-Droid/res/values/styles.xml index a0522db1a..bc1e3c317 100644 --- a/F-Droid/res/values/styles.xml +++ b/F-Droid/res/values/styles.xml @@ -2,14 +2,17 @@ <style name="AppBaseThemeDark" parent="Theme.AppCompat"> <!-- backward-compatibility theme options go here --> + + <item name="colorPrimary">@color/fdroid_blue</item> + <item name="colorPrimaryDark">@color/fdroid_blue_dark</item> + </style> - <style name="AppBaseThemeLight" parent="Theme.AppCompat.Light"> + <style name="AppBaseThemeLight" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- backward-compatibility theme options go here --> - </style> - <style name="AppBaseThemeLightWithDarkActionBar" parent="Theme.AppCompat.Light.DarkActionBar"> - <!-- backward-compatibility theme options go here --> + <item name="colorPrimary">@color/fdroid_blue</item> + <item name="colorPrimaryDark">@color/fdroid_blue_dark</item> </style> <color name="black">#FF000000</color> @@ -29,24 +32,20 @@ <!-- customizations that are not API-level specific go here. --> </style> - <style name="AppThemeLightWithDarkActionBar" parent="AppBaseThemeLightWithDarkActionBar"> - <!-- customizations that are not API-level specific go here. --> - </style> - <style name="SwapTheme.Wizard" parent="AppThemeDark"> <item name="android:windowBackground">@drawable/swap_window_background</item> <item name="android:actionBarStyle">@style/Widget.AppCompat.ActionBar.Solid</item> <item name="android:actionButtonStyle">@style/SwapTheme.Wizard.ActionButton</item> </style> - <style name="SwapTheme.StartSwap" parent="AppThemeLightWithDarkActionBar"> + <style name="SwapTheme.StartSwap" parent="AppThemeLight"> <item name="android:background">@color/white</item> </style> - <style name="SwapTheme.AppList" parent="AppThemeLightWithDarkActionBar"> + <style name="SwapTheme.AppList" parent="AppThemeLight"> </style> - <style name="SwapTheme.AppList.ListItem" parent="AppThemeLightWithDarkActionBar"> + <style name="SwapTheme.AppList.ListItem" parent="AppThemeLight"> </style> <style name="SwapTheme.StartSwap.StartButton"> @@ -54,10 +53,10 @@ <item name="android:layout_marginRight">9dp</item> <!-- 16px * 96dpi / 160dpi --> <item name="android:layout_height">63.3dp</item> <!-- 113px * 96dpi / 160dpi --> <item name="android:layout_width">match_parent</item> + <item name="android:textColor">@android:color/white</item> <item name="android:textSize">18.5sp</item> <!-- 33px * 96dpi / 160dpi --> <item name="android:background">@drawable/swap_start_button_skin</item> - <item name="android:textColor">#fff</item> <item name="android:drawableLeft">@drawable/ic_swap</item> <item name="android:paddingLeft">10dp</item> @@ -105,7 +104,6 @@ <item name="android:paddingRight">10dp</item> <item name="android:paddingTop">5dp</item> <item name="android:paddingBottom">5dp</item> - <item name="android:background">@drawable/swap_action_button_skin</item> </style> <style name="SwapTheme.Wizard.MainText" parent="@style/SwapTheme.Wizard.Text"> @@ -179,4 +177,4 @@ <item name="android:textStyle">italic</item> </style> -</resources> +</resources> \ No newline at end of file diff --git a/F-Droid/src/org/fdroid/fdroid/AppDetails.java b/F-Droid/src/org/fdroid/fdroid/AppDetails.java index 94fb31063..105e27e96 100644 --- a/F-Droid/src/org/fdroid/fdroid/AppDetails.java +++ b/F-Droid/src/org/fdroid/fdroid/AppDetails.java @@ -632,14 +632,14 @@ public class AppDetails extends ActionBarActivity implements ProgressListener, A MenuItemCompat.setShowAsAction(menu.add( Menu.NONE, SHARE, 1, R.string.menu_share) - .setIcon(android.R.drawable.ic_menu_share), + .setIcon(R.drawable.ic_share_white), MenuItemCompat.SHOW_AS_ACTION_IF_ROOM | MenuItemCompat.SHOW_AS_ACTION_WITH_TEXT); if (app.isInstalled()) { MenuItemCompat.setShowAsAction(menu.add( Menu.NONE, UNINSTALL, 1, R.string.menu_uninstall) - .setIcon(android.R.drawable.ic_menu_delete), + .setIcon(R.drawable.ic_delete_white), MenuItemCompat.SHOW_AS_ACTION_IF_ROOM | MenuItemCompat.SHOW_AS_ACTION_WITH_TEXT); } @@ -647,19 +647,19 @@ public class AppDetails extends ActionBarActivity implements ProgressListener, A if (mPm.getLaunchIntentForPackage(app.id) != null && app.canAndWantToUpdate()) { MenuItemCompat.setShowAsAction(menu.add( Menu.NONE, LAUNCH, 1, R.string.menu_launch) - .setIcon(android.R.drawable.ic_media_play), + .setIcon(R.drawable.ic_play_arrow_white), MenuItemCompat.SHOW_AS_ACTION_ALWAYS | MenuItemCompat.SHOW_AS_ACTION_WITH_TEXT); } menu.add(Menu.NONE, IGNOREALL, 2, R.string.menu_ignore_all) - .setIcon(android.R.drawable.ic_menu_close_clear_cancel) + .setIcon(R.drawable.ic_do_not_disturb_white) .setCheckable(true) .setChecked(app.ignoreAllUpdates); if (app.hasUpdates()) { menu.add(Menu.NONE, IGNORETHIS, 2, R.string.menu_ignore_this) - .setIcon(android.R.drawable.ic_menu_close_clear_cancel) + .setIcon(R.drawable.ic_do_not_disturb_white) .setCheckable(true) .setChecked(app.ignoreThisUpdate >= app.suggestedVercode); } @@ -667,7 +667,7 @@ public class AppDetails extends ActionBarActivity implements ProgressListener, A // Ignore on devices without Bluetooth if (app.isInstalled() && fdroidApp.bluetoothAdapter != null) { menu.add(Menu.NONE, SEND_VIA_BLUETOOTH, 3, R.string.send_via_bluetooth) - .setIcon(android.R.drawable.stat_sys_data_bluetooth); + .setIcon(R.drawable.ic_bluetooth_white); } return true; } diff --git a/F-Droid/src/org/fdroid/fdroid/FDroidApp.java b/F-Droid/src/org/fdroid/fdroid/FDroidApp.java index bcdc9fd69..53848a639 100644 --- a/F-Droid/src/org/fdroid/fdroid/FDroidApp.java +++ b/F-Droid/src/org/fdroid/fdroid/FDroidApp.java @@ -87,12 +87,12 @@ public class FDroidApp extends Application { dark, light, lightWithDarkActionBar } - private static Theme curTheme = Theme.dark; + private static Theme curTheme = Theme.light; public void reloadTheme() { curTheme = Theme.valueOf(PreferenceManager .getDefaultSharedPreferences(getBaseContext()) - .getString(Preferences.PREF_THEME, "dark")); + .getString(Preferences.PREF_THEME, Preferences.DEFAULT_THEME)); } public void applyTheme(Activity activity) { @@ -109,8 +109,6 @@ public class FDroidApp extends Application { return R.style.AppThemeDark; case light: return R.style.AppThemeLight; - case lightWithDarkActionBar: - return R.style.AppThemeLightWithDarkActionBar; default: return R.style.AppThemeDark; } diff --git a/F-Droid/src/org/fdroid/fdroid/views/fragments/AvailableAppsFragment.java b/F-Droid/src/org/fdroid/fdroid/views/fragments/AvailableAppsFragment.java index efb5e49ad..281c7babf 100644 --- a/F-Droid/src/org/fdroid/fdroid/views/fragments/AvailableAppsFragment.java +++ b/F-Droid/src/org/fdroid/fdroid/views/fragments/AvailableAppsFragment.java @@ -17,7 +17,6 @@ import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.ArrayAdapter; -import android.widget.LinearLayout; import android.widget.ListView; import android.widget.Spinner; @@ -124,28 +123,25 @@ public class AvailableAppsFragment extends AppListFragment implements */ @SuppressWarnings("deprecation") private void styleSpinner(Spinner spinner) { - if (Build.VERSION.SDK_INT >= 14) { - Drawable menuButton = getResources().getDrawable(android.R.drawable.btn_dropdown); - if (FDroidApp.getCurTheme() == FDroidApp.Theme.dark) { - menuButton.setAlpha(32); // make it darker via alpha - } - if (Build.VERSION.SDK_INT >= 16) { - spinner.setBackground(menuButton); - } else { - spinner.setBackgroundDrawable(menuButton); - } + + Drawable menuButton = getResources().getDrawable(android.R.drawable.btn_dropdown); + if (FDroidApp.getCurTheme() == FDroidApp.Theme.dark) { + menuButton.setAlpha(32); // make it darker via alpha + } + if (Build.VERSION.SDK_INT >= 16) { + spinner.setBackground(menuButton); + } else { + spinner.setBackgroundDrawable(menuButton); } } - private Spinner createCategorySpinner() { + private Spinner setupCategorySpinner(Spinner spinner) { + + categorySpinner = spinner; + categorySpinner.setId(R.id.category_spinner); categories = AppProvider.Helper.categories(getActivity()); - categorySpinner = new Spinner(getActivity()); - - // Giving it an ID lets the default save/restore state functionality do its stuff. - categorySpinner.setId(R.id.categorySpinner); - styleSpinner(categorySpinner); ArrayAdapter<String> adapter = new ArrayAdapter<>( @@ -173,24 +169,11 @@ public class AvailableAppsFragment extends AppListFragment implements @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { - LinearLayout view = new LinearLayout(getActivity()); - view.setOrientation(LinearLayout.VERTICAL); + View view = inflater.inflate(R.layout.available_app_list, container, false); - view.addView( - createCategorySpinner(), - new ViewGroup.LayoutParams( - LinearLayout.LayoutParams.MATCH_PARENT, - LinearLayout.LayoutParams.WRAP_CONTENT)); + setupCategorySpinner((Spinner)view.findViewById(R.id.category_spinner)); - ListView list = new ListView(getActivity()); - list.setId(android.R.id.list); - list.setFastScrollEnabled(true); - list.setOnItemClickListener(this); - view.addView( - list, - new ViewGroup.LayoutParams( - LinearLayout.LayoutParams.MATCH_PARENT, - LinearLayout.LayoutParams.MATCH_PARENT)); + ((ListView)view.findViewById(android.R.id.list)).setOnItemClickListener(this); // R.string.category_whatsnew is the default set in AppListManager DEFAULT_CATEGORY = getActivity().getString(R.string.category_whatsnew); diff --git a/F-Droid/src/org/fdroid/fdroid/views/fragments/RepoDetailsFragment.java b/F-Droid/src/org/fdroid/fdroid/views/fragments/RepoDetailsFragment.java index 0e8711aa7..19f8990a7 100644 --- a/F-Droid/src/org/fdroid/fdroid/views/fragments/RepoDetailsFragment.java +++ b/F-Droid/src/org/fdroid/fdroid/views/fragments/RepoDetailsFragment.java @@ -274,13 +274,13 @@ public class RepoDetailsFragment extends Fragment { menu.clear(); MenuItem update = menu.add(Menu.NONE, UPDATE, 0, R.string.repo_update); - update.setIcon(R.drawable.ic_menu_refresh); + update.setIcon(R.drawable.ic_refresh_white); MenuItemCompat.setShowAsAction(update, MenuItemCompat.SHOW_AS_ACTION_ALWAYS | MenuItemCompat.SHOW_AS_ACTION_WITH_TEXT); MenuItem delete = menu.add(Menu.NONE, DELETE, 0, R.string.delete); - delete.setIcon(android.R.drawable.ic_menu_delete); + delete.setIcon(R.drawable.ic_delete_white); MenuItemCompat.setShowAsAction(delete, MenuItemCompat.SHOW_AS_ACTION_IF_ROOM | MenuItemCompat.SHOW_AS_ACTION_WITH_TEXT); @@ -307,7 +307,7 @@ public class RepoDetailsFragment extends Fragment { if (enableNfc != null) return; // already created enableNfc = menu.add(Menu.NONE, ENABLE_NFC, 0, R.string.enable_nfc_send); - enableNfc.setIcon(android.R.drawable.ic_menu_preferences); + enableNfc.setIcon(R.drawable.ic_nfc_white); MenuItemCompat.setShowAsAction(enableNfc, MenuItemCompat.SHOW_AS_ACTION_IF_ROOM | MenuItemCompat.SHOW_AS_ACTION_WITH_TEXT); diff --git a/F-Droid/tools/download-material-icon.sh b/F-Droid/tools/download-material-icon.sh new file mode 100755 index 000000000..fc5ce8639 --- /dev/null +++ b/F-Droid/tools/download-material-icon.sh @@ -0,0 +1,74 @@ +#!/bin/bash + +# +# Helper script to download icons from https://github.com/google/material-design-icons and +# put the in the relevant drawable-* directories. +# + +function usage { + echo "USAGE: download-material-icon.sh res-directory category icon" + echo " res-directory Usually \"res\" in your android project" + echo " category the grouping seen in the URL below (e.g. action, alert, av, communication, content, etc)" + echo " icon is the name if the icon (see URL below for icons)" + echo "" + echo "To see available icons, visit http://google.github.io/material-design-icons/" +} + +function download { + REMOTE_DRAWABLE_DIR=$1 + LOCAL_DRAWABLE_DIR=$2 + FILE="ic_${ICON}_48dp.png" + URL="$BASE_URL/$CATEGORY/$REMOTE_DRAWABLE_DIR/$FILE" + DIR="$RES_DIR/$LOCAL_DRAWABLE_DIR" + + if [ ! -d $DIR ] + then + echo "Creating dir $DIR" + mkdir $DIR + fi + + LOCAL_PATH="$DIR/ic_${ICON}.png" + + echo "Downloading to $LOCAL_PATH" + wget --quiet --output-document=$LOCAL_PATH $URL + + if [ ! -s $LOCAL_PATH ] + then + if [ -f $LOCAL_PATH ] + then + rm $LOCAL_PATH + fi + + echo "ERROR: Could not download from $URL to $LOCAL_PATH failed." + echo "" + usage + exit + fi +} + +RES_DIR=$1 +CATEGORY=$2 +ICON="${3}_white" +BASE_URL="https://raw.githubusercontent.com/google/material-design-icons/master" +SCREENS="mdpi hdpi xhdpi xxhdpi xxxhdpi" + +if [ ! -d $RES_DIR ] +then + echo "ERROR: $RES_DIR is not a directory" + echo "" + usage + exit +fi + +download drawable-mdpi drawable +for SCREEN in $SCREENS +do + download "drawable-$SCREEN" "drawable-$SCREEN" +done + +echo "" +echo "Please make sure you have the following attribution (or words to this effect) somewhere in your project:" +echo "" +echo " Some icons are from the Material Design Icon set (https://github.com/google/material-design-icons)" +echo " released under an Attribution 4.0 International license (http://creativecommons.org/licenses/by/4.0/)" +echo "" diff --git a/README.md b/README.md index 5d5ec6300..73927e9a4 100644 --- a/README.md +++ b/README.md @@ -139,3 +139,8 @@ Some icons are made by [Picol](http://www.flaticon.com/authors/picol), [Dave Gandy](http://www.flaticon.com/authors/dave-gandy) from [Flaticon](http://www.flaticon.com) or by Google and are licensed by [Creative Commons BY 3.0](http://creativecommons.org/licenses/by/3.0/). + +Other icons are from the +[Material Design Icon set](https://github.com/google/material-design-icons) +released under an +[Attribution 4.0 International license](http://creativecommons.org/licenses/by/4.0/).