Where can I specify colors for the tabs?

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

J Smith
Posts: 52
Joined: Fri Feb 09, 2007 8:30 am

Where can I specify colors for the tabs?

Post by J Smith »

Using Win98SE, the text color in the active tab comes from my Windows color scheme. The background is a light blue. I haven't seen that color before and don't know where it comes from. It may be built in the xnview.

I see only black in the label of the inactive tabs. Changing my windows color scheme makes no difference in the empty inactive
tab.

Question 1. Is there any way to set the color of the text of the active tab and override the color xnview gets from the Windows color scheme?

Question 2. Is there any way to get something to show in the inactive tabs?
User avatar
xnview
Author of XnView
Posts: 37624
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Where can I specify colors for the tabs?

Post by xnview »

J Smith wrote:Using Win98SE, the text color in the active tab comes from my Windows color scheme. The background is a light blue. I haven't seen that color before and don't know where it comes from. It may be built in the xnview.

I see only black in the label of the inactive tabs. Changing my windows color scheme makes no difference in the empty inactive
tab.

Question 1. Is there any way to set the color of the text of the active tab and override the color xnview gets from the Windows color scheme?

Question 2. Is there any way to get something to show in the inactive tabs?
Could you post a screenshot? Currently you can't change color!
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 5999
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Post by XnTriq »

Hello J Smith,

have you tried switching the Use default tab control setting (Tools » Options... » Interface » Tabs)?
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France

Nothing !

Post by Clo »

—> XnTriq

:) Hello !
have you tried switching the Use default tab control setting (Tools » Options... » Interface » Tabs)?
• I don't know under Win 98 SE (mine are out), but under XP that option is quite buggy :
When chosen, you get ghost tabs, nothing is drawn… I use a classic Win 9x theme, though…
- I've reported the non-fix, no feedback yet… :(

:mrgreen: FR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
J Smith
Posts: 52
Joined: Fri Feb 09, 2007 8:30 am

Post by J Smith »

On my system Win98SE/ Xnview 1.90.2, the use default tab control is greyed out.
J Smith
Posts: 52
Joined: Fri Feb 09, 2007 8:30 am

Post by J Smith »

Subject to limitations of my being unable to check use default
tab control because it is greyed out, here is what appears to
underlie the problem.

I use Windows 98 SE.

When Xnview starts, it sets the background color of the active
tab to a hard coded light blue, and the foreground text color, to
the users' Windows color scheme message box, font color. If you
change the users' Windows color scheme to one with a different
message box font color, the foreground text color of the active tab updates accordingly but the background color remains the light blue.

Also when Xnview starts, it sets the background color of the
inactive tab to what appears to be a color derived from the
user's Windows color scheme 3d objects item color, as opposed to
the 3d objects font color. It looks to me like Xnview then takes
the 3d item color and darkens it slightly for the inactive tab
background color and darkens it yet more for the foreground text
color. If you change the users' Windows color scheme, these
colors do not change. These colors appear to be set at start up
and change when you exit and restart the program.

The problem arose because I use black in 3d objects item color.
It looks like the program calculated my inactive tabs colors by blackening my black once for the background and once for the foreground, giving unreadable black on black.

It looks like the darkening algorithm doesn't check for color
equal to 0.

The light blue creates another problem because I have a light
message font box color.

Question.

Is there any work around for this problem?



Suggestion for Solution.

I would suggest the following for setting these colors.

Leave the selection of the active tab foreground text color to
the Windows message box text color, as is.

Instead of hard coding light blue for the active tab background,
set it to the users' Windows color scheme window item color.

Set the inactive tab foreground and background colors from the
users' Windows color scheme inactive title bar font and item
colors.
User avatar
XnTriq
Moderator & Librarian
Posts: 5999
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Nothing !

Post by XnTriq »

Clo wrote:• I don't know under Win 98 SE (mine are out), but under XP that option is quite buggy :
When chosen, you get ghost tabs, nothing is drawn… I use a classic Win 9x theme, though…
Yes, I remember this issue from beta testing. We had only reports from people with XP or 2K systems, which made me wonder if this option was implemented for compatibility reasons with older versions of Windows. But apparently that's not the case:
J Smith wrote:On my system Win98SE/ Xnview 1.90.2, the use default tab control is greyed out.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France

Joker feature

Post by Clo »

—> XnTriq

:) Hello !

• It seems normal that the option be greyed out under Win 98 SE… But this is a multi-face bug !

- For J Smith, it shows still the owner-drawn blue tabs, while for me and others under XP
- but using the classic Win 9x theme - it shows… *peanuts* !
- Like I said a while ago, THE BIG BUG was not fixed up, and not yet in the 1.90.x versions
(currently, I've a special test version newer than 1.90.2)
• Hence, I think that this topic might be moved to the Bugs section… Sirs Mods, please ?

:mrgreen: FR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice