From ab5c9fe83a329e2d81343d971304a4b823a01088 Mon Sep 17 00:00:00 2001 From: lmora Date: Wed, 30 Oct 2024 16:37:17 -0500 Subject: [PATCH] Add background color for images in dark mode Adding a grey background color in dark mode so transparent images are readable Bug: T375045 Change-Id: I168cd8b48359e59acb038a6909b77f6c38600c79 --- src/ui/templates/popup/popup.less | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/ui/templates/popup/popup.less b/src/ui/templates/popup/popup.less index c5b771e16..796438d46 100644 --- a/src/ui/templates/popup/popup.less +++ b/src/ui/templates/popup/popup.less @@ -452,6 +452,14 @@ /* @noflip */ background-image: linear-gradient( to left, transparent, @background-color-base 50% ); } + + @supports ( clip-path: polygon( 1px 1px ) ) { + .mwe-popups { + .mwe-popups-thumbnail { + background-color: #c8ccd1; + } + } + } } } @@ -470,5 +478,13 @@ /* @noflip */ background-image: linear-gradient( to left, transparent, @background-color-base 50% ); } + + @supports ( clip-path: polygon( 1px 1px ) ) { + .mwe-popups { + .mwe-popups-thumbnail { + background-color: #c8ccd1; + } + } + } } }