ui: rework rounded covers into round mode
Rework the rounded covers option into a new "Round Mode" option. This commit extends the rounded corners configuration to now the widget, thus making the setting apply now to covers, the bar, and the widget configuration. This makes a naming change useful.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 283 KiB |
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@android:color/white" />
|
||||
</shape>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@android:color/white" />
|
||||
<corners android:radius="@dimen/spacing_medium" />
|
||||
</shape>
|
||||
@@ -4,7 +4,8 @@
|
||||
android:id="@android:id/background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorSurface"
|
||||
android:backgroundTint="?attr/colorSurface"
|
||||
android:background="@drawable/ui_widget_bg"
|
||||
android:theme="@style/Theme.Widget">
|
||||
|
||||
<!--
|
||||
@@ -72,11 +73,11 @@
|
||||
android:id="@+id/widget_controls"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="@dimen/spacing_mid_small"
|
||||
android:paddingTop="@dimen/spacing_medium"
|
||||
android:paddingEnd="@dimen/spacing_mid_small"
|
||||
android:paddingTop="@dimen/spacing_mid_small"
|
||||
android:paddingBottom="@dimen/spacing_medium"
|
||||
android:orientation="horizontal">
|
||||
android:paddingBottom="@dimen/spacing_medium">
|
||||
|
||||
<android.widget.ImageButton
|
||||
android:id="@+id/widget_repeat"
|
||||
@@ -104,13 +105,15 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" />
|
||||
|
||||
|
||||
<android.widget.ImageButton
|
||||
android:id="@+id/widget_play_pause"
|
||||
style="@style/Widget.Auxio.FloatingActionButton.AppWidget"
|
||||
android:layout_width="@dimen/size_btn"
|
||||
android:layout_height="@dimen/size_btn"
|
||||
android:contentDescription="@string/desc_play_pause"
|
||||
android:src="@drawable/sel_playing_state_24" />
|
||||
android:src="@drawable/ic_pause_24" />
|
||||
|
||||
|
||||
<android.widget.ImageView
|
||||
android:layout_width="0dp"
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
android:id="@android:id/background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorSurface"
|
||||
android:backgroundTint="?attr/colorSurface"
|
||||
android:background="@drawable/ui_widget_bg"
|
||||
android:theme="@style/Theme.Widget">
|
||||
|
||||
<!--
|
||||
@@ -70,11 +71,11 @@
|
||||
android:id="@+id/widget_controls"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="@dimen/spacing_mid_small"
|
||||
android:paddingTop="@dimen/spacing_medium"
|
||||
android:paddingEnd="@dimen/spacing_mid_small"
|
||||
android:paddingTop="@dimen/spacing_mid_small"
|
||||
android:paddingBottom="@dimen/spacing_medium"
|
||||
android:orientation="horizontal">
|
||||
android:paddingBottom="@dimen/spacing_medium">
|
||||
|
||||
<android.widget.ImageButton
|
||||
android:id="@+id/widget_skip_prev"
|
||||
@@ -89,13 +90,15 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" />
|
||||
|
||||
|
||||
<android.widget.ImageButton
|
||||
android:id="@+id/widget_play_pause"
|
||||
style="@style/Widget.Auxio.FloatingActionButton.AppWidget"
|
||||
android:layout_width="@dimen/size_btn"
|
||||
android:layout_height="@dimen/size_btn"
|
||||
android:contentDescription="@string/desc_play_pause"
|
||||
android:src="@drawable/sel_playing_state_24" />
|
||||
android:src="@drawable/ic_pause_24" />
|
||||
|
||||
|
||||
<android.widget.ImageView
|
||||
android:layout_width="0dp"
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/ui_widget_panel"
|
||||
android:background="@drawable/ui_widget_bar"
|
||||
android:backgroundTint="?attr/colorSurface"
|
||||
android:orientation="horizontal"
|
||||
android:padding="@dimen/spacing_mid_small">
|
||||
@@ -79,14 +79,13 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<android.widget.ImageButton
|
||||
android:id="@+id/widget_play_pause"
|
||||
style="@style/Widget.Auxio.FloatingActionButton.AppWidget"
|
||||
android:layout_width="@dimen/size_btn"
|
||||
android:layout_height="@dimen/size_btn"
|
||||
android:contentDescription="@string/desc_play_pause"
|
||||
android:src="@drawable/sel_playing_state_24" />
|
||||
|
||||
<android.widget.ImageButton
|
||||
android:id="@+id/widget_play_pause"
|
||||
style="@style/Widget.Auxio.FloatingActionButton.AppWidget"
|
||||
android:layout_width="@dimen/size_btn"
|
||||
android:layout_height="@dimen/size_btn"
|
||||
android:contentDescription="@string/desc_play_pause"
|
||||
android:src="@drawable/ic_pause_24" />
|
||||
|
||||
<android.widget.ImageView
|
||||
android:layout_width="0dp"
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
android:id="@android:id/background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorSurface"
|
||||
android:backgroundTint="?attr/colorSurface"
|
||||
android:background="@drawable/ui_widget_bg"
|
||||
android:baselineAligned="false"
|
||||
android:orientation="horizontal"
|
||||
android:theme="@style/Theme.Widget">
|
||||
@@ -89,13 +90,15 @@
|
||||
|
||||
</android.widget.LinearLayout>
|
||||
|
||||
<android.widget.ImageButton
|
||||
android:id="@+id/widget_play_pause"
|
||||
style="@style/Widget.Auxio.FloatingActionButton.AppWidget"
|
||||
android:layout_width="@dimen/size_btn"
|
||||
android:layout_height="@dimen/size_btn"
|
||||
android:contentDescription="@string/desc_play_pause"
|
||||
android:src="@drawable/sel_playing_state_24" />
|
||||
|
||||
<android.widget.ImageButton
|
||||
android:id="@+id/widget_play_pause"
|
||||
style="@style/Widget.Auxio.FloatingActionButton.AppWidget"
|
||||
android:layout_width="@dimen/size_btn"
|
||||
android:layout_height="@dimen/size_btn"
|
||||
android:contentDescription="@string/desc_play_pause"
|
||||
android:src="@drawable/ic_pause_24" />
|
||||
|
||||
|
||||
</android.widget.LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
android:src="@drawable/ic_remote_default_cover_24"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<!-- See widget_small.xml for an explanation of the view layout -->
|
||||
<!-- See widget_small.xml for an explanation of the view layout -->
|
||||
|
||||
<android.widget.LinearLayout
|
||||
android:id="@+id/widget_controls"
|
||||
@@ -48,7 +48,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/ui_widget_panel"
|
||||
android:background="@drawable/ui_widget_bar"
|
||||
android:backgroundTint="?attr/colorSurface"
|
||||
android:orientation="horizontal"
|
||||
android:padding="@dimen/spacing_mid_small">
|
||||
@@ -79,13 +79,14 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<android.widget.ImageButton
|
||||
android:id="@+id/widget_play_pause"
|
||||
style="@style/Widget.Auxio.FloatingActionButton.AppWidget"
|
||||
android:layout_width="@dimen/size_btn"
|
||||
android:layout_height="@dimen/size_btn"
|
||||
android:contentDescription="@string/desc_play_pause"
|
||||
android:src="@drawable/sel_playing_state_24" />
|
||||
<android.widget.ImageButton
|
||||
android:id="@+id/widget_play_pause"
|
||||
style="@style/Widget.Auxio.FloatingActionButton.AppWidget"
|
||||
android:layout_width="@dimen/size_btn"
|
||||
android:layout_height="@dimen/size_btn"
|
||||
android:contentDescription="@string/desc_play_pause"
|
||||
android:src="@drawable/ic_pause_24" />
|
||||
|
||||
|
||||
<android.widget.ImageView
|
||||
android:layout_width="0dp"
|
||||
|
||||
@@ -74,8 +74,8 @@
|
||||
<string name="set_show_covers_desc">أطفاء لتقليل استخدام الذاكرة</string>
|
||||
<string name="set_quality_covers">تجاهل اغلفة وسائط التخزين</string>
|
||||
<string name="set_quality_covers_desc">يزيد من جودة غلاف الالبوم، لكن يؤذي إلى زيادة وقت التحميل واستخدام اعلى للذاكرة</string>
|
||||
<string name="set_round_covers">اغلفة البوم مدورة</string>
|
||||
<string name="set_round_covers_desc">جعل اغلفة الابومات ذات زوايا مدورة</string>
|
||||
<string name="set_round_mode">اغلفة البوم مدورة</string>
|
||||
<string name="set_round_mode_desc">جعل اغلفة الابومات ذات زوايا مدورة</string>
|
||||
<string name="set_alt_action">استخدام نشاط بديل للإشعار</string>
|
||||
<string name="set_alt_repeat">تفضيل نشاط وضع التكرار</string>
|
||||
<string name="set_alt_shuffle">تفضيل نشاط الخلط</string>
|
||||
|
||||
@@ -84,8 +84,8 @@
|
||||
<string name="set_show_covers_desc">Vypněte pro ušetření paměti</string>
|
||||
<string name="set_quality_covers">Ignorovat obaly MediaStore</string>
|
||||
<string name="set_quality_covers_desc">Zvýší kvalitu obalů alb, ale znamená také delší časy načítání a vyšší využití paměti</string>
|
||||
<string name="set_round_covers">Zakulacené obaly alb</string>
|
||||
<string name="set_round_covers_desc">Použít obaly alb se zakulacenými rohy</string>
|
||||
<string name="set_round_mode">Zakulacené obaly alb</string>
|
||||
<string name="set_round_mode_desc">Použít obaly alb se zakulacenými rohy</string>
|
||||
<string name="set_alt_action">Použít alternativní akci oznámení</string>
|
||||
<string name="set_alt_repeat">Preferovat akci režimu opakování</string>
|
||||
<string name="set_alt_shuffle">Preferovat akci náhodného přehrávání</string>
|
||||
|
||||
@@ -66,8 +66,8 @@
|
||||
<string name="set_show_covers_desc">Ausschalten um Speicherplatz zu sparen</string>
|
||||
<string name="set_quality_covers">MediaStore Cover ignorieren</string>
|
||||
<string name="set_quality_covers_desc">Verbesst die Albumcoverqualität, führt jedoch zu längeren Ladezeiten und höherem Speicherverbrauch</string>
|
||||
<string name="set_round_covers">Abgerundete Cover</string>
|
||||
<string name="set_round_covers_desc">Rundet Ecken der Cover ab</string>
|
||||
<string name="set_round_mode">Abgerundete Cover</string>
|
||||
<string name="set_round_mode_desc">Rundet Ecken der Cover ab</string>
|
||||
<string name="set_alt_action">Alternative Aktionstaste verwenden</string>
|
||||
<string name="set_alt_repeat">Wiederholen-Aktionstaste bevorzugen</string>
|
||||
<string name="set_alt_shuffle">Zufällig-Aktionstaste bevorzugen</string>
|
||||
|
||||
@@ -74,8 +74,8 @@
|
||||
<string name="set_show_covers_desc">Desactive para ahorrar memoria</string>
|
||||
<string name="set_quality_covers">Ignorar carátulas de MediaStore</string>
|
||||
<string name="set_quality_covers_desc">Incrementa la calidad de las carátulas, pero deriva en mayores tiempos de carga y uso de memoria</string>
|
||||
<string name="set_round_covers">Carátulas redondeadas</string>
|
||||
<string name="set_round_covers_desc">Usar carátulas redondeadas para los álbumes</string>
|
||||
<string name="set_round_mode">Carátulas redondeadas</string>
|
||||
<string name="set_round_mode_desc">Usar carátulas redondeadas para los álbumes</string>
|
||||
<string name="set_alt_action">Usar acciones de notificación alternativas</string>
|
||||
<string name="set_alt_repeat">Preferir acción de bucle</string>
|
||||
<string name="set_alt_shuffle">Preferir acción de mezcla</string>
|
||||
|
||||
@@ -74,8 +74,8 @@
|
||||
<string name="set_show_covers_desc">Disattiva per ridurre il consumo di memoria</string>
|
||||
<string name="set_quality_covers">Ignora copertine MediaStore</string>
|
||||
<string name="set_quality_covers_desc">Migliora la qualità delle copertine, ma comporta maggiori tempi di caricamento e consumo di memoria</string>
|
||||
<string name="set_round_covers">Copertine dischi arrotondate</string>
|
||||
<string name="set_round_covers_desc">Usa copertine dischi con angoli arrotondati</string>
|
||||
<string name="set_round_mode">Copertine dischi arrotondate</string>
|
||||
<string name="set_round_mode_desc">Usa copertine dischi con angoli arrotondati</string>
|
||||
<string name="set_alt_action">Usa azioni notifica alternative</string>
|
||||
<string name="set_alt_repeat">Preferisci azione modalità ripetizione</string>
|
||||
<string name="set_alt_shuffle">Preferisci azione mescola</string>
|
||||
|
||||
@@ -82,8 +82,8 @@
|
||||
<string name="set_show_covers_desc">이 옵션을 끄면 메모리 사용량을 줄일 수 있습니다.</string>
|
||||
<string name="set_quality_covers">MediaStore 커버 무시</string>
|
||||
<string name="set_quality_covers_desc">앨범 커버의 품질을 높일 수 있지만 메모리 사용량이 늘어나고 불러오는 시간이 더 오래 걸립니다.</string>
|
||||
<string name="set_round_covers">둥근 앨범 커버 사용</string>
|
||||
<string name="set_round_covers_desc">앨범 커버의 가장자리를 둥글게 표시</string>
|
||||
<string name="set_round_mode">둥근 앨범 커버 사용</string>
|
||||
<string name="set_round_mode_desc">앨범 커버의 가장자리를 둥글게 표시</string>
|
||||
<string name="set_alt_action">다른 방식의 알림 동작 사용</string>
|
||||
<string name="set_alt_repeat">반복 모드 동작 선호</string>
|
||||
<string name="set_alt_shuffle">무작위 동작 선호</string>
|
||||
|
||||
@@ -74,8 +74,8 @@
|
||||
<string name="set_show_covers_desc">Отключите для экономии памяти</string>
|
||||
<string name="set_quality_covers">Игнорировать хранилище обложек</string>
|
||||
<string name="set_quality_covers_desc">Улучшает качество обложек, но увеличивает время загрузки и использование памяти</string>
|
||||
<string name="set_round_covers">Скруглённые обложки</string>
|
||||
<string name="set_round_covers_desc">Показывать обложки со скруглёнными краями</string>
|
||||
<string name="set_round_mode">Скруглённые обложки</string>
|
||||
<string name="set_round_mode_desc">Показывать обложки со скруглёнными краями</string>
|
||||
<string name="set_alt_action">Кнопка в уведомлении</string>
|
||||
<string name="set_alt_repeat">Режим повтора</string>
|
||||
<string name="set_alt_shuffle">Режим перемешивания</string>
|
||||
|
||||
@@ -73,8 +73,8 @@
|
||||
<string name="set_show_covers_desc">关闭以节省内存使用</string>
|
||||
<string name="set_quality_covers">忽略 MediaStore 封面</string>
|
||||
<string name="set_quality_covers_desc">提升专辑封面质量,但需要更长的加载时间并消耗更多内存</string>
|
||||
<string name="set_round_covers">专辑封面圆角</string>
|
||||
<string name="set_round_covers_desc">使用圆角设计的专辑封面</string>
|
||||
<string name="set_round_mode">专辑封面圆角</string>
|
||||
<string name="set_round_mode_desc">使用圆角设计的专辑封面</string>
|
||||
<string name="set_alt_action">使用替代通知操作方案</string>
|
||||
<string name="set_alt_repeat">偏好重复播放操作</string>
|
||||
<string name="set_alt_shuffle">偏好随机播放操作</string>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<string name="set_key_lib_tabs" translatable="false">auxio_lib_tabs</string>
|
||||
<string name="set_key_show_covers" translatable="false">KEY_SHOW_COVERS</string>
|
||||
<string name="set_key_quality_covers" translatable="false">KEY_QUALITY_COVERS</string>
|
||||
<string name="set_key_round_covers" translatable="false">auxio_round_covers</string>
|
||||
<string name="set_key_round_mode" translatable="false">auxio_round_covers</string>
|
||||
<string name="set_key_alt_notif_action" translatable="false">KEY_ALT_NOTIF_ACTION</string>
|
||||
|
||||
<string name="set_key_headset_autoplay" translatable="false">auxio_headset_autoplay</string>
|
||||
|
||||
@@ -94,8 +94,8 @@
|
||||
<string name="set_show_covers_desc">Turn off to save memory usage</string>
|
||||
<string name="set_quality_covers">Ignore MediaStore covers</string>
|
||||
<string name="set_quality_covers_desc">Increases album cover quality, but results in longer loading times and higher memory usage</string>
|
||||
<string name="set_round_covers">Rounded album covers</string>
|
||||
<string name="set_round_covers_desc">Use album covers with rounded corners</string>
|
||||
<string name="set_round_mode">Round mode</string>
|
||||
<string name="set_round_mode_desc">Enable rounded corners on additional UI elements (Requires album covers to be rounded)</string>
|
||||
<string name="set_alt_action">Use alternate notification action</string>
|
||||
<string name="set_alt_repeat">Prefer repeat mode action</string>
|
||||
<string name="set_alt_shuffle">Prefer shuffle action</string>
|
||||
|
||||
@@ -58,9 +58,9 @@
|
||||
<org.oxycblt.auxio.settings.ui.M3SwitchPreference
|
||||
app:defaultValue="false"
|
||||
app:iconSpaceReserved="false"
|
||||
app:key="@string/set_key_round_covers"
|
||||
app:summary="@string/set_round_covers_desc"
|
||||
app:title="@string/set_round_covers" />
|
||||
app:key="@string/set_key_round_mode"
|
||||
app:summary="@string/set_round_mode_desc"
|
||||
app:title="@string/set_round_mode" />
|
||||
|
||||
<org.oxycblt.auxio.settings.ui.M3SwitchPreference
|
||||
app:allowDividerBelow="false"
|
||||
|
||||
Reference in New Issue
Block a user