From 8b099aba64059895050d03e5740a0a35a9d92d74 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Mon, 19 Aug 2024 17:23:39 +0200 Subject: [PATCH] fix: Search filters use correct colours in dark and black mode (#881) Two problems with the previous code when search filters were visible: 1. The link icon overrode the tint, so didn't appear correctly in dark and black mode. 2. The horizontal scroll view had the wrong background colour in black mode. Fix both, by updating the icon and adding a new style for the scroll view. While I'm here remove an obsolete comment and tighten up visibility. Fixes #875 --- app/lint-baseline.xml | 12 ++++++------ .../app/pachli/components/search/SearchActivity.kt | 6 +----- app/src/main/res/drawable/ic_link_24.xml | 2 +- app/src/main/res/layout/activity_search.xml | 6 +++--- core/designsystem/src/main/res/values/styles.xml | 11 +++++++++-- 5 files changed, 20 insertions(+), 17 deletions(-) diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml index eef856004..18c6ffa71 100644 --- a/app/lint-baseline.xml +++ b/app/lint-baseline.xml @@ -499,23 +499,23 @@ + errorLine1=" <string name="error_media_upload_permission">Pachli tenger tillatelse for å lese media.</string>" + errorLine2=" ^"> + column="86"/> + errorLine1=" <string name="error_media_download_permission">Pachli trenger tillatelse for å lagre media.</string>" + errorLine2=" ^"> + column="90"/> =1.0.0".toConstraint())) { binding.chipHasLink.hide() diff --git a/app/src/main/res/drawable/ic_link_24.xml b/app/src/main/res/drawable/ic_link_24.xml index 66b0c317b..3c90c821b 100644 --- a/app/src/main/res/drawable/ic_link_24.xml +++ b/app/src/main/res/drawable/ic_link_24.xml @@ -15,7 +15,7 @@ ~ see . --> - + diff --git a/app/src/main/res/layout/activity_search.xml b/app/src/main/res/layout/activity_search.xml index c05e45a14..fb7eb229a 100644 --- a/app/src/main/res/layout/activity_search.xml +++ b/app/src/main/res/layout/activity_search.xml @@ -22,7 +22,7 @@ app:navigationIcon="?attr/homeAsUpIndicator" /> @@ -71,7 +71,7 @@ @@ -123,7 +123,7 @@ diff --git a/core/designsystem/src/main/res/values/styles.xml b/core/designsystem/src/main/res/values/styles.xml index 2751cb494..e819b0451 100644 --- a/core/designsystem/src/main/res/values/styles.xml +++ b/core/designsystem/src/main/res/values/styles.xml @@ -156,14 +156,21 @@ ?attr/colorControlNormal @style/Pachli.Widget.Toolbar.Black - @style/Pachli.Widget.Material3.TabLayout + @style/Pachli.Widget.Material3.TabLayout.Black + + @style/Pachli.Widget.HorizontalScrollView.Black + - + +