Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > General Discussion
  New Posts New Posts RSS Feed - How Can I Change the Color of Text in Nighrt Mode?
  FAQ FAQ  Forum Search   Register Register  Login Login

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

 Post Reply Post Reply
Author
Message
Catahecassa31 View Drop Down
Beginner
Beginner
Avatar

Joined: 29 Aug 21
Location: alaska
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Catahecassa31 Quote  Post ReplyReply Direct Link To This Post Topic: How Can I Change the Color of Text in Nighrt Mode?
    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?

Edited by Catahecassa31 - 17 Sep 21 at 5:54AM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
noramila View Drop Down
Beginner
Beginner
Avatar

Joined: 29 Aug 23
Location: India
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote noramila Quote  Post ReplyReply Direct Link To This Post 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;
  }
}


Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 05 Sep 23 at 9:11PM
Hi Nora :) 

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

Cheers,
Ingo

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store