Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#657 Grey editor background color in Fedora 18 with CInnamon

None
wont-fix
nobody
1
2013-08-04
2012-12-11
No

Hello,

I am using Fedora 18 with Cinnamon. I installed texstudio using the official fedora repository.

Version:
TeXstudio 2.5.1 (SVN 3484)
Utilise Qt version 4.8.4, compilé avec Qt 4.8.3 R {1,?}

Default background of the code editor is based on system colors. The problem is that in my case, the background is gray and not white. I don't know whether LaTeXila (picking the wrong system color) or Fedora or Cinnamon or the Cinnamon theme (choosing an obviously wrong color for text editing background) is responsible for this situation.

See the attached file: on the left, the system colors are disabled in texstudio; on the right, the default display with system colors.

A white background using system colors would be good :)

1 Attachments

Discussion

1 2 > >> (Page 1 of 2)


  • 2012-12-11

    Another problem that seem related: the tooltips background is dark grey while the displayed text is black. This is obviously almost not readable (see attachment, where my mouse stands over the preview button).

    I think that there is a visual integration problem with texstudio and Fedora 18. Please tell me if I should warn Fedora developpers instead.

     
    Attachments
  • Tim Hoffmann
    Tim Hoffmann
    2012-12-11

    By default (don't ignore system colors and no special background set in syntax highlighting) TXS uses QPalette::Base as background (http://qt-project.org/doc/qt-4.8/qpalette.html#ColorRole-enum). Therefore I'd assume that Fedora specifies this as grey Are text edits and combo-drop-down-lists also grey in other applications?

    You can override this behavior in two ways:
    1. ignore system colors. Then TXS uses its own palette settings.
    2. Specifying a backgound in the syntax highlighting overrides QPalette::Base as background for the editor component. This can be either the background color of "background" or of "normal" (I currently don't know why we have both. It may be historic. Anyway, if set, the "background" backgroundcolor takes precedence over the normal one.)

     


  • 2012-12-12

    Gedit is the the default text editor in Fedora, and the text background is white. See the attachment to compare with Tex Studio. However it does not rely on Qt but on GTK+.

    Thanks for the tips! That will be my contingency plan.

     
    Attachments


  • 2012-12-12

    I almost forgot: tooltips in Gedit in Fedora are white text over dark grey boxes. See the attachment.

     
    Attachments
  • Tim Hoffmann
    Tim Hoffmann
    2012-12-12

    if you have python and pyqt installed, you can run the following attached script to determine the palette settings the OS provides by default.

     
    Attachments


  • 2012-12-12

    Here are the results:

    window (237,237,237)
    background (237,237,237)
    windowText (49,55,57)
    foreground (49,55,57)
    base (237,237,237)
    alternateBase (222,222,222)
    toolTipBase (255,255,220)
    toolTipText (255,255,255)
    text (49,55,57)
    button (237,237,237)
    buttonText (49,55,57)
    brightText (255,255,255)

     
  • Tim Hoffmann
    Tim Hoffmann
    2012-12-12

    There you are. base is grey. We are just doing, what's told to us :)

    So if grey is not correct, the error is somewhere between Qt and Fedora.

    Btw. is the background of the text edit in the opened window also grey?

     


  • 2012-12-12

    I don't know what's wrong then x).

    The background of palette.py is grey. See the attachment. Is that normal?

     
    Attachments
  • Tim Hoffmann
    Tim Hoffmann
    2012-12-12

    On Ubuntu the backgorund is white.

     
    Attachments
  • Tim Hoffmann
    Tim Hoffmann
    2012-12-12

    attached is a new version, which displays also the values for the different color groups. (Tooltips always use Inactive).

    So, you should ask Fedora (or maybe Qt) why these palette settings are privided.

     
    Last edit: Tim Hoffmann 2012-12-12
    Attachments
1 2 > >> (Page 1 of 2)