Jump to content

Background Color in unipdfframe


Helmut Hort

Recommended Posts

On 2/19/2019 at 1:38 PM, Helmut Hort said:

How can I change the background color of pdfframe from black to any other color?

Hello,

Because pdfjs does not support themes, one possible solution, you need to change viewer.css ( for example in a folder \FMSoft\Framework\uniGUI\uni-1.70.0.14xx\pdf.js\web )

Just add the following css rules at the end, and don't forget to clear your browser's cache:

#viewer, #toolbarViewer {
    background-color: green !important
}        

.toolbarButton, .secondaryToolbarButton, .overlayButton {
   	background-color: orange !important;
}

pdfjsTheme.png.b38ed5ea07ca897e6e4f1d67f75f2138.png

  • Like 1
Link to comment
Share on other sites

  • 3 years later...
On 2/24/2019 at 2:59 AM, Sherzod said:

Hello,

Because pdfjs does not support themes, one possible solution, you need to change viewer.css ( for example in a folder \FMSoft\Framework\uniGUI\uni-1.70.0.14xx\pdf.js\web )

Just add the following css rules at the end, and don't forget to clear your browser's cache:

#viewer, #toolbarViewer {
    background-color: green !important
}        

.toolbarButton, .secondaryToolbarButton, .overlayButton {
   	background-color: orange !important;
}

pdfjsTheme.png.b38ed5ea07ca897e6e4f1d67f75f2138.png

Hello!

How change font color in caption and background color of popupmenu?

image.png.07a2dbaad02377078b8ddde31194e3bd.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...