Menu

#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

  • - 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.

     
  • 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.

     
  • - 2012-12-12

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

     
  • 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.

     
  • - 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?

     
  • Tim Hoffmann

    Tim Hoffmann - 2012-12-12

    On Ubuntu the backgorund is white.

     
  • 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
  • - 2012-12-12

    It seems in Fedora that editable text areas are white, while non-editable are grey.

    I will create a bug report in the Fedora bug tracker, with a link to this page for the whole story.

    Here are the results of the second version of your script:

    Color group: Disabled
    Window (237,237,237)
    Background (237,237,237)
    WindowText (143,146,147)
    Foreground (143,146,147)
    Base (237,237,237)
    AlternateBase (222,222,222)
    ToolTipBase (255,255,220)
    ToolTipText (255,255,255)
    Text (143,146,147)
    Button (237,237,237)
    ButtonText (143,146,147)
    BrightText (255,255,255)

    Color group: Active
    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)

    Color group: Inactive
    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 - 2013-08-04
    • status: open --> wont-fix

    There's nothing that can be done from our side. Is there any answer in the Fedora tracker?

     

    Last edit: Tim Hoffmann 2013-08-04

Log in to post a comment.