Closed Bug 1398973 Opened 7 years ago Closed 6 years ago

Active tab is not visibly emphasized with classic theme and gtk3 or the Windows Classic theme.

Categories

(SeaMonkey :: Themes, defect)

SeaMonkey 2.49 Branch
defect
Not set
normal

Tracking

(seamonkey2.49esr fixed, seamonkey2.55 fixed, seamonkey2.56 fixed, seamonkey2.53+ fixed)

RESOLVED FIXED
seamonkey2.56
Tracking Status
seamonkey2.49esr --- fixed
seamonkey2.55 --- fixed
seamonkey2.56 --- fixed
seamonkey2.53 + fixed

People

(Reporter: bugzilla20071228, Assigned: frg)

References

Details

Attachments

(5 files, 2 obsolete files)

Attached image my current tab bar
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.1
Build ID: 20170831043804

Steps to reproduce:

Open up some tabs.


Actual results:

Find it difficult to see which tab I've currently got active. This happens regardless of the background theme I have. Modern theme is good. Default theme is bad.

See the screenshot below to see what I mean.

Also no background theme appears to change any aspect of the tab bar, which is why I'm stuck with this glorious colour scheme. I must have a light background in order to read the tab text (and see it)


Expected results:

The active tab should be blatantly obvious.

Background themes should be able to adjust the tab text and colours to better match their colours.
Blocks: SM2.49-GTK3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Until fixed for real, put something like this into your userChrome.css file:

/* Bug #1398973: add missing tab lwtheming with GTK3 */
.tabmail-tab:-moz-lwtheme,
.tabbrowser-tab:-moz-lwtheme
{
  -moz-appearance:none!important;
  background-color:rgba(255,255,255,0.8)!important;
}
Summary: gtk3 tab listing makes it almost impossible to see active tab → Active tab is not visibly emphasized with classic theme and gtk3 or a Windows non Aero theme.
Summary: Active tab is not visibly emphasized with classic theme and gtk3 or a Windows non Aero theme. → Active tab is not visibly emphasized with classic theme and gtk3 or the Windows Classic theme.
Attached patch 1398973-ActiveTab.patch (obsolete) — Splinter Review
Works fine for me with Windows Classic and CentOS 7.4. OS should not be affected.

It is not a100% solution: 

> .tabmail-tab[type="folder"][NewMessages="true"],
> .tabmail-tab[type="folder"][IsServer="true"] {

sets the font in mail tabs to "bold" too but not sure if we should experiment with colors here.
Assignee: nobody → frgrahl
Status: NEW → ASSIGNED
Attachment #8937344 - Flags: review?(iann_bugzilla)
Attachment #8937344 - Flags: feedback?(stefanh)
Comment on attachment 8937344 [details] [diff] [review]
1398973-ActiveTab.patch

As you say, bold is used for something else in mailNews, so I don't think this is a good idea (you want the solution to cover all instances). I would do something with the background instead. Or maybe the bottom border.
Attachment #8937344 - Flags: feedback?(stefanh) → feedback-
Thanks for the feedback. Unless I override moz-apperance and set it to none nothing else seems to stick. Lower opacity would work too but then then the not selected tabs would be too blurry to read the title.
Ah, yes. -moz-appearance normally overrides border/background. So, is this exclusively gtk3 or is it an issue on windows/gtk2 too?
Apart from tabbrowser tabs, how does other tabs look (mouswheel preferences, PageInfo)?
(In reply to Stefan [:stefanh] from comment #5)
> Ah, yes. -moz-appearance normally overrides border/background. So, is this
> exclusively gtk3 or is it an issue on windows/gtk2 too?

I've had no problems in gtk2 land. This only surfaced when SeaMonkey switched to gtk3.
Attached image Capture.PNG
It is not a gtk3 only problem. At least the Windows Classic theme is also affected. Pageinfo has a dotted border around the inner textbox.

Currently -moz-appearance seems to be set to tab. If fiddling with borders or backgrounds it would probably be needed to set it to none and redo the whole styling. Need to look how the mail folder tabs look in italics.
-moz-appearance is supposed to be a way to set a native appearance of a widget. How does a native Windows / gtk3 application handle active tabs?
Attached patch 1398973-ActiveTab-V2.patch (obsolete) — Splinter Review
A new try with a color bar. Looks nice and even a little modern :)
Attachment #8937344 - Attachment is obsolete: true
Attachment #8937344 - Flags: review?(iann_bugzilla)
Attachment #8938814 - Flags: review?(iann_bugzilla)
Attachment #8938814 - Flags: feedback?(stefanh)
Attached image Tab with color bar
Top to bottom:

Windows 7 Classic
Windows 7 Aero
Linux
Windows Aero without the patch.
Attachment #8938815 - Attachment description: Tab with cColor Bar → Tab with color bar
The Blue is maybe a little too dark especially in XP when you use a shade of red or another color for the title bar. Open for suggestions.
Comment on attachment 8938814 [details] [diff] [review]
1398973-ActiveTab-V2.patch

See my question in comment #9. I would change the background and/or the bottom border.
__________
|________| Not selected
__________
|        | Selected (lighter background)
Attachment #8938814 - Flags: feedback?(stefanh)
See my question in comment #9. 

As far as I see it on gtk3 there is no native styling :) All depends on the installed theme.

