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

            Bug ID: 476774
           Summary: Kate Color Theme Editor - Set  context background for
                    all children
    Classification: Applications
           Product: kate
           Version: 23.08.2
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: a...@triptech.net
  Target Milestone: ---

Created attachment 162997
  --> https://bugs.kde.org/attachment.cgi?id=162997&action=edit
Background color for whitespace only

SUMMARY
Within the theme editor it is not possible to set the Background for a
'Context' without setting each individual item.
For example for the Highlight 'Markup/HTML',  I would like to set a different
background for the CSS context, but applying a background to CSS→Normal Text
only impacts white space.  The other CSS child context items that have
Background as 'none set' inherit the Theme's default Text Area color, and must
be updated one at a time.

I may have missed some obvious existing way to do this, otherwise this is a
feature request?
Note outside of the CSS example, this sort of block highlighting is common with
eg php or asp in Notepad++.


STEPS TO REPRODUCE
1. In Kate's Color Themes > Theme Editor >Highlighting Text Styles, select to
Highlight  Markup/HTML
2. Scroll to the Context for CSS, and set a Background for the "Normal Text"
child.
3. This highlights the CSS Parent with your selected background color (implying
it applies to the group).
4. Apply settings and open an HTML file with inline <style>

OBSERVED RESULT
Whitespace of the <style> content has the selected background color display,
but the properties/value that have background 'none set' still have the Theme
background color.
Attached screenshot has cyan background being only applied to tabs, colons,
spaces, brackets.

EXPECTED RESULT
Any properties/values should inherit the background color of the CSS context,
so that this entire block has a cyan background (unless a child attribute has
background set).
Alternatively, it may make more sense if there were an explicit Background
setting for the parent context (rather than Normal Text), and the "Not set"
children had an effectively transparent background.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION

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

Reply via email to