mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-22 16:10:31 +00:00
Converted placeholders to svg
* Required for SubscriptionFragment (otherwise the PopUp-menu uses half of the screen) * Size reduction * Fixed/Improved some images: * Bandcamp: Was facing in the wrong direction and used an incorrect logo * Media CCC: Update logo * YT: Added NewPipe logo so that it's not just a rectangle
This commit is contained in:
parent
f9ccc19df5
commit
70e0085596
@ -207,7 +207,7 @@ public class PeertubeInstanceListFragment extends Fragment {
|
||||
|
||||
new AlertDialog.Builder(c)
|
||||
.setTitle(R.string.peertube_instance_add_title)
|
||||
.setIcon(R.drawable.place_holder_peertube)
|
||||
.setIcon(R.drawable.ic_placeholder_peertube)
|
||||
.setView(dialogBinding.getRoot())
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.setPositiveButton(R.string.ok, (dialog1, which) -> {
|
||||
@ -411,7 +411,7 @@ public class PeertubeInstanceListFragment extends Fragment {
|
||||
lastChecked = instanceRB;
|
||||
}
|
||||
});
|
||||
instanceIconView.setImageResource(R.drawable.place_holder_peertube);
|
||||
instanceIconView.setImageResource(R.drawable.ic_placeholder_peertube);
|
||||
}
|
||||
|
||||
@SuppressLint("ClickableViewAccessibility")
|
||||
|
@ -31,17 +31,17 @@ public final class ServiceHelper {
|
||||
public static int getIcon(final int serviceId) {
|
||||
switch (serviceId) {
|
||||
case 0:
|
||||
return R.drawable.place_holder_youtube;
|
||||
return R.drawable.ic_placeholder_yt;
|
||||
case 1:
|
||||
return R.drawable.place_holder_cloud;
|
||||
return R.drawable.ic_placeholder_cloud;
|
||||
case 2:
|
||||
return R.drawable.place_holder_gadse;
|
||||
return R.drawable.ic_placeholder_media_ccc;
|
||||
case 3:
|
||||
return R.drawable.place_holder_peertube;
|
||||
return R.drawable.ic_placeholder_peertube;
|
||||
case 4:
|
||||
return R.drawable.place_holder_bandcamp;
|
||||
return R.drawable.ic_placeholder_bandcamp;
|
||||
default:
|
||||
return R.drawable.place_holder_circle;
|
||||
return R.drawable.ic_placeholder_circle;
|
||||
}
|
||||
}
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 8.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 8.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB |
10
app/src/main/res/drawable/ic_placeholder_bandcamp.xml
Normal file
10
app/src/main/res/drawable/ic_placeholder_bandcamp.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:width="24dp"
|
||||
android:viewportHeight="97.75"
|
||||
android:viewportWidth="97.75"
|
||||
android:tint="@color/defaultIconTint">
|
||||
<path
|
||||
android:pathData="M48.875,0C21.882,0 0,21.882 0,48.875S21.882,97.75 48.875,97.75 97.75,75.868 97.75,48.875 75.868,0 48.875,0zM64.835,70.857L12.593,70.857l20.32,-43.965h52.244L64.835,70.857z"
|
||||
android:fillColor="#FF000000" />
|
||||
</vector>
|
10
app/src/main/res/drawable/ic_placeholder_circle.xml
Normal file
10
app/src/main/res/drawable/ic_placeholder_circle.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:width="24dp"
|
||||
android:viewportHeight="24"
|
||||
android:viewportWidth="24"
|
||||
android:tint="@color/defaultIconTint" >
|
||||
<path
|
||||
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10s10,-4.49 10,-10S17.52,2 12,2L12,2z"
|
||||
android:fillColor="#FF000000" />
|
||||
</vector>
|
10
app/src/main/res/drawable/ic_placeholder_cloud.xml
Normal file
10
app/src/main/res/drawable/ic_placeholder_cloud.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:width="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="@color/defaultIconTint">
|
||||
<path
|
||||
android:pathData="M19.35,10.04C18.67,6.59 15.64,4 12,4 9.11,4 6.6,5.64 5.35,8.04 2.34,8.36 0,10.91 0,14c0,3.31 2.69,6 6,6h13c2.76,0 5,-2.24 5,-5 0,-2.64 -2.05,-4.78 -4.65,-4.96z"
|
||||
android:fillColor="#FF000000" />
|
||||
</vector>
|
10
app/src/main/res/drawable/ic_placeholder_media_ccc.xml
Normal file
10
app/src/main/res/drawable/ic_placeholder_media_ccc.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:width="24dp"
|
||||
android:viewportWidth="26.458319"
|
||||
android:viewportHeight="26.458332"
|
||||
android:tint="@color/defaultIconTint">
|
||||
<path
|
||||
android:pathData="M13.23,0.302C6.07,0.302 0.264,6.107 0.264,13.267a12.965,12.965 0,0 0,0.847 4.595c0.19,-0.497 0.408,-0.982 0.682,-1.438 0.14,-0.232 0.294,-0.457 0.396,-0.707 0.103,-0.25 0.15,-0.533 0.072,-0.792a1.362,1.362 0,0 0,-0.22 -0.404c-0.092,-0.123 -0.192,-0.24 -0.275,-0.37a1.662,1.662 0,0 1,-0.255 -1.12,1.5 1.5,0 0,1 0.58,-0.987c0.28,-0.208 0.635,-0.3 0.985,-0.288a1.757,1.757 0,0 1,0.346 0.048c0.452,0.11 0.852,0.393 1.148,0.75 0.368,0.447 0.584,1.01 0.637,1.586a3.574,3.574 0,0 1,-0.275 1.693c-0.4,0.955 -1.15,1.725 -1.565,2.673 -0.338,0.775 -0.435,1.638 -0.39,2.483 0.007,0.077 0.018,0.155 0.025,0.234a12.965,12.965 0,0 0,3.62 3.18,17.63 17.63,0 0,1 -0.13,-2.11c0.002,-0.56 0.03,-1.12 0.085,-1.675 -0.34,-0.236 -0.65,-0.51 -0.87,-0.86 -0.392,-0.62 -0.466,-1.408 -0.305,-2.124 0.16,-0.717 0.54,-1.37 0.997,-1.945a7.833,7.833 0,0 1,2.835 -2.223,10.305 10.305,0 0,1 -0.09,-0.126 4.854,4.854 0,0 1,-0.702 -2.176c-0.06,-0.777 0.064,-1.554 0.115,-2.33 0.037,-0.543 0.04,-1.085 0.07,-1.627 0.038,-0.627 0.114,-1.255 0.29,-1.858a2.36,2.36 0,0 1,0.266 -0.63,1.4 1.4,0 0,1 0.594,-0.514c0.274,-0.108 0.51,-0.132 0.776,-0.087 0.22,0.046 0.425,0.156 0.604,0.294 0.18,0.138 0.335,0.304 0.48,0.477a7.298,7.298 0,0 1,1.04 1.617,3.57 3.57,0 0,1 1.09,0 7.287,7.287 0,0 1,1.04 -1.616,3.21 3.21,0 0,1 0.48,-0.476c0.18,-0.14 0.383,-0.248 0.604,-0.295a1.268,1.268 0,0 1,0.78 0.086,1.402 1.402,0 0,1 0.595,0.517c0.124,0.19 0.202,0.408 0.266,0.626 0.175,0.602 0.252,1.23 0.29,1.856 0.03,0.543 0.033,1.087 0.07,1.628 0.05,0.777 0.175,1.554 0.116,2.33a4.855,4.855 0,0 1,-0.705 2.178c-0.03,0.05 -0.07,0.096 -0.103,0.145 0.247,0.278 0.598,0.513 0.898,0.614a1.956,1.956 0,0 0,1.05 0.044,1.65 1.65,0 0,0 0.533,-0.226 1.253,1.253 0,0 0,0.397 -0.418c0.118,-0.21 0.166,-0.45 0.192,-0.687 0.067,-0.61 0,-1.224 -0.05,-1.835 -0.034,-0.396 -0.062,-0.8 0.027,-1.187 0.06,-0.26 0.177,-0.518 0.373,-0.7a1.106,1.106 0,0 1,0.465 -0.255,1.312 1.312,0 0,1 0.53,-0.03c0.38,0.057 0.736,0.274 0.948,0.594 0.12,0.18 0.194,0.39 0.238,0.604 0.044,0.213 0.06,0.43 0.072,0.648 0.04,0.76 0.04,1.522 0.018,2.284 -0.018,0.665 -0.055,1.348 -0.32,1.957 -0.343,0.782 -1.032,1.366 -1.775,1.786a7.052,7.052 0,0 1,-1.588 0.647c0.482,1.54 0.733,3.24 0.733,4.968a17.6,17.6 0,0 1,-0.135 2.125,12.964 12.964,0 0,0 6.384,-11.152c0,-7.16 -5.806,-12.965 -12.965,-12.965zM9.602,16.284v1.483a1.88,1.88 0,0 1,1.083 0.362,1.738 1.738,0 0,1 0.556,0.68c0.122,0.27 0.166,0.576 0.116,0.868a1.493,1.493 0,0 1,-0.332 0.708,1.647 1.647,0 0,1 -0.635,0.458 1.738,1.738 0,0 1,-0.787 0.122v3.73l7.762,-4.208 -7.762,-4.204z"
|
||||
android:fillColor="#FF000000" />
|
||||
</vector>
|
9
app/src/main/res/drawable/ic_placeholder_peertube.xml
Normal file
9
app/src/main/res/drawable/ic_placeholder_peertube.xml
Normal file
File diff suppressed because one or more lines are too long
10
app/src/main/res/drawable/ic_placeholder_yt.xml
Normal file
10
app/src/main/res/drawable/ic_placeholder_yt.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:width="24dp"
|
||||
android:viewportHeight="512"
|
||||
android:viewportWidth="512"
|
||||
android:tint="@color/defaultIconTint">
|
||||
<path
|
||||
android:pathData="M156.5,88.1c-56.6,1.8 -79.9,3.7 -91.4,7.5 -9.8,3.3 -15.2,6.6 -23.4,14.3 -8.6,8.1 -14.4,19.5 -18.7,36.3 -8.5,33.7 -10.7,128 -4.5,191.8 5.4,54.7 22.2,75.5 65.6,81.4 57.2,7.8 314,7 354.9,-1 11,-2.2 22.7,-8.2 31.1,-16.2 8.7,-8.1 14.4,-19.2 18.8,-36.2 10.8,-42.1 10.8,-177.1 0.1,-219.8 -4.3,-16.8 -10.1,-28.2 -18.7,-36.3C454.7,95.2 444.6,92.3 401,90c-55,-2.9 -182,-3.9 -244.5,-1.9zM242.5,168.8c24.8,14.5 56.5,33.2 70.5,41.4 76.7,45 75.2,44.2 73.3,45.5 -1.8,1.4 -32.1,19.5 -94.8,56.8 -19.2,11.5 -36.5,21.7 -38.2,22.8l-3.3,1.9v-44.7l32.1,-18.4c17.6,-10.1 32.2,-18.8 32.4,-19.2 0.3,-0.4 -19.6,-12.7 -44.3,-27.3L225.5,201l-0.6,48.8c-0.3,26.8 -0.7,60.5 -0.8,75l-0.1,26.3 -9.7,6.3c-5.4,3.5 -13.5,8.6 -18,11.5L188,374L188,136.8l4.8,2.8c2.6,1.5 25,14.6 49.7,29.2z"
|
||||
android:fillColor="#FF000000"/>
|
||||
</vector>
|
@ -86,7 +86,7 @@
|
||||
android:scaleType="fitCenter"
|
||||
app:tint="@color/drawer_header_font_color"
|
||||
tools:ignore="ContentDescription"
|
||||
tools:srcCompat="@drawable/place_holder_youtube" />
|
||||
tools:srcCompat="@drawable/ic_placeholder_yt" />
|
||||
|
||||
<org.schabi.newpipe.views.NewPipeTextView
|
||||
android:id="@+id/drawer_header_service_view"
|
||||
|
@ -26,7 +26,7 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="10dp"
|
||||
tools:ignore="ContentDescription,RtlHardcoded"
|
||||
tools:src="@drawable/place_holder_peertube" />
|
||||
tools:src="@drawable/ic_placeholder_peertube" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/instanceName"
|
||||
|
Loading…
Reference in New Issue
Block a user