qtrvsim icon indicating copy to clipboard operation
qtrvsim copied to clipboard

Text in the text field is not visible when using dark mode

Open nilsreichardt opened this issue 1 year ago • 2 comments

Description

I have the problem that my text is not really visible when typing in the text field.

https://github.com/cvut/qtrvsim/assets/24459435/02092af0-d5f9-4736-8451-75029caa8b99

Workaround

I discovered that it's related to the system theme. Using light mode doesn't have this issue.

Light Mode Dark Mode
Screenshot 2023-10-30 at 16 39 45 Screenshot 2023-10-30 at 16 39 29
Screenshot 2023-10-30 at 16 39 37

System: MacBook Pro M1, macOS 13.6, I'm using v0.9.5 of qtrvsim

Maybe related to #78

nilsreichardt avatar Oct 30 '23 15:10 nilsreichardt

Hi @nilsreichardt, I have trouple reproducing your problem. I have checked the code and it should you named colors Qt::black and Qt::white for text and background respectively. I have a dark theme and I do not have such issues. I have verified , that the highlighter does not break the base text color either.

What theme do you use? Can you check what colors does it define for Qt::black and Qt::white ?

jdupak avatar Nov 02 '23 13:11 jdupak

https://github.com/cvut/qtrvsim/assets/24459435/de03aa4e-c78e-4611-95e6-2a741d63dfc1

Here is a reproducible case:

  1. Create a new file
  2. Write some characters
  3. Delete them
  4. Write again

nilsreichardt avatar Nov 13 '23 10:11 nilsreichardt