[android] Clean background color in views

Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2025-12-16 20:03:37 +01:00
parent e238a317f1
commit d23bd3b510
18 changed files with 21 additions and 25 deletions

View File

@@ -2,6 +2,6 @@
<shape <shape
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"> android:shape="rectangle">
<solid android:color="@color/bg_panel"/> <solid android:color="@color/bg_window"/>
<corners android:radius="100dp"/> <corners android:radius="100dp"/>
</shape> </shape>

View File

@@ -2,5 +2,5 @@
<shape <shape
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"> android:shape="oval">
<solid android:color="@color/bg_panel"/> <solid android:color="@color/bg_window"/>
</shape> </shape>

View File

@@ -24,7 +24,7 @@
android:id="@+id/items_frame" android:id="@+id/items_frame"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?panel"> android:background="?windowBackgroundForced">
<include <include
layout="@layout/item_missed_map" layout="@layout/item_missed_map"
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@@ -26,7 +26,7 @@
android:id="@+id/items_frame" android:id="@+id/items_frame"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?panel" android:background="?windowBackgroundForced"
android:listSelector="?clickableBackground" android:listSelector="?clickableBackground"
android:drawSelectorOnTop="true"/> android:drawSelectorOnTop="true"/>

View File

@@ -60,7 +60,7 @@
android:layout_below="@id/tv__bookmark_set_title" android:layout_below="@id/tv__bookmark_set_title"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/margin_quadruple" android:layout_marginEnd="@dimen/margin_quadruple"
android:background="?attr/selectableItemBackground" android:background="?selectableItemBackground"
android:clickable="true" android:clickable="true"
android:paddingTop="@dimen/margin_quarter_plus" android:paddingTop="@dimen/margin_quarter_plus"
android:paddingBottom="@dimen/margin_half_plus" android:paddingBottom="@dimen/margin_half_plus"

View File

@@ -2,7 +2,7 @@
<LinearLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="?attr/cardBackground" android:background="?cardBackground"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
@@ -11,7 +11,6 @@
style="@style/MwmWidget.ToolbarStyle" style="@style/MwmWidget.ToolbarStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?colorPrimary"
android:gravity="end|center_vertical" android:gravity="end|center_vertical"
android:theme="@style/MwmWidget.ToolbarTheme"> android:theme="@style/MwmWidget.ToolbarTheme">
</com.google.android.material.appbar.MaterialToolbar> </com.google.android.material.appbar.MaterialToolbar>

View File

@@ -18,7 +18,7 @@
app:srcCompat="@drawable/ic_done" app:srcCompat="@drawable/ic_done"
android:layout_width="?actionBarSize" android:layout_width="?actionBarSize"
android:layout_height="?actionBarSize" android:layout_height="?actionBarSize"
android:background="?attr/selectableItemBackgroundBorderless" android:background="?selectableItemBackgroundBorderless"
android:layout_gravity="end|center_vertical" android:layout_gravity="end|center_vertical"
android:scaleType="centerInside" android:scaleType="centerInside"
android:contentDescription="@string/save" /> android:contentDescription="@string/save" />

View File

@@ -48,7 +48,6 @@
<FrameLayout <FrameLayout
android:id="@+id/fragment_container" android:id="@+id/fragment_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent" />
android:background="?panel"/>
</LinearLayout> </LinearLayout>

View File

@@ -12,7 +12,6 @@
style="@style/MwmWidget.ToolbarStyle" style="@style/MwmWidget.ToolbarStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?colorPrimary"
android:gravity="end|center_vertical" android:gravity="end|center_vertical"
android:theme="@style/MwmWidget.ToolbarTheme"> android:theme="@style/MwmWidget.ToolbarTheme">
<com.google.android.material.imageview.ShapeableImageView <com.google.android.material.imageview.ShapeableImageView

View File

@@ -22,8 +22,7 @@
<ScrollView <ScrollView
android:id="@+id/scrollView" android:id="@+id/scrollView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
android:background="?panel">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@@ -15,7 +15,7 @@
android:id="@+id/app_bar" android:id="@+id/app_bar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/colorPrimary" android:background="?colorPrimary"
android:elevation="@dimen/dp_0" android:elevation="@dimen/dp_0"
app:elevation="@dimen/dp_0"> app:elevation="@dimen/dp_0">
<include <include

View File

@@ -45,7 +45,7 @@
android:paddingStart="0dp" android:paddingStart="0dp"
android:paddingEnd="@dimen/altitude_chart_container_padding_left"> android:paddingEnd="@dimen/altitude_chart_container_padding_left">
<View <com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/divider_height" android:layout_height="@dimen/divider_height"
android:background="?dividerHorizontal"/> android:background="?dividerHorizontal"/>

