Chrome themes apply regular window's toolbar colour to Incognito window
Reported by
jeremyfa...@outlook.com,
Dec 15
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 Steps to reproduce the problem: By default (with no theme applied), the active tab & toolbar colour of the regular Chrome window is white, while the active tab & toolbar colour of the Incognito window is dark-grey. And the frame colour of the Incognito window is very-dark-grey. See screenshot-1 of default Incognito window tab and frame colours. Scenario 1: 1. Create Chrome theme per https://developer.chrome.com/extensions/themes 2. Set colour of active tab & toolbar to anything (eg. white - same colour as default), via the "toolbar" colour value in the manifest.json file. See attached file "Test Theme". 3. Apply theme, then open Incognito window. 4. Observe that the Incognito window's active tab & toolbar now use the "toolbar" colour from the theme. In addition, the Incognito window's frame colour is now medium-grey rather than very-dark-grey. See screenshot-2. Scenario 2: 1. Create Chrome theme per https://developer.chrome.com/extensions/themes 2. Don't set any colour values at all in the theme. Let the theme be empty. See attached file "Empty Theme". 3. Apply theme, open Incognito window. 4. Observe same result as in Scenario 1. Problems / unexpected behaviour: 1. When using a theme - even one which doesn't specify any colours at all - it's not possible to have a dark colour scheme for the Incognito window's active tab & toolbar (using default dark colours) while setting the regular window's tab and toolbar to any other colour. 2. Using an "empty" theme - with no defined colours - should (by resonable expectation) result in all default colours being used, including in the Incognito window, but that is not the case. Instead, an empty theme currently changes the Incognito window's active tab and toolbar to white. 3. Incognito window looks strange with a white tab and toolbar (or if the theme sets any other colour for the regular tab/toolbar, then the Incognito window would look just as strange using that colour instead of being dark). 4. The frame (title bar) colour of the Incognito window should not change when an empty theme is applied - no frame colour has been set in the theme, therefore the Incognito frame should use Chrome's default colour. What is the expected behavior? What went wrong? Expected behaviour: * There needs to be a way for the theme to define one colour for the regular window's active tab and toolbar, and a different colour for the Incognito window, so that theme designers can keep the Incognito window distinct and looking "dark", while designing a lighter-styled theme for the regular window. * When a theme doesn't define or include a particular value (eg. frame or background tab or any other supported value), then the theme should inherit the default colour for that value - for both the regular and Incognito window. This is currently true for the regular window - ie. the regular window will use default colours for any values that are not specified in the theme - but this is not the case for the Incognito window, which currently does *not* use default colours for any values that are not specified in the theme. Did this work before? N/A Chrome version: 71.0.3578.98 Channel: stable OS Version: 10.0 Flash Version:
,
Dec 17
Thanks for filing the issue... As per comment #0, it seems to be a feature request. Hence, marking it as untriaged for further inputs from Dev team. Thanks..!
,
Dec 17
Hi Phanindra, Are you certain it's not also a bug, ie. Chrome theme behaviour not working as originally intended? Also, what does "untriaged for further inputs" mean? (Just curious)
,
Dec 17
I think your problems (3) and (4) are reiterations of problems (1) and (2). Problem (2) looks like a real bug to me, but distinct from problem (1); maybe file that separately? Problem (1) seems like a legitimate feature request, but one I'm not sure whether we should implement. Right now there's a limit to what colors people can set differently in incognito windows, inactive windows, etc. If we want to do this, why not let every color vary based on each input? ...which would imply we need a different color selection mechanism, e.g. one more like CSS selectors, instead of unique identifiers with things like "_incognito" and "_inactive" tacked on.
,
Dec 17
You're right, (3) and (4) are reiterations of (1) and (2). :) I assumed (1) and (2) were related, or had the same root cause, but if you think they are different enough, then I can create (2) as a separate issue. To me it's not clear if (1) is only a feature request or also a bug (ie. behaviour not working as originally intended). It feels a bit like a bug to me. You're right that there's a limit to the colours a theme can set in Incognito mode, but maybe that's what needs to change? You'd only need to add three additional values to the theme to resolve this issue, as follows: * toolbar_incognito * tab_text_incognito * bookmark_text_incognito Everything else needed to keep the Incognito colour scheme distinct from the regular colour scheme is already provided! The problem currently is that without any theme applied, Incognito mode has its own distinct colour scheme, but the theming mechanism only allows a subset of the Incognito window elements to be themed, and the remaining Incognito elements (ie. the three I've listed above) inherit the colours from the regular window, which gives unexpected and undesired results. I don't see the need to use CSS or reinvent the wheel. Just add the three elements above, problem solved! ;)
,
Dec 17
I guess I'm sort of morphing into two distinct issues: (1) Provide the ability to specify a separate incognito color for at least some additional colors (toolbar background and various foregrounds). Note that to maintain backward compatibility, and since "change both normal and incognito" is usually what authors explicitly want, we wouldn't just make the non-incognito variants only apply to non-incognito windows; instead we'd add an incognito-specific variant, and if you want incognito to do something different than normal, you'd need to manually set that. (2) Don't override default colors unless a theme explicitly sets them. In particular, don't override incognito ones to look like normal ones when the normal ones themselves were never set. I consider (1) this bug and (2) another bug -- note that it looks similar to the issue about not overriding the frame color when a theme doesn't set it. There's perhaps a variant of (2) that would be a feature request, to have some sort of explicit "use default value" color token. So for example you could override the toolbar color to be red in a normal window, and then mark the incognito toolbar as "use default color". This would help address maintainability problems with (1).
,
Dec 17
You're right, (2) is clearly separate. I'll go ahead and create (2) as a new issue then. I think what you've written in your paragraph under (1) in Comment 6 is in line with my suggestion in Comment 5, right? In other words, adding these three new theme values would basically achieve what you're suggesting: * toolbar_incognito * tab_text_incognito * bookmark_text_incognito So if a theme doesn't include these three new values, then the existing behaviour still applies. That keeps existing themes from breaking.
,
Dec 17
Okay, new issue created for (2) here: Bug 915802 |
||
►
Sign in to add a comment |
||
Comment 1 by meh...@chromium.org
, Dec 15Components: -UI UI>Browser>Themes
Labels: OS-Chrome OS-Linux OS-Mac