diff options
author | Bhaskar Kaura <85757758+bhaskarblur@users.noreply.github.com> | 2023-10-29 20:43:51 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-29 16:13:51 +0100 |
commit | 01f1927770b65bb9052fedd40068770c8abf15b1 (patch) | |
tree | 5c13539c7f914d3d52786d11bb5c3d528904d6f1 /core/src | |
parent | 4931734d94a30d4b9b83c13a7869fc84bbf22a11 (diff) | |
download | AntennaPod-01f1927770b65bb9052fedd40068770c8abf15b1.zip |
Add more spacing to OnlineFeedViewActivity, use MD3 styles (#6670)
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/res/drawable/bg_rounded_corners.xml | 6 | ||||
-rw-r--r-- | core/src/main/res/drawable/ic_close_white.xml | 11 | ||||
-rw-r--r-- | core/src/main/res/values/dimens.xml | 3 | ||||
-rw-r--r-- | core/src/main/res/values/styles.xml | 22 |
4 files changed, 29 insertions, 13 deletions
diff --git a/core/src/main/res/drawable/bg_rounded_corners.xml b/core/src/main/res/drawable/bg_rounded_corners.xml new file mode 100644 index 000000000..11b7710c4 --- /dev/null +++ b/core/src/main/res/drawable/bg_rounded_corners.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape + xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <corners android:radius="8dp" /> +</shape> diff --git a/core/src/main/res/drawable/ic_close_white.xml b/core/src/main/res/drawable/ic_close_white.xml new file mode 100644 index 000000000..d37d3f963 --- /dev/null +++ b/core/src/main/res/drawable/ic_close_white.xml @@ -0,0 +1,11 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + <path + android:pathData="M17.656,6.343L12,12M12,12L6.343,17.656M12,12L17.656,17.656M12,12L6.343,6.343" + android:strokeWidth="2" + android:fillColor="#00000000" + android:strokeColor="#ffffff"/> +</vector> diff --git a/core/src/main/res/values/dimens.xml b/core/src/main/res/values/dimens.xml index cddff1c47..68d0e59ab 100644 --- a/core/src/main/res/values/dimens.xml +++ b/core/src/main/res/values/dimens.xml @@ -6,11 +6,10 @@ <dimen name="text_size_micro">12sp</dimen> <dimen name="text_size_small">14sp</dimen> <dimen name="text_size_navdrawer">16sp</dimen> - <dimen name="text_size_medium">18sp</dimen> <dimen name="text_size_large">22sp</dimen> <dimen name="thumbnail_length_itemlist">56dp</dimen> <dimen name="thumbnail_length_queue_item">56dp</dimen> - <dimen name="thumbnail_length_onlinefeedview">100dp</dimen> + <dimen name="thumbnail_length_onlinefeedview">92dp</dimen> <dimen name="feeditemlist_header_height">132dp</dimen> <dimen name="thumbnail_length_navlist">40dp</dimen> <dimen name="listitem_iconwithtext_height">48dp</dimen> diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index 2b0d50267..da227d163 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -237,24 +237,24 @@ <item name="android:fontFamily">sans-serif-light</item> </style> - <style name="AntennaPod.TextView.ListItemPrimaryTitle" parent="@android:style/TextAppearance.Small"> - <item name="android:textSize">16sp</item> - <item name="android:textColor">?android:attr/textColorPrimary</item> + <style name="AntennaPod.TextView.ListItemPrimaryTitle" parent="@style/TextAppearance.Material3.BodyLarge"> + <item name="android:textColor">?attr/colorOnSurface</item> <item name="android:maxLines">2</item> <item name="android:ellipsize">end</item> + <item name="lineHeight">20sp</item> + <item name="android:lineHeight" tools:targetApi="p">20sp</item> </style> - <style name="AntennaPod.TextView.ListItemPrimaryTitle2" parent="@android:style/TextAppearance.Small"> - <item name="android:textSize">16sp</item> - <item name="android:textColor">?android:attr/textColorPrimary</item> + <style name="AntennaPod.TextView.ListItemSecondaryTitle" parent="@style/TextAppearance.Material3.BodyMedium"> + <item name="android:textColor">?attr/colorOnSurfaceVariant</item> + <item name="android:lines">1</item> <item name="android:ellipsize">end</item> </style> - <style name="AntennaPod.TextView.ListItemSecondaryTitle" parent="@android:style/TextAppearance.Small"> - <item name="android:textSize">14sp</item> - <item name="android:textColor">?android:attr/textColorSecondary</item> - <item name="android:lines">1</item> - <item name="android:ellipsize">end</item> + <style name="AntennaPod.TextView.ListItemBody" parent="@style/TextAppearance.Material3.BodyMedium"> + <item name="android:textColor">?attr/colorOnSurfaceVariant</item> + <item name="lineHeight">18sp</item> + <item name="android:lineHeight" tools:targetApi="p">18sp</item> </style> <style name="OutlinedButtonBetterContrast" parent="Widget.Material3.Button.OutlinedButton"> |