mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
small UI fixes
This commit is contained in:
parent
c199d42116
commit
0622672e4c
@ -40,7 +40,6 @@ object LocaleHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun getDetectedCountry(context: Context, defaultCountryIsoCode: String): String {
|
fun getDetectedCountry(context: Context, defaultCountryIsoCode: String): String {
|
||||||
|
|
||||||
detectSIMCountry(context)?.let {
|
detectSIMCountry(context)?.let {
|
||||||
return it
|
return it
|
||||||
}
|
}
|
||||||
|
@ -20,12 +20,12 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginStart="10dp"
|
||||||
android:layout_toEndOf="@id/subscription_channel_image"
|
android:layout_toEndOf="@id/subscription_channel_image"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:text="Channel Name"
|
android:text="Channel Name"
|
||||||
android:textSize="16dp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/subscription_subscribe"
|
android:id="@+id/subscription_subscribe"
|
||||||
@ -35,7 +35,7 @@
|
|||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:backgroundTint="?attr/colorOnPrimary"
|
android:backgroundTint="?attr/colorOnPrimary"
|
||||||
android:text="@string/unsubscribe"
|
android:text="@string/unsubscribe"
|
||||||
android:textColor="?android:attr/textColorPrimary"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="11dp"
|
android:textSize="11sp"
|
||||||
app:cornerRadius="20dp" />
|
app:cornerRadius="20dp" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
@ -66,7 +66,7 @@
|
|||||||
android:id="@+id/channel_subs"
|
android:id="@+id/channel_subs"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="left"
|
android:layout_gravity="start"
|
||||||
android:text="@string/app_name"
|
android:text="@string/app_name"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
@ -76,11 +76,10 @@
|
|||||||
android:id="@+id/channel_subscribe"
|
android:id="@+id/channel_subscribe"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:backgroundTint="?attr/colorOnPrimary"
|
android:backgroundTint="?attr/colorOnPrimary"
|
||||||
android:drawableLeft="@drawable/ic_bell_small"
|
android:drawableStart="@drawable/ic_bell_small"
|
||||||
android:drawableTint="?android:attr/textColorPrimary"
|
android:drawableTint="@android:color/white"
|
||||||
android:text="@string/subscribe"
|
android:text="@string/subscribe"
|
||||||
android:textColor="?android:attr/textColorPrimary"
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
android:textSize="11sp" />
|
android:textSize="11sp" />
|
||||||
|
Loading…
Reference in New Issue
Block a user