Changing Colors

Hello!

I seem to struggle to change some colors in the PDF Viewer e.g. the Activity Indicator etc.

Could you please guide me in this?


Much appreciated!

Kind regards,


Jaco


3 Replies

DG Deepak Gunasekaran Syncfusion Team August 14, 2023 09:39 AM UTC

Hi Jaco,


Please refer to the following link for changing the color of Activity Indicator used in the PDF Viewer. 

https://help.syncfusion.com/maui/pdf-viewer/ui-customization#customize-the-loading-indicator


Sample link: https://github.com/SyncfusionExamples/maui-pdf-viewer-examples/tree/master/Styles/BusyIndicatorStyle


Kindly let us know if you need any further information about customising any other controls used in the PDF Viewer.


Regards,

Deepak G



JA Jaco August 14, 2023 02:23 PM UTC

Good day


This is exactly what I tried before asking the question:



It stays purple however.

I also want to change the color of the page number indicator as illustrated below:


Image_8374_1692023012119



SS SalmanBaris ShahulHameed Syncfusion Team August 16, 2023 03:51 PM UTC

Hi Jaco,

At present, it is not feasible to customize the UI elements of the SfPdfViewer control using styles. The solution we shared earlier works for customizing the loading indicator that appears when the document is loading. But it is not working for the loading indicators that appear on each PDF page before it is rendered.

To achieve this requirement, we will provide support for themes. It will be available in any of our upcoming releases. We will let you know once this support is available.

Please find the feedback link below.

https://www.syncfusion.com/feedback/46158/customize-the-color-of-ui-elements-in-sfpdfviewer


Regards,

Salman


Loader.
Up arrow icon