https://bugs.kde.org/show_bug.cgi?id=406821

            Bug ID: 406821
           Summary: Dark UI color theme breaks default LightTheme
           Product: frameworks-syntax-highlighting
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: theme
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: kosse...@kde.org
  Target Milestone: ---

SUMMARY
When using a dark UI color theme, with the default syntax highligting theme for
LightTheme those text regions which would be rendered using "Normal" textstyle
appear invisible against bright backgrounds.

STEPS TO REPRODUCE
1. Use Plasma, switch to dark color theme "Breeze Dark"
2. In Dolphin, enable preview of "Text Files" (needs KA 19.04)
3. Navigate to folder with text files, e.g. a dir with C++ sources
4. Enable "Preview" for folder, also trigger tooltips & info docker

OBSERVED RESULT
Rendered text misses out large parts of text to render.

EXPECTED RESULT
All text is properly rendered in some sane colors against the bright
background.


Additionally strange is that
QColor(highlightingTheme.textColor(KSyntaxHighlighting::Theme::Normal)) is
always QColor(ARGB 1, 0.121569, 0.109804, 0.105882). Matching the "text-color"
: "#1f1c1b" entry in default.theme.

Is there potentially a chance that instead of applying the "Normal" style for
such text regions, that the regions stay unformatted in the QTextDocument, and
thus Qt's rendering falls back to UI colors?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to