Skip to content

Commit

Permalink
Fixes in #24
Browse files Browse the repository at this point in the history
- wrong unlock icon
- better theme for unlock button
- lock button hidden in portrait mode
  • Loading branch information
itszechs committed Jun 25, 2022
1 parent 5c08b16 commit 99d6c2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/main/res/layout/player_control_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,18 @@

<com.google.android.material.button.MaterialButton
android:id="@+id/btnUnlock"
style="@style/Widget.Material3.Button.IconButton"
style="@style/Widget.Material3.Button.TonalButton.Icon.Only"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:padding="16dp"
android:padding="12dp"
app:iconSize="20dp"
android:tooltipText="@string/unlock"
android:visibility="gone"
app:icon="@drawable/ic_lock_24"
app:icon="@drawable/ic_unlock_24"
app:iconTint="@android:color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
Expand Down Expand Up @@ -144,7 +145,7 @@

<HorizontalScrollView
android:id="@+id/controlsScrollView"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:scrollbars="none"
Expand All @@ -159,7 +160,6 @@
android:id="@+id/linearLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:orientation="horizontal">

Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,8 @@
<item name="iconTint">@color/textColor_87</item>
</style>

<style name="Widget.Material3.Button.TonalButton.Icon.Only" parent="Widget.Material3.Button.IconButton">
<item name="materialThemeOverlay">@style/ThemeOverlay.Material3.Button.TonalButton</item>
</style>

</resources>

0 comments on commit 99d6c2a

Please sign in to comment.