Print Page | Close Window

How Can I Change the Color of Text in Nighrt Mode?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3950
Printed Date: 19 Jun 24 at 5:06PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: How Can I Change the Color of Text in Nighrt Mode?
Posted By: Catahecassa31
Subject: How Can I Change the Color of Text in Nighrt Mode?
Date Posted: 30 Aug 21 at 6:24AM
How can I change the color of the grey text to white in night mode? What file and code line do i change to do that?
https://sarkarinaukrilatestgovtjobs.in" rel="nofollow - government new jobs



Replies:
Posted By: Ingo
Date Posted: 01 Sep 21 at 10:58PM
Hi :)

from what night mode you're writing?
The relevant code snippet could help to help ;-)
With QuickPDF you can't change a text colour after the pdf is created.
You can overwrite text parts with white and then you can write new text with another colour but a real change isn't possible.

Cheers and welcome here,
Ingo


-------------
Cheers,
Ingo



Posted By: noramila
Date Posted: 04 Sep 23 at 6:58AM
Changing the color of text in night mode usually entails editing your website's or application's CSS (Cascading Style Sheets). To turn grey text to white in night mode, you must target specific components and modify their CSS values.

Try this code

@media (prefers-color-scheme: dark) {
  .night-mode-text {
    color: white;
  }
}




Posted By: Ingo
Date Posted: 05 Sep 23 at 9:11PM
Hi Nora :) 

This here is a helping community for pdf-development ;-)



-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk