Author Topic: UI Font color on KDE Plasma  (Read 8283 times)

Offline sdufoer

  • Newcomer
  • Posts: 4
UI Font color on KDE Plasma
« on: 2017 August 05 03:04:32 »
I just installed Pixinsight on a KDE plasma system (kubuntu).  I use the Breeze-Dark theme.  The installation was flawless, but most of my fonts are white color on light-gray background.  Even the "open file" dialog is like this.  Others are the "batch preprocessing script", or the image-integration.  Barely readable.
I played with the core-standard.qss file, but couldn't find where to change the font-colors of the interface from white to dark.

In KDE-plasma, System-settings -> Application-style; everything is set on Breeze-dark.  I keep the system updated with apt-get dist-upgrade.

Does anyone has the same problem?  What can I do to resolve this?

Offline sdufoer

  • Newcomer
  • Posts: 4
Re: UI Font color on KDE Plasma
« Reply #1 on: 2017 August 15 10:43:54 »
Does anybody knows something more about this?   How do I change the theme in Pixinsight so I can at least read my screen?

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: UI Font color on KDE Plasma
« Reply #2 on: 2017 August 16 01:30:19 »
Hi,

The problem you are reporting is very strange. PixInsight defines its own style sheet, which should be applied to all interface elements, irrespective of the style or settings enabled in the desktop manager. I have never seen a problem like what you are describing on Linux or other platforms. We also use KDE Plasma desktops (on Red Hat and Fedora, but I don't see why Ubuntu should be different) without problems.

The core style sheet is indeed core-standard.qss. This is a plain text file that you can edit with any code editor. You'll see a lot of color definitions for a large variety of interface elements (buttons, scroll boxes, windows, etc) that you can change. See Qt's official documentation for complete information on Qt style sheets:

http://doc.qt.io/qt-5/stylesheet-customizing.html

However, you should not need to modify this file unless you really want to customize PixInsight's interface, not to improve readability. Something strange happens with your desktop. Can you post some screenshots?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline sdufoer

  • Newcomer
  • Posts: 4
Re: UI Font color on KDE Plasma
« Reply #3 on: 2017 August 16 10:15:58 »
Here are some screenshots.  As you can see, it's almost not possible to read the text.







I have played with the core-standard.qss stylesheet, but haven't found (yet) how to change this text color.  Off course I made a backup of the file in case I changed something wrong.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: UI Font color on KDE Plasma
« Reply #4 on: 2017 August 17 02:54:15 »
Hi,

This is really weird, I've never seen this before. Try the following:

- Make a backup of the original core-standard.qss file (you already have done this, well done ;) )

- Open the core-standard.qss file with a plain text editor, preferably a good code editor such as KWrite or Kate, or PixInsight's Script Editor (yes, you can modify the file while PixInsight is running; the core style sheet is only parsed upon application startup).

- Go to line number 26. The original code is:

Code: [Select]
* {
   font-family: "<core_sans_font>", DejaVu Sans, Open Sans;
   @platform x11 osx {
      font-size: 9pt;
   }
   @platform windows {
      font-size: 8pt;
   }
}

- Change it to:

Code: [Select]
* {
   font-family: "<core_sans_font>", DejaVu Sans, Open Sans;
   @platform x11 osx {
      font-size: 9pt;
      color: black;
   }
   @platform windows {
      font-size: 8pt;
   }
}

Note the new CSS rule "color: black" inserted in line 30.

- Save the file and launch PixInsight.

This change is risky, in the sense that it will force the default color for all interface elements. Let's see if this works correctly on your KDE installation. If you detect bad side effects after doing this change (e.g., undesirable color changes for non-text elements), we'll refine it by modifying specific controls. If we find a way to fix this problem for you, I'll try to replicate it on a virtual machine, and will release it as an official update.
« Last Edit: 2017 August 17 03:07:04 by Pleiades »
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline sdufoer

  • Newcomer
  • Posts: 4
Re: UI Font color on KDE Plasma
« Reply #5 on: 2017 August 17 09:50:34 »
Juan,

Thanks you very much, this seems to have done the trick.  I think I tried this setting before, but now it works.

FYI: The color of the icons however didn't change with it.  See in the "open image files" window.  This is imho a minor issue, the texts are readable and the program is usable.



I use a pretty standard KDE plasma installation (kubuntu), without modifications.  I use the breeze-dark theme.

Offline knro

  • Newcomer
  • Posts: 18
Re: UI Font color on KDE Plasma
« Reply #6 on: 2017 September 28 23:16:49 »
Thanks!!!! That solved it, it was driving me crazy! I also use the KDE Dark Breeze theme on my desktop.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: UI Font color on KDE Plasma
« Reply #7 on: 2017 October 02 06:37:32 »
Hi all,

This modification to the core style sheet has just been released as an update for all platforms. This will prevent potential readability issues on all operating systems, not just Linux. Thank you for your support and patience!
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pbkoden

  • Newcomer
  • Posts: 3
Re: UI Font color on KDE Plasma
« Reply #8 on: 2020 February 17 15:39:26 »
Did you ever find a fix for the icon color issue? I recently switched from Ubuntu with Gnome to Manjaro with KDE and am now having the same very low contrast icon issue you had.