Skip to content

Commit f9fd9dc

Browse files
octocorvusthestinger
authored andcommitted
set opacity of text layer to always be 1
Fixes the selection color being too light.
1 parent 3fa2fdd commit f9fd9dc

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

viewer/css/text_layer.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
:root {
2-
--text-layer-opacity: 0.2;
32
--text-layer-foreground: transparent;
43
}
54

65
.textLayer {
76
text-align: initial;
87
position: absolute;
98
overflow: clip;
10-
opacity: var(--text-layer-opacity);
9+
opacity: 1;
1110
line-height: 1;
1211
text-size-adjust: none;
1312
forced-color-adjust: none;

viewer/js/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,13 +382,10 @@ globalThis.abortDocumentOutline = function () {
382382

383383
globalThis.toggleTextLayerVisibility = function () {
384384
let textLayerForeground = "red";
385-
let textLayerOpacity = 1;
386385
if (isTextLayerVisible) {
387386
textLayerForeground = "transparent";
388-
textLayerOpacity = 0.2;
389387
}
390388
document.documentElement.style.setProperty("--text-layer-foreground", textLayerForeground);
391-
document.documentElement.style.setProperty("--text-layer-opacity", textLayerOpacity.toString());
392389
isTextLayerVisible = !isTextLayerVisible;
393390
};
394391

0 commit comments

Comments
 (0)