From 0852c42c15e2f5b0089b0844d822eaa973f7da20 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 26 Apr 2025 20:37:16 +0200 Subject: [PATCH] Always render the Annotation- and XFA-layers with light `color-scheme` (issue 19871) The intention with PR 19819 was to change how colours are specified for the viewer UI, however it wasn't intended to affect elements in the Annotation- and XFA-layers. Hence we enforce the light `color-scheme` for these layers, and also make sure to provide a default `color` for PopupAnnotations. --- web/annotation_layer_builder.css | 3 +++ web/xfa_layer_builder.css | 2 ++ 2 files changed, 5 insertions(+) diff --git a/web/annotation_layer_builder.css b/web/annotation_layer_builder.css index ea2ed830f..f2dbc375e 100644 --- a/web/annotation_layer_builder.css +++ b/web/annotation_layer_builder.css @@ -14,6 +14,8 @@ */ .annotationLayer { + color-scheme: only light; + --annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,"); --input-focus-border-color: Highlight; --input-focus-outline: 1px solid Canvas; @@ -305,6 +307,7 @@ .popup { background-color: rgb(255 255 153); + color: black; box-shadow: 0 calc(2px * var(--total-scale-factor)) calc(5px * var(--total-scale-factor)) rgb(136 136 136); border-radius: calc(2px * var(--total-scale-factor)); diff --git a/web/xfa_layer_builder.css b/web/xfa_layer_builder.css index 72009759b..73560fec3 100644 --- a/web/xfa_layer_builder.css +++ b/web/xfa_layer_builder.css @@ -28,6 +28,8 @@ } .xfaLayer { + color-scheme: only light; + background-color: transparent; }