1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #18584 from calixteman/preview_background

[Editor] Change the background color of the image preview in the new alt text dialog
This commit is contained in:
calixteman 2024-08-09 12:36:15 +02:00 committed by GitHub
commit 36dc666d04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -857,6 +857,17 @@
.dialog.newAltText {
--new-alt-text-ai-disclaimer-icon: url(images/altText_disclaimer.svg);
--new-alt-text-spinner-icon: url(images/altText_spinner.svg);
--preview-image-bg-color: #f0f0f4;
--preview-image-border: none;
@media (prefers-color-scheme: dark) {
--preview-image-bg-color: #2b2a33;
}
@media screen and (forced-colors: active) {
--preview-image-bg-color: ButtonFace;
--preview-image-border: 1px solid ButtonText;
}
width: 80%;
max-width: 570px;
@ -1016,6 +1027,8 @@
justify-content: center;
align-items: center;
flex: 0 0 auto;
background-color: var(--preview-image-bg-color);
border: var(--preview-image-border);
> canvas {
max-width: 100%;