diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-05-09 11:28:35 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-05-09 11:28:35 +0300 |
| commit | 9cd2d09126ee257f067e151937a433dd2cf45b74 (patch) | |
| tree | 76759277295720232617707c378e04f53e623e3c /org.fox.ttrss/src | |
| parent | 4ad6971caf93f481155d3f1923b8de97e49a0621 (diff) | |
add rounded corners to feeds container on tablets
Diffstat (limited to 'org.fox.ttrss/src')
| -rw-r--r-- | org.fox.ttrss/src/main/res/layout-sw600dp-land/activity_master.xml | 7 | ||||
| -rw-r--r-- | org.fox.ttrss/src/main/res/values/style.xml | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/org.fox.ttrss/src/main/res/layout-sw600dp-land/activity_master.xml b/org.fox.ttrss/src/main/res/layout-sw600dp-land/activity_master.xml index eb2d9c91..2987bab3 100644 --- a/org.fox.ttrss/src/main/res/layout-sw600dp-land/activity_master.xml +++ b/org.fox.ttrss/src/main/res/layout-sw600dp-land/activity_master.xml @@ -5,9 +5,9 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android"> - <LinearLayout android:id="@+id/fragment_container" + android:background="?colorSurfaceContainer" android:layout_width="fill_parent" android:layout_height="fill_parent" android:baselineAligned="false" @@ -24,14 +24,13 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/navigation_view" android:layout_width="300dp" + app:shapeAppearance="@style/ShapeAppearanceFeedsTablet" android:layout_height="match_parent" - android:layout_gravity="start" - app:elevation="8dp"> + android:layout_gravity="start"> <FrameLayout android:id="@+id/feeds_fragment" android:layout_width="match_parent" - android:background="?colorSurfaceContainer" android:layout_height="match_parent" > </FrameLayout> diff --git a/org.fox.ttrss/src/main/res/values/style.xml b/org.fox.ttrss/src/main/res/values/style.xml index 0b43f1d9..2b44ac4b 100644 --- a/org.fox.ttrss/src/main/res/values/style.xml +++ b/org.fox.ttrss/src/main/res/values/style.xml @@ -7,6 +7,14 @@ <item name="cornerSizeBottomRight">16dp</item> </style> + <style name="ShapeAppearanceFeedsTablet"> + <item name="cornerFamily">rounded</item> + <item name="cornerSizeTopLeft">0dp</item> + <item name="cornerSizeTopRight">16dp</item> + <item name="cornerSizeBottomLeft">0dp</item> + <item name="cornerSizeBottomRight">16dp</item> + </style> + <!-- https://stackoverflow.com/a/73782598 --> <style name="AppPreferenceThemeOverlay" parent="@style/PreferenceThemeOverlay"> <item name="switchPreferenceCompatStyle">@style/AppSwitchPreference</item> |