mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-19 16:45:20 +01:00
Added new theme for Material You & a toggle
This commit is contained in:
parent
289557898e
commit
f23b102e41
34 changed files with 243 additions and 123 deletions
|
@ -13,6 +13,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:paddingVertical="10dp"
|
||||
android:text="@string/action_play_all"
|
||||
android:textAppearance="@style/TextViewButton"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
|
@ -26,12 +27,12 @@
|
|||
android:id="@+id/shuffleAction"
|
||||
style="@style/Widget.Material3.Button.Icon"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:paddingVertical="10dp"
|
||||
android:text="@string/shuffle"
|
||||
android:textAppearance="@style/TextViewButton"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
app:icon="@drawable/ic_shuffle"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/playAction"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:paddingVertical="10dp"
|
||||
android:text="@string/action_play_all"
|
||||
android:textAppearance="@style/TextViewButton"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
|
@ -27,13 +28,12 @@
|
|||
android:id="@+id/shuffleAction"
|
||||
style="@style/Widget.Material3.Button.Icon"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:paddingVertical="10dp"
|
||||
android:text="@string/shuffle"
|
||||
android:textAppearance="@style/TextViewButton"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
app:backgroundTint="?attr/colorSurface"
|
||||
app:icon="@drawable/ic_shuffle"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/playAction"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
@ -18,16 +18,16 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:paddingVertical="10dp">
|
||||
android:paddingHorizontal="16dp">
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/playAction"
|
||||
style="@style/Widget.Material3.Button.OutlinedButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingVertical="10dp"
|
||||
android:text="@string/action_play_all"
|
||||
android:textAppearance="@style/TextViewButton"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
|
@ -38,12 +38,12 @@
|
|||
android:id="@+id/shuffleAction"
|
||||
style="@style/Widget.Material3.Button.Icon"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingVertical="10dp"
|
||||
android:text="@string/shuffle"
|
||||
android:textAppearance="@style/TextViewButton"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
app:icon="@drawable/ic_shuffle" />
|
||||
|
||||
</LinearLayout>
|
|
@ -55,17 +55,12 @@
|
|||
|
||||
<code.name.monkey.retromusic.views.BottomNavigationBarTinted
|
||||
android:id="@+id/bottomNavigationView"
|
||||
style="@style/Widget.Material3.BottomNavigationView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/bottom_nav_height"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="?attr/colorSurface"
|
||||
android:elevation="0dp"
|
||||
app:itemHorizontalTranslationEnabled="false"
|
||||
app:itemIconTint="@drawable/bottom_navigation_item_colors"
|
||||
app:itemTextAppearanceActive="@style/BottomSheetItemTextAppearance"
|
||||
app:itemTextAppearanceInactive="@style/BottomSheetItemTextAppearance"
|
||||
app:itemTextColor="@drawable/bottom_navigation_item_colors"
|
||||
app:labelVisibilityMode="labeled"
|
||||
app:menu="@menu/bottom_navigation_main"
|
||||
tools:layout_height="56dp" />
|
||||
tools:layout_height="wrap_content" />
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
Loading…
Add table
Add a link
Reference in a new issue