Merge branch 'dev' into dev
BIN
app/src/main/res/drawable-hdpi/ic_kiosk_local_black_24dp.png
Executable file
|
After Width: | Height: | Size: 208 B |
BIN
app/src/main/res/drawable-hdpi/ic_kiosk_local_white_24dp.png
Executable file
|
After Width: | Height: | Size: 206 B |
BIN
app/src/main/res/drawable-hdpi/ic_kiosk_recent_black_24dp.png
Executable file
|
After Width: | Height: | Size: 475 B |
BIN
app/src/main/res/drawable-hdpi/ic_kiosk_recent_white_24dp.png
Executable file
|
After Width: | Height: | Size: 460 B |
BIN
app/src/main/res/drawable-mdpi/ic_kiosk_local_black_24dp.png
Executable file
|
After Width: | Height: | Size: 166 B |
BIN
app/src/main/res/drawable-mdpi/ic_kiosk_local_white_24dp.png
Executable file
|
After Width: | Height: | Size: 166 B |
BIN
app/src/main/res/drawable-mdpi/ic_kiosk_recent_black_24dp.png
Executable file
|
After Width: | Height: | Size: 311 B |
BIN
app/src/main/res/drawable-mdpi/ic_kiosk_recent_white_24dp.png
Executable file
|
After Width: | Height: | Size: 312 B |
BIN
app/src/main/res/drawable-nodpi/place_holder_peertube.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_kiosk_local_black_24dp.png
Executable file
|
After Width: | Height: | Size: 235 B |
BIN
app/src/main/res/drawable-xhdpi/ic_kiosk_local_white_24dp.png
Executable file
|
After Width: | Height: | Size: 226 B |
BIN
app/src/main/res/drawable-xhdpi/ic_kiosk_recent_black_24dp.png
Executable file
|
After Width: | Height: | Size: 597 B |
BIN
app/src/main/res/drawable-xhdpi/ic_kiosk_recent_white_24dp.png
Executable file
|
After Width: | Height: | Size: 588 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_kiosk_local_black_24dp.png
Executable file
|
After Width: | Height: | Size: 291 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_kiosk_local_white_24dp.png
Executable file
|
After Width: | Height: | Size: 284 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_kiosk_recent_black_24dp.png
Executable file
|
After Width: | Height: | Size: 856 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_kiosk_recent_white_24dp.png
Executable file
|
After Width: | Height: | Size: 835 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_kiosk_local_black_24dp.png
Executable file
|
After Width: | Height: | Size: 344 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_kiosk_local_white_24dp.png
Executable file
|
After Width: | Height: | Size: 345 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_kiosk_recent_black_24dp.png
Executable file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ic_kiosk_recent_white_24dp.png
Executable file
|
After Width: | Height: | Size: 1.1 KiB |
|
|
@ -47,15 +47,22 @@
|
|||
|
||||
<TextView
|
||||
android:id="@+id/drawer_header_service_view"
|
||||
android:layout_width="100dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="100dp"
|
||||
android:layout_alignLeft="@id/drawer_header_np_text_view"
|
||||
android:layout_alignStart="@id/drawer_header_np_text_view"
|
||||
android:layout_below="@id/drawer_header_np_text_view"
|
||||
android:layout_toLeftOf="@id/drawer_arrow"
|
||||
android:layout_marginRight="5dp"
|
||||
android:text="YouTube"
|
||||
android:textSize="18sp"
|
||||
android:textColor="@color/drawer_header_font_color"
|
||||
android:textStyle="italic" />
|
||||
android:textStyle="italic"
|
||||
android:ellipsize="marquee"
|
||||
android:fadingEdge="horizontal"
|
||||
android:marqueeRepeatLimit="marquee_forever"
|
||||
android:scrollHorizontally="true"
|
||||
android:singleLine="true" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/drawer_arrow"
|
||||
|
|
|
|||
|
|
@ -46,15 +46,22 @@ android:focusable="true">
|
|||
|
||||
<TextView
|
||||
android:id="@+id/drawer_header_service_view"
|
||||
android:layout_width="100dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="100dp"
|
||||
android:text="YouTube"
|
||||
android:layout_below="@id/drawer_header_np_text_view"
|
||||
android:layout_alignLeft="@id/drawer_header_np_text_view"
|
||||
android:layout_alignStart="@id/drawer_header_np_text_view"
|
||||
android:layout_toLeftOf="@id/drawer_arrow"
|
||||
android:layout_marginRight="5dp"
|
||||
android:textSize="18sp"
|
||||
android:textColor="@color/drawer_header_font_color"
|
||||
android:textStyle="italic"/>
|
||||
android:textStyle="italic"
|
||||
android:ellipsize="marquee"
|
||||
android:fadingEdge="horizontal"
|
||||
android:marqueeRepeatLimit="marquee_forever"
|
||||
android:scrollHorizontally="true"
|
||||
android:singleLine="true" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/drawer_arrow"
|
||||
|
|
|
|||
|
|
@ -16,7 +16,8 @@
|
|||
android:layout_height="wrap_content"
|
||||
app:elevation="0dp"
|
||||
android:background="?attr/android:windowBackground"
|
||||
app:headerLayout="@layout/drawer_header"/>
|
||||
app:headerLayout="@layout/drawer_header"
|
||||
android:theme="@style/NavViewTextStyle"/>
|
||||
<!-- app:menu="@menu/drawer_items" -->
|
||||
|
||||
<LinearLayout
|
||||
|
|
|
|||
51
app/src/main/res/layout/fragment_instance_list.xml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/instanceHelpTV"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="15dp"
|
||||
android:autoLink="web"
|
||||
android:text="@string/peertube_instance_url_help"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/instances"
|
||||
android:layout_below="@id/instanceHelpTV"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:listitem="@layout/item_instance" />
|
||||
|
||||
<!-- LOADING INDICATOR-->
|
||||
<ProgressBar
|
||||
android:id="@+id/loading_progress_bar"
|
||||
style="@style/Widget.AppCompat.ProgressBar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:indeterminate="true"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/addInstanceButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
app:backgroundTint="?attr/colorPrimary"
|
||||
app:fabSize="auto"
|
||||
app:srcCompat="?attr/ic_add" />
|
||||
|
||||
</RelativeLayout>
|
||||
6
app/src/main/res/layout/instance_spinner_item.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@android:id/text1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:maxLength="0" />
|
||||
9
app/src/main/res/layout/instance_spinner_layout.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Spinner xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/spinner"
|
||||
tools:listitem="@layout/instance_spinner_item"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="end"
|
||||
android:prompt="@string/choose_instance_prompt" />
|
||||
83
app/src/main/res/layout/item_instance.xml
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.cardview.widget.CardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/layoutCard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="3dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:minHeight="?listPreferredItemHeightSmall"
|
||||
android:orientation="horizontal"
|
||||
app:cardCornerRadius="5dp"
|
||||
app:cardElevation="4dp">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/instanceIcon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginLeft="10dp"
|
||||
tools:ignore="ContentDescription,RtlHardcoded"
|
||||
tools:src="@drawable/place_holder_peertube"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/instanceName"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="6dp"
|
||||
android:layout_toRightOf="@+id/instanceIcon"
|
||||
android:layout_toLeftOf="@id/selectInstanceRB"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="marquee"
|
||||
android:textAppearance="?textAppearanceListItem"
|
||||
tools:ignore="RtlHardcoded"
|
||||
tools:text="Framatube"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/instanceUrl"
|
||||
android:autoLink="web"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="6dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_toRightOf="@id/instanceIcon"
|
||||
android:layout_toLeftOf="@id/selectInstanceRB"
|
||||
android:layout_below="@id/instanceName"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="marquee"
|
||||
android:textAppearance="?textAppearanceListItemSecondary"
|
||||
tools:ignore="RtlHardcoded"
|
||||
tools:text="https://framatube.org"/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/selectInstanceRB"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toLeftOf="@id/handle"
|
||||
android:layout_centerVertical="true"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/handle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:paddingBottom="12dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="10dp"
|
||||
android:paddingTop="12dp"
|
||||
android:src="?attr/drag_handle"
|
||||
tools:ignore="ContentDescription,RtlHardcoded"/>
|
||||
</RelativeLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
|
@ -31,6 +31,25 @@
|
|||
<item name="colorAccent">@color/dark_soundcloud_accent_color</item>
|
||||
</style>
|
||||
|
||||
<!-- PeerTube -->
|
||||
<style name="LightTheme.PeerTube" parent="LightTheme.Switchable">
|
||||
<item name="colorPrimary">@color/light_peertube_primary_color</item>
|
||||
<item name="colorPrimaryDark">@color/light_peertube_dark_color</item>
|
||||
<item name="colorAccent">@color/light_peertube_accent_color</item>
|
||||
</style>
|
||||
|
||||
<style name="DarkTheme.PeerTube" parent="DarkTheme.Switchable">
|
||||
<item name="colorPrimary">@color/dark_peertube_primary_color</item>
|
||||
<item name="colorPrimaryDark">@color/dark_peertube_dark_color</item>
|
||||
<item name="colorAccent">@color/dark_peertube_accent_color</item>
|
||||
</style>
|
||||
|
||||
<style name="BlackTheme.PeerTube" parent="BlackTheme.Switchable">
|
||||
<item name="colorPrimary">@color/dark_peertube_primary_color</item>
|
||||
<item name="colorPrimaryDark">@color/dark_peertube_dark_color</item>
|
||||
<item name="colorAccent">@color/dark_peertube_accent_color</item>
|
||||
</style>
|
||||
|
||||
<!-- Media.ccc -->
|
||||
<style name="LightTheme.MediaCCC" parent="LightTheme.Switchable">
|
||||
<item name="colorPrimary">@color/light_media_ccc_primary_color</item>
|
||||
|
|
@ -49,4 +68,5 @@
|
|||
<item name="colorPrimaryDark">@color/dark_media_ccc_statusbar_color</item>
|
||||
<item name="colorAccent">@color/dark_media_ccc_accent_color</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
|
@ -29,6 +29,8 @@
|
|||
<attr name="bug" format="reference"/>
|
||||
<attr name="settings" format="reference"/>
|
||||
<attr name="ic_hot" format="reference"/>
|
||||
<attr name="ic_kiosk_local" format="reference"/>
|
||||
<attr name="ic_kiosk_recent" format="reference"/>
|
||||
<attr name="ic_channel" format="reference"/>
|
||||
<attr name="ic_bookmark" format="reference"/>
|
||||
<attr name="ic_playlist_add" format="reference"/>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,17 @@
|
|||
<color name="dark_soundcloud_accent_color">#FFFFFF</color>
|
||||
<color name="dark_soundcloud_statusbar_color">#ff9100</color>
|
||||
|
||||
<!-- PeerTube -->
|
||||
<color name="light_peertube_primary_color">#ff6f00</color>
|
||||
<color name="light_peertube_dark_color">#c43e00</color>
|
||||
<color name="light_peertube_accent_color">#000000</color>
|
||||
<color name="light_peertube_statusbar_color">#ff833a</color>
|
||||
|
||||
<color name="dark_peertube_primary_color">#ff6f00</color>
|
||||
<color name="dark_peertube_dark_color">#c43e00</color>
|
||||
<color name="dark_peertube_accent_color">#FFFFFF</color>
|
||||
<color name="dark_peertube_statusbar_color">#ff833a</color>
|
||||
|
||||
<!-- Media.CCC -->
|
||||
<color name="light_media_ccc_primary_color">#9e9e9e</color>
|
||||
<color name="light_media_ccc_dark_color">#616161</color>
|
||||
|
|
|
|||
|
|
@ -145,6 +145,9 @@
|
|||
<string name="default_language_value">en</string>
|
||||
<string name="default_country_value">GB</string>
|
||||
<string name="content_language_key" translatable="false">content_language</string>
|
||||
<string name="peertube_instance_setup_key" translatable="false">peertube_instance_setup</string>
|
||||
<string name="peertube_selected_instance_key" translatable="false">peertube_selected_instance</string>
|
||||
<string name="peertube_instance_list_key" translatable="false">peertube_instance_list</string>
|
||||
<string name="content_country_key" translatable="false">content_country</string>
|
||||
<string name="show_age_restricted_content" translatable="false">show_age_restricted_content</string>
|
||||
<string name="use_tor_key" translatable="false">use_tor</string>
|
||||
|
|
|
|||
|
|
@ -109,6 +109,14 @@
|
|||
<string name="default_content_country_title">Default content country</string>
|
||||
<string name="service_title">Service</string>
|
||||
<string name="content_language_title">Default content language</string>
|
||||
<string name="peertube_instance_url_title">PeerTube instances</string>
|
||||
<string name="peertube_instance_url_summary">Set your favorite peertube instances</string>
|
||||
<string name="peertube_instance_url_help">Find the instances that best suit you on https://joinpeertube.org/instances#instances-list</string>
|
||||
<string name="peertube_instance_add_title">Add instance</string>
|
||||
<string name="peertube_instance_add_help">Enter instance url</string>
|
||||
<string name="peertube_instance_add_fail">Failed to validate instance</string>
|
||||
<string name="peertube_instance_add_https_only">Only https urls are supported</string>
|
||||
<string name="peertube_instance_add_exists">Instance already exists</string>
|
||||
<string name="settings_category_player_title">Player</string>
|
||||
<string name="settings_category_player_behavior_title">Behavior</string>
|
||||
<string name="settings_category_video_audio_title">Video & audio</string>
|
||||
|
|
@ -400,6 +408,9 @@
|
|||
<string name="trending">Trending</string>
|
||||
<string name="top_50">Top 50</string>
|
||||
<string name="new_and_hot">New & hot</string>
|
||||
<string name="local">Local</string>
|
||||
<string name="recently_added">Recently added</string>
|
||||
<string name="most_liked">Most liked</string>
|
||||
<string name="conferences">Conferences</string>
|
||||
<string name="service_kiosk_string" translatable="false">%1$s/%2$s</string>
|
||||
<!-- Play Queue -->
|
||||
|
|
@ -577,4 +588,6 @@
|
|||
<string name="downloads_storage_ask_summary_kitkat">You will be asked where to save each download.\nChoose SAF if you want to download to an external SD card</string>
|
||||
<string name="downloads_storage_use_saf_title">Use SAF</string>
|
||||
<string name="downloads_storage_use_saf_summary">The Storage Access Framework allows downloads to an external SD card.\nNote: some devices are not compatible</string>
|
||||
<string name="choose_instance_prompt">Choose an instance</string>
|
||||
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@
|
|||
<item name="pause">@drawable/ic_pause_black_24dp</item>
|
||||
<item name="settings">@drawable/ic_settings_black_24dp</item>
|
||||
<item name="ic_hot">@drawable/ic_whatshot_black_24dp</item>
|
||||
<item name="ic_kiosk_local">@drawable/ic_kiosk_local_black_24dp</item>
|
||||
<item name="ic_kiosk_recent">@drawable/ic_kiosk_recent_black_24dp</item>
|
||||
<item name="ic_channel">@drawable/ic_channel_black_24dp</item>
|
||||
<item name="ic_bookmark">@drawable/ic_bookmark_black_24dp</item>
|
||||
<item name="ic_playlist_add">@drawable/ic_playlist_add_black_24dp</item>
|
||||
|
|
@ -108,6 +110,8 @@
|
|||
<item name="play">@drawable/ic_play_arrow_white_24dp</item>
|
||||
<item name="settings">@drawable/ic_settings_white_24dp</item>
|
||||
<item name="ic_hot">@drawable/ic_whatshot_white_24dp</item>
|
||||
<item name="ic_kiosk_local">@drawable/ic_kiosk_local_white_24dp</item>
|
||||
<item name="ic_kiosk_recent">@drawable/ic_kiosk_recent_white_24dp</item>
|
||||
<item name="ic_channel">@drawable/ic_channel_white_24dp</item>
|
||||
<item name="ic_bookmark">@drawable/ic_bookmark_white_24dp</item>
|
||||
<item name="ic_playlist_add">@drawable/ic_playlist_add_white_24dp</item>
|
||||
|
|
@ -233,4 +237,8 @@
|
|||
<item name="android:windowIsTranslucent">true</item>
|
||||
<item name="android:windowAnimationStyle">@null</item>
|
||||
</style>
|
||||
|
||||
<style name="NavViewTextStyle">
|
||||
<item name="android:ellipsize">end</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -32,6 +32,25 @@
|
|||
<item name="progress_horizontal_drawable">@drawable/progress_soundcloud_horizontal_dark</item>
|
||||
</style>
|
||||
|
||||
<!-- PeerTube -->
|
||||
<style name="LightTheme.PeerTube" parent="LightTheme.Switchable">
|
||||
<item name="colorPrimary">@color/light_peertube_primary_color</item>
|
||||
<item name="colorPrimaryDark">@color/light_peertube_dark_color</item>
|
||||
<item name="colorAccent">@color/light_peertube_accent_color</item>
|
||||
</style>
|
||||
|
||||
<style name="DarkTheme.PeerTube" parent="DarkTheme.Switchable">
|
||||
<item name="colorPrimary">@color/dark_peertube_primary_color</item>
|
||||
<item name="colorPrimaryDark">@color/dark_peertube_dark_color</item>
|
||||
<item name="colorAccent">@color/dark_peertube_accent_color</item>
|
||||
</style>
|
||||
|
||||
<style name="BlackTheme.PeerTube" parent="BlackTheme.Switchable">
|
||||
<item name="colorPrimary">@color/dark_peertube_primary_color</item>
|
||||
<item name="colorPrimaryDark">@color/dark_peertube_dark_color</item>
|
||||
<item name="colorAccent">@color/dark_peertube_accent_color</item>
|
||||
</style>
|
||||
|
||||
<!-- Media.ccc -->
|
||||
<style name="LightTheme.MediaCCC" parent="LightTheme.Switchable">
|
||||
<item name="colorPrimary">@color/light_media_ccc_primary_color</item>
|
||||
|
|
|
|||
|
|
@ -21,6 +21,13 @@
|
|||
android:summary="%s"
|
||||
android:title="@string/default_content_country_title"/>
|
||||
|
||||
<PreferenceScreen
|
||||
app:iconSpaceReserved="false"
|
||||
android:fragment="org.schabi.newpipe.settings.PeertubeInstanceListFragment"
|
||||
android:key="@string/peertube_instance_setup_key"
|
||||
android:title="@string/peertube_instance_url_title"
|
||||
android:summary="@string/peertube_instance_url_summary"/>
|
||||
|
||||
<SwitchPreference
|
||||
app:iconSpaceReserved="false"
|
||||
android:defaultValue="false"
|
||||
|
|
|
|||