From 8689905a197ab3c338c1cc4cffb34c490df0b5cb Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Mon, 21 Nov 2022 19:43:12 +0100 Subject: [PATCH] [Editor] Change the text annotation cursor for the high dpi screens. --- web/annotation_editor_layer_builder.css | 9 +++++++++ web/images/cursor-editorFreeText.svg | 3 +++ 2 files changed, 12 insertions(+) create mode 100755 web/images/cursor-editorFreeText.svg diff --git a/web/annotation_editor_layer_builder.css b/web/annotation_editor_layer_builder.css index f7d617e5e..6217ff681 100644 --- a/web/annotation_editor_layer_builder.css +++ b/web/annotation_editor_layer_builder.css @@ -26,6 +26,15 @@ /*#endif*/ } +@media (min-resolution: 1.1dppx) { + :root { + /*#if !COMPONENTS*/ + --editorFreeText-editing-cursor: url(images/cursor-editorFreeText.svg) 0 16, + text; + /*#endif*/ + } +} + @media (forced-colors: active) { :root { --focus-outline: solid 3px ButtonText; diff --git a/web/images/cursor-editorFreeText.svg b/web/images/cursor-editorFreeText.svg new file mode 100755 index 000000000..de2838ef1 --- /dev/null +++ b/web/images/cursor-editorFreeText.svg @@ -0,0 +1,3 @@ + + +