On Windows the current styling is imho native which results in gray and gray in the Classic theme. Plain white and gradient grays in Aero.

> I would change the background and/or the bottom border.

I don't want to mess with background or text colors outside of the borders because I fear that will result in unreadable text or alien colors depending on the theme. I actually like the lower border in the active tab but this could be removed and current behaviour be restored. Lets wait for IanN and decide.
Attached image Capture.PNG
Variation with Royal Blue and bottom border removed.

filter: brightness could also be used but would light up the whole box including the icon and text.
Comment on attachment 8938814 [details] [diff] [review]
1398973-ActiveTab-V2.patch

>+++ b/suite/themes/classic/navigator/tabbrowser.css
>@@ -46,19 +46,27 @@ tabpanels {
>   list-style-image: url("chrome://communicator/skin/icons/connecting.png");
> }
> 
> .tabbrowser-tab[progress] {
>   list-style-image: url("chrome://global/skin/icons/loading.png");
> }
This diff is on top of another patch, so had to manually apply the changes.

> 
> .tabbrowser-tab[selected="true"] {
>+  margin-bottom: 1px;
>   margin-bottom: 0px;
Why both of these?

>   padding-top: 2px; /* compensates the top margin of background tabs */
>   padding-bottom: 3px; /* compensates the bottom margin of background tabs */
>+  background-color: -moz-dialog;
>+  -moz-border-top-colors: unset;
>+  -moz-border-right-colors: unset;
>+  color: -moz-dialogtext;
>+  border: 1px solid Gray;
>+  border-top: 2px solid DarkBlue;
>+  -moz-appearance: none;
> }
r=me for those addressed / fixed.
Attachment #8938814 - Flags: review?(iann_bugzilla) → review+
[Approval Request Comment]
Regression caused by (bug #): --
User impact if declined: active tab not immediatly visible with some Linux and Windows themes.
Testing completed (on m-c, etc.): c-r c-esr52
Risk to taking this patch (and alternatives if risky): none minor fix.
String changes made by this patch: --

NITS addressed. Bottom border removed and switched to lighter blue as agreed on IRC. r+ from IanN retained.
Attachment #8938814 - Attachment is obsolete: true
Attachment #8941135 - Flags: review+
Attachment #8941135 - Flags: approval-comm-esr52?
Attachment #8941135 - Flags: approval-comm-beta?
Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/23a721e864ac
Show active tab with a color stripe to make it more visible. r=IanN
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Comment on attachment 8941135 [details] [diff] [review]
1398973-ActiveTab-V3.patch

a=me for c-b/c-esr
Attachment #8941135 - Flags: approval-comm-esr52?
Attachment #8941135 - Flags: approval-comm-esr52+
Attachment #8941135 - Flags: approval-comm-beta?
Attachment #8941135 - Flags: approval-comm-beta+
There is no mention of an about:config preference to override this change. If you prefer the former appearance you can restore it by adding the following to your userChrome.css file...

/* Undo patch for bug 1398973 - blue line on active tab */
.tabbrowser-tab[selected="true"] {
  -moz-appearance: tab !important;
}
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: