Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colors overhaul #11

Merged
merged 1 commit into from
May 24, 2021
Merged

Colors overhaul #11

merged 1 commit into from
May 24, 2021

Conversation

pwmarcz
Copy link
Contributor

@pwmarcz pwmarcz commented Feb 2, 2021

New version of #7.

Use a perceptual color space instead of HSV when colorizing
window decorations, and retain more of the original decorations'
lightness. This makes most decorations slightly less dark,
improving contrast, removes the need for specialcasing black,
and fixes the treatment of gray.

In addition, try to determine light/dark color depending on the
original window manager theme. Most themes should look OK now.

See QubesOS/qubes-issues#5800.

Examples

Note that the title bars in the screenshots are inactive (only the dom0 window has focus). Active titles have darker/lighter text, resulting in better contrast. (edit: the inactive title colors have also been improved slightly since taking the screenshot)

Default theme (in R4.1 currently):

image

Default theme (in this PR):

image

Other themes (in this PR):

image

image

image

image

image

Use a perceptual color space instead of HSV when colorizing
window decorations, and retain more of the original decorations'
lightness. This makes most decorations slightly less dark,
improving contrast, removes the need for specialcasing black,
and fixes the treatment of gray.

In addition, try to determine light/dark text color depending
on the original window manager theme. Most themes should look OK
now.

See QubesOS/qubes-issues#5800.
@pwmarcz
Copy link
Contributor Author

pwmarcz commented Feb 3, 2021

I tweaked the colors slightly to improve contrast for white inactive title. Still doesn't look great for all xfce themes, but then some xfce themes look pretty bad even before we modify them :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants