Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 4 additions & 18 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
import javax.annotation.Nullable

buildscript {
repositories {
mavenCentral()
}

dependencies {
//noinspection GradleDynamicVersion
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
}
}

apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.hugo'

static def gitBranch() {
def branch = 'GitHub'
Expand Down Expand Up @@ -46,13 +32,13 @@ static def getProperty(@Nullable Properties properties, String name) {
}

android {
compileSdkVersion 27
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
minSdkVersion 16
targetSdkVersion 27
targetSdkVersion 28

renderscriptTargetApi 27
renderscriptTargetApi 28
vectorDrawables.useSupportLibrary = true

applicationId 'com.kabouzeid.gramophone'
Expand Down Expand Up @@ -100,7 +86,7 @@ android {
}

ext {
supportLibVersion = '27.1.1'
supportLibVersion = '28.0.0'
}

dependencies {
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/res/drawable/tab_indicator.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners
android:topLeftRadius="8dp"
android:topRightRadius="8dp" />
<solid android:color="@color/md_red_500" />
</shape>
1 change: 1 addition & 0 deletions app/src/main/res/layout/fragment_library.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="@dimen/tab_height"
style="@style/TabLayoutStyle"
app:tabContentStart="72dp"
app:tabMode="scrollable" />

Expand Down
10 changes: 10 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,14 @@
<item name="android:transitionName" tools:ignore="NewApi">toolbar</item>
</style>

<style name="TabLayoutStyle" parent="Base.Widget.Design.TabLayout">
<item name="tabIndicator">@drawable/tab_indicator</item>
<item name="tabIndicatorFullWidth">false</item>
<item name="tabIndicatorAnimationDuration">@android:integer/config_mediumAnimTime</item>
<item name="tabGravity">fill</item>
<item name="tabIndicatorHeight">4dp</item>
<item name="tabInlineLabel">true</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
</style>
</resources>
15 changes: 10 additions & 5 deletions app/src/main/res/xml/pref_audio.xml
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory android:title="@string/pref_header_audio">

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
android:defaultValue="true"
android:key="audio_ducking"
android:summary="@string/pref_summary_audio_ducking"
android:title="@string/pref_title_audio_ducking" />
android:title="@string/pref_title_audio_ducking"
app:iconSpaceReserved="false" />

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
android:defaultValue="false"
android:key="gapless_playback"
android:summary="@string/pref_summary_gapless_playback"
android:title="@string/pref_title_gapless_playback" />
android:title="@string/pref_title_gapless_playback"
app:iconSpaceReserved="false" />

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
android:defaultValue="true"
android:key="remember_shuffle"
android:summary="@string/pref_summary_remember_shuffle"
android:title="@string/pref_title_remember_shuffle" />
android:title="@string/pref_title_remember_shuffle"
app:iconSpaceReserved="false" />

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEPreference
android:key="equalizer"
android:title="@string/equalizer" />
android:title="@string/equalizer"
app:iconSpaceReserved="false" />

</com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory>

Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/xml/pref_blacklist.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory android:title="@string/blacklist">

<com.kabouzeid.gramophone.preferences.BlacklistPreference
android:key="blacklist"
app:iconSpaceReserved="false"
android:summary="@string/pref_summary_blacklist"
android:title="@string/blacklist" />

Expand Down
8 changes: 7 additions & 1 deletion app/src/main/res/xml/pref_colors.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory android:title="@string/pref_header_colors">

Expand All @@ -7,31 +8,36 @@
android:entries="@array/pref_general_theme_list_titles"
android:entryValues="@array/pref_general_theme_list_values"
android:key="general_theme"
app:iconSpaceReserved="false"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:title="@string/pref_title_general_theme" />

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEColorPreference
android:key="primary_color"
app:iconSpaceReserved="false"
android:persistent="false"
android:summary="@string/primary_color_desc"
android:title="@string/primary_color" />

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEColorPreference
android:key="accent_color"
android:persistent="false"
app:iconSpaceReserved="false"
android:summary="@string/accent_color_desc"
android:title="@string/accent_color" />

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
android:defaultValue="false"
app:iconSpaceReserved="false"
android:key="should_color_navigation_bar"
android:persistent="false"
android:summary="@string/pref_summary_colored_navigation_bar"
android:title="@string/pref_title_navigation_bar" />

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
android:defaultValue="true"
app:iconSpaceReserved="false"
android:key="should_color_app_shortcuts"
android:summary="@string/pref_summary_colored_app_shortcuts"
android:title="@string/pref_title_app_shortcuts" />
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/res/xml/pref_images.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory android:title="@string/pref_header_images">

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
android:defaultValue="false"
app:iconSpaceReserved="false"
android:key="ignore_media_store_artwork"
android:summary="@string/pref_summary_ignore_media_store_artwork"
android:title="@string/pref_title_ignore_media_store_artwork" />

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEListPreference
android:defaultValue="only_wifi"
app:iconSpaceReserved="false"
android:entries="@array/pref_auto_download_images_titles"
android:entryValues="@array/pref_auto_download_images_values"
android:key="auto_download_images_policy"
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/res/xml/pref_library.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory android:title="@string/pref_header_library">

<com.kabouzeid.gramophone.preferences.LibraryPreference
android:key="library_categories"
app:iconSpaceReserved="false"
android:summary="@string/pref_summary_library_categories"
android:title="@string/library_categories" />

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
android:defaultValue="true"
app:iconSpaceReserved="false"
android:key="remember_last_tab"
android:summary="@string/pref_summary_remember_last_tab"
android:title="@string/pref_title_remember_last_tab" />
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/res/xml/pref_lockscreen.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory android:title="@string/pref_header_lockscreen">

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
android:defaultValue="true"
app:iconSpaceReserved="false"
android:key="album_art_on_lockscreen"
android:summary="@string/pref_summary_album_art_on_lockscreen"
android:title="@string/pref_title_album_art_on_lockscreen" />
Expand All @@ -12,6 +14,7 @@
android:defaultValue="false"
android:dependency="album_art_on_lockscreen"
android:key="blurred_album_art"
app:iconSpaceReserved="false"
android:summary="@string/pref_summary_blurred_album_art"
android:title="@string/pref_title_blurred_album_art" />

Expand Down
5 changes: 4 additions & 1 deletion app/src/main/res/xml/pref_notification.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory android:title="@string/pref_header_notification">

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
android:defaultValue="false"
android:key="classic_notification"
app:iconSpaceReserved="false"
android:summary="@string/pref_summary_classic_notification"
android:title="@string/pref_title_classic_notification" />

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
android:defaultValue="true"
android:key="colored_notification"
app:iconSpaceReserved="false"
android:summary="@string/pref_summary_colored_notification"
android:title="@string/pref_title_colored_notification" />

Expand Down
5 changes: 4 additions & 1 deletion app/src/main/res/xml/pref_now_playing_screen.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory android:title="@string/pref_header_now_playing_screen">

<com.kabouzeid.gramophone.preferences.NowPlayingScreenPreference
android:key="now_playing_screen_id"
app:iconSpaceReserved="false"
android:title="@string/pref_title_now_playing_screen_appearance" />

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
android:defaultValue="true"
app:iconSpaceReserved="false"
android:key="synchronized_lyrics_show"
android:summary="@string/pref_summary_synchronized_lyrics_show"
android:title="@string/pref_title_synchronized_lyrics_show" />
Expand Down
9 changes: 6 additions & 3 deletions app/src/main/res/xml/pref_playlists.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.v7.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory android:title="@string/pref_header_playlists">

Expand All @@ -8,17 +9,19 @@
android:entryValues="@array/pref_playlists_recently_played_interval_values"
android:key="recently_played_interval"
android:negativeButtonText="@null"
app:iconSpaceReserved="false"
android:positiveButtonText="@null"
android:title="@string/pref_title_recently_played_interval" />

<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEListPreference
<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEListPreference
android:defaultValue="this_month"
android:entries="@array/pref_playlists_last_added_interval_titles"
android:entryValues="@array/pref_playlists_last_added_interval_values"
android:key="last_added_interval"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:title="@string/pref_title_last_added_interval" />
android:title="@string/pref_title_last_added_interval"
app:iconSpaceReserved="false" />

</com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEPreferenceCategory>

Expand Down