Merge pull request #15461 from calixteman/1790309

Use AccentColor as background for selected text in the text layer (bug 1790309)
This commit is contained in:
calixteman 2022-09-19 22:36:37 +02:00 committed by GitHub
commit e5fc7cf4bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 13 deletions

View File

@ -21,7 +21,7 @@
right: 0;
bottom: 0;
overflow: hidden;
opacity: 0.2;
opacity: 0.25;
line-height: 1;
text-size-adjust: none;
forced-color-adjust: none;
@ -71,7 +71,10 @@
}
.textLayer ::selection {
background: rgba(0, 0, 255, 1);
/*#if !MOZCENTRAL*/
background: blue;
/*#endif*/
background: AccentColor;
}
/* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */

View File

@ -1288,13 +1288,6 @@ a:focus > .thumbnail > .thumbnailSelectionRing,
color: var(--treeitem-hover-color);
}
/* TODO: file FF bug to support ::-moz-selection:window-inactive
so we can override the opaque grey background when the window is inactive;
see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */
::selection {
background: rgba(0, 0, 255, 0.3);
}
/*#if !MOZCENTRAL*/
#errorWrapper {
background-color: var(--errorWrapper-bg-color);

View File

@ -58,10 +58,6 @@
background-color: rgba(203, 223, 203, 1);
}
.xfaLayer ::selection {
background: rgba(0, 0, 255, 1);
}
.xfaPage {
overflow: hidden;
position: relative;