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

            Bug ID: 474301
           Summary: Plasma 6 Feature Request/Proposal: Adaptive titlebar
                    color
    Classification: Plasma
           Product: Breeze
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: window decoration
          Assignee: plasma-b...@kde.org
          Reporter: xna...@hydra-development.net
                CC: kwin-bugs-n...@kde.org, uhh...@gmail.com
  Target Milestone: ---

REQUEST
With the design teams' ongoing effort to push the "CSD but not CSD" look in
native Breeze apps (which I personally am a huge fan of), it makes sense to try
to apply this to as many other applications as possible. Nowadays, many
applications use flat single colors near the header bar, which makes them ideal
candidates for a single-color title bar / window frame like we already have.

The request therefore is to make the window title bar dynamically set its color
based on the window's contents near the top edge, to create as seamless a
transition from window contents to SSD's as possible.

PROPOSAL
To determine the color for the title bar, I suggest the following approach:

1. Scan the topmost row of pixels of a window's contents
2a. If > 50% of those pixels are of the same color, set the title bar to that
color.
2b. If <= 50% of those pixels are of the same color, leave the title bar alone,
it will be the color specified in the color scheme.

Clearly, this would require the window manager somehow talk to the window
decoration, either to submit the topmost row of pixels (so that the window
decoration can perform the check), or to submit the color that it should set
itself to (here, the window manager would perform the check).

Like any other titlebar customizations, this feature should be toggleable in
system settings.

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

Reply via email to