desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Theme Color alpha hex functionality broken

Open prypyet opened this issue 1 year ago • 17 comments

Captchas

  • [x] I have read the instructions.
  • [x] I have searched existing issues and avoided creating duplicates.
  • [x] I am not filing an enhancement request.
  • [x] I have checked that this issue cannot be reproduced on Mozilla Firefox.
  • [x] I have checked that this issue cannot be reproduced once I removed all my Mods and Custom CSS.

What happened?

The Add theme color bar (which now is enabled using an about:config setting) allows for the usage of alpha hex values (#aabbccdd) and rgba values (rgba ( 0, 0, 0, 0.1)) values. This is THE way to use transluscency and transparency on linux which doesnt have mica support like windows. In the past 3 versions, this functionality doesn't work making transluscent browser rices on Linux obsolete (unless you reduce the opacity of the entire browser, in which case text becomes less readable). This functionality is really important on Linux and has been broken since 1.10.1b for me.

Version

1.10.3b

What platform are you seeing the problem on?

Linux (Tarball)

What component is this issue related to?

Customizable UI / Toolbars

Relevant log output if applicable


prypyet avatar Mar 29 '25 15:03 prypyet

This seems to be related to #6729, which was just closed automatically.

taylor85345 avatar Mar 29 '25 18:03 taylor85345

On Windows 11, the alpha hex transparency is also broken, but in a different way. If I enter any 8 digit hex code, all other colors in the gradient are overruled by a pure transparency that shows through to the Windows Accent Color layer. The amount of alpha can't be changed. It's just pure transparency.

j4yn1ck5 avatar Apr 03 '25 20:04 j4yn1ck5

I have been searching through issues for something like this. How do I even make it transparent, I don't even see the hex color setter.

Image

krisMG21 avatar Apr 04 '25 09:04 krisMG21

@krisMG21 If you go to about:config and toggle the zen.theme.gradient.show-custom-colors flag to true and restart the browser, then it will show a box to type in hex codes for colors in theme color menu. It suggests to enter a 6 character code. But if you enter one with 8 characters, the last two characters correspond to alpha.

This option was available by default in previous builds before this new palette interface was introduced which looks fun and artsy but drastically limits the options available to the end user.

j4yn1ck5 avatar Apr 04 '25 17:04 j4yn1ck5

@j4yn1ck5 Oooooh perfect, tysm

krisMG21 avatar Apr 04 '25 20:04 krisMG21

I dont really know what the issue is, but setting this in userChrome.css fixes it on linux, the blur kinda works and its only for the main area that is not in compact mode. In compact mode they are are fully transparent.

:root {
  background-color: var(--zen-main-browser-background) !important;
}

#zen-main-app-wrapper {
  background-color: var(--zen-main-browser-background) !important;
}

Lund1337 avatar Apr 05 '25 17:04 Lund1337

Enabling the config flag zen.theme.gradient.show-custom-colors and setting the alpha channel to 00 using the hex value (for example #2e344000) currently results in a black background.

@Lund1337's userChrome.css seems to work (according to @LarveyOfficial).

The zen-main-app-wrapper and/or root elements thus seem to have have a black background color. I am currently unsure whether this is intentional or not. I will move this up to TODO.

LeMoonStar avatar Apr 05 '25 20:04 LeMoonStar

Wanted to thank everyone in this thread for explaining some of the quirks of Zen Browser themes. In particular the zen.theme.gradient.show-custom-colors and zen.theme.gradient were important finds for me. I wanted to fully disable the transparency and setting zen.theme.gradient to false was the trick. Was also fun to play around with the hex values via zen.theme.gradient.show-custom-colors set to true.

For anyone else reading this wondering where these settings are: Type about:config in your topbar where you would a website name or URL.

Again thanks all! Cheers

trendespresso avatar Apr 06 '25 14:04 trendespresso

Maybe this exists and I just haven't found it, but it'd be nice to have different colors per dark/light mode. What I'm trying to achieve is essentially "light background blur" and "dark background blur", akin to Windows Mica, but on Linux.

fufexan avatar May 05 '25 15:05 fufexan

You are doing it wrong... You should enable zen.widget.linux.transparency in about:config and lower the contrast 👍🏽

mr-cheffy avatar May 05 '25 17:05 mr-cheffy

@mauro-balades Was a fix actually entered, or did the related Issue #7065 from a Windows perspective get marked as a dupe so it could be forgotten about once the Linux perspective was dealt with? Because unless there is something coming in the next version, I'm still unsatisfied.

j4yn1ck5 avatar May 05 '25 18:05 j4yn1ck5

In what way

mr-cheffy avatar May 05 '25 18:05 mr-cheffy

On Windows 11, the alpha hex transparency is also broken, but in a different way. If I enter any 8 digit hex code, all other colors in the gradient are overruled by a pure transparency that shows through to the Windows Accent Color layer. The amount of alpha can't be changed. It's just pure transparency.

As of 1.12.1b, the behavior is the same.

j4yn1ck5 avatar May 05 '25 18:05 j4yn1ck5

I used to be able to use a translucent code as one of multiple colors in the gradient and position it over the top toolbar so that I could see the webpage underneath it in hide both mode.

j4yn1ck5 avatar May 05 '25 18:05 j4yn1ck5

I'm also just generally unhappy that the standard theme palette limits the hue and saturation ranges of color choice to this sort of bright and poppy look only. But as long as the hex codes are available, I can get around that.

j4yn1ck5 avatar May 05 '25 18:05 j4yn1ck5

You are doing it wrong... You should enable zen.widget.linux.transparency in about:config and lower the contrast 👍🏽

I already do that, and I have the "light/dark" browser theme enabled. Using this and the center point in the picker (what I assume is some variation of gray), the overall results looks good when the light theme is enabled, but it's too light when the dark theme is enabled.

fufexan avatar May 06 '25 06:05 fufexan

Maybe this exists and I just haven't found it, but it'd be nice to have different colors per dark/light mode. What I'm trying to achieve is essentially "light background blur" and "dark background blur", akin to Windows Mica, but on Linux.

Today I was thinking light-dark() is standard css, so why not try it out. It does work, in case anyone else was wondering.

fufexan avatar May 15 '25 16:05 fufexan