Remove custom title UIs from dialogs

Replace the custom title TextViews in AccentDialog/BlacklistDialog with the built-in title text.
This commit is contained in:
OxygenCobalt
2021-04-04 09:46:58 -06:00
parent 03aa2d4579
commit 887868ff9c
6 changed files with 23 additions and 56 deletions
+11 -33
View File
@@ -3,39 +3,17 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<LinearLayout
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/accent_recycler"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background"
android:orientation="vertical"
android:theme="@style/Theme.Neutral">
android:layout_height="match_parent"
android:paddingTop="@dimen/margin_medium"
android:foregroundGravity="center"
android:overScrollMode="never"
app:layoutManager="org.oxycblt.auxio.settings.accent.AutoGridLayoutManager"
app:layout_constraintBottom_toTopOf="@+id/accent_cancel"
app:layout_constraintTop_toBottomOf="@+id/accent_header"
tools:itemCount="18"
tools:listitem="@layout/item_accent" />
<TextView
android:id="@+id/accent_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/inter_exbold"
android:padding="@dimen/padding_medium"
android:text="@string/setting_accent"
android:paddingHorizontal="10dp"
android:textAlignment="viewStart"
android:textColor="?attr/colorPrimary"
android:textSize="@dimen/text_size_toolbar_header"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/accent_recycler"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:foregroundGravity="center"
android:overScrollMode="never"
app:layoutManager="org.oxycblt.auxio.settings.accent.AutoGridLayoutManager"
app:layout_constraintBottom_toTopOf="@+id/accent_cancel"
app:layout_constraintTop_toBottomOf="@+id/accent_header"
tools:itemCount="18"
tools:listitem="@layout/item_accent" />
</LinearLayout>
</layout>
+2 -12
View File
@@ -9,26 +9,16 @@
android:layout_height="wrap_content"
android:background="@color/background"
android:orientation="vertical"
android:paddingTop="@dimen/margin_medium"
android:theme="@style/Theme.Neutral">
<TextView
android:id="@+id/blacklist_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/inter_exbold"
android:padding="@dimen/padding_medium"
android:text="@string/setting_content_blacklist"
android:textAlignment="viewStart"
android:textColor="?attr/colorPrimary"
android:textSize="@dimen/text_size_toolbar_header" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/blacklist_recycler"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_gravity="center"
android:layout_weight="1"
android:overScrollMode="never"
android:overScrollMode="always"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:itemCount="1"
tools:listitem="@layout/item_blacklist_entry" />
+1 -1
View File
@@ -9,9 +9,9 @@
<style name="Theme.Base" parent="Theme.Template">
<item name="android:windowBackground">@color/background</item>
<item name="android:fontFamily">@font/inter</item>
<item name="android:textCursorDrawable">@drawable/ui_cursor</item>
<item name="android:scrollbars">none</item>
<item name="android:windowIsFloating">false</item>
<item name="android:textCursorDrawable">@drawable/ui_cursor</item>
<!-- Interim default values for the accents. -->
<item name="colorPrimary">@color/design_default_color_primary</item>