View File

@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?panel" android:background="?windowBackgroundForced"
android:orientation="vertical"> android:orientation="vertical">

View File

@@ -155,7 +155,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_half_plus" android:layout_marginTop="@dimen/margin_half_plus"
android:layout_marginBottom="@dimen/margin_quarter" android:layout_marginBottom="@dimen/margin_quarter"
android:background="?attr/selectableItemBackground" android:background="?selectableItemBackground"
android:gravity="center" android:gravity="center"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingStart="@dimen/margin_quarter" android:paddingStart="@dimen/margin_quarter"

View File

@@ -29,7 +29,7 @@
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?panel" android:background="?cardBackground"
android:padding="@dimen/margin_base" android:padding="@dimen/margin_base"
android:text="@string/editor_focus_map_on_location" android:text="@string/editor_focus_map_on_location"
app:layout_constraintTop_toBottomOf="@+id/toolbar_point_chooser" /> app:layout_constraintTop_toBottomOf="@+id/toolbar_point_chooser" />

View File

@@ -4,7 +4,7 @@
android:id="@+id/pp_buttons_layout" android:id="@+id/pp_buttons_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?ppButtonsBackground" android:background="?windowBackgroundForced"
android:orientation="horizontal" android:orientation="horizontal"
android:layout_gravity="bottom"> android:layout_gravity="bottom">
<include layout="@layout/item_divider" /> <include layout="@layout/item_divider" />

View File

@@ -28,7 +28,7 @@
android:layout_width="?attr/actionBarSize" android:layout_width="?attr/actionBarSize"
android:layout_height="?attr/actionBarSize" android:layout_height="?attr/actionBarSize"
android:layout_alignParentStart="true" android:layout_alignParentStart="true"
android:background="?attr/selectableItemBackgroundBorderless" android:background="?selectableItemBackgroundBorderless"
app:srcCompat="?homeAsUpIndicator" app:srcCompat="?homeAsUpIndicator"
android:scaleType="center" android:scaleType="center"
tools:src="@drawable/ic_expand_more" /> tools:src="@drawable/ic_expand_more" />
@@ -143,7 +143,7 @@
android:id="@+id/driving_options_btn_container" android:id="@+id/driving_options_btn_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/drivingOptionsViewBg" android:background="?drivingOptionsViewBg"
android:foreground="@drawable/shadow_top" android:foreground="@drawable/shadow_top"
android:visibility="gone" android:visibility="gone"
tools:visibility="visible"> tools:visibility="visible">
@@ -151,7 +151,7 @@
android:id="@+id/driving_options_btn" android:id="@+id/driving_options_btn"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless" android:background="?selectableItemBackgroundBorderless"
android:gravity="center" android:gravity="center"
android:minHeight="@dimen/height_block_base"> android:minHeight="@dimen/height_block_base">
<LinearLayout <LinearLayout

View File

@@ -14,7 +14,7 @@
android:id="@+id/back" android:id="@+id/back"
android:layout_width="?attr/actionBarSize" android:layout_width="?attr/actionBarSize"
android:layout_height="?attr/actionBarSize" android:layout_height="?attr/actionBarSize"
android:background="?attr/selectableItemBackgroundBorderless" android:background="?selectableItemBackgroundBorderless"
app:srcCompat="?homeAsUpIndicator" app:srcCompat="?homeAsUpIndicator"
android:scaleType="center" android:scaleType="center"
tools:src="@drawable/ic_expand_more" tools:src="@drawable/ic_expand_more"
@@ -52,7 +52,7 @@
android:layout_height="?actionBarSize" android:layout_height="?actionBarSize"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_weight="0" android:layout_weight="0"
android:background="?attr/selectableItemBackgroundBorderless" android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/clear_the_search" android:contentDescription="@string/clear_the_search"
android:scaleType="center" android:scaleType="center"
app:srcCompat="@drawable/ic_close"/> app:srcCompat="@drawable/ic_close"/>
@@ -63,7 +63,7 @@
android:layout_height="?actionBarSize" android:layout_height="?actionBarSize"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_weight="0" android:layout_weight="0"
android:background="?attr/selectableItemBackgroundBorderless" android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@null" android:contentDescription="@null"
android:scaleType="center" android:scaleType="center"
app:srcCompat="@drawable/ic_mic_white" app:srcCompat="@drawable/ic_mic_white"