The DnD Sanctuary

Pings => Otter Browser Forum => Topic started by: dim on 2017-08-24, 07:51:05

Title: Interface odd color problem
Post by: dim on 2017-08-24, 07:51:05
(https://dndsanctuary.eu/imagecache.php?image=http%3A%2F%2Fimgur.com%2FyVgACHp&hash=2697a2a6daac511670dd29af159ff756" rel="cached" data-hash="2697a2a6daac511670dd29af159ff756" data-warn="External image, click here to view original" data-url="http://imgur.com/yVgACHp)

My guess is that panels and tab bar is hardcoded white background
is there a workaround i could use to make Otter follow system's colors ?
Title: Re: Interface odd color problem
Post by: Frenzie on 2017-08-24, 08:34:53
This is on WIndows? On Xubuntu it simply takes on my system theme. There's also a manual theme command line switch on Linux but I wouldn't know if something similar exists on Windows.

In case of "emergency" you can always use a custom interface stylesheet in preferences > appearance. Sorry I can't be more helpful but I've only got a minute. :)
Title: Re: Interface odd color problem
Post by: Emdek on 2017-08-24, 08:57:32
@dim, it's limitation WinAPI, so far I haven't found a way to get color used for drawing tab bar:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724371(v=vs.85).aspx
And it's almost always #FFF in all themes since Windows 98.

You can try switching to Fusion style for now.
Title: Re: Interface odd color problem
Post by: dim on 2017-08-24, 11:51:11
Fusion works great. I didn't notice it was there. Thanks
Title: Re: Interface odd color problem
Post by: Frenzie on 2017-08-24, 17:03:10
Just out of curiosity, what does it look like now?
Title: Re: Interface odd color problem
Post by: Emdek on 2017-08-24, 17:20:42
@dim, one more thing, could you please also show how does Preferences dialog look like with Windows style?
If it looks correctly then perhaps I would be able to find solution in Qt code.
BTW, is that some third party color scheme or what? I could try to reproduce it locally.
Title: Re: Interface odd color problem
Post by: Borut on 2017-08-24, 21:33:19
Tabs in Fusion style and Windows style (under Windows 7, itself in classic scheme).
Title: Re: Interface odd color problem
Post by: Borut on 2017-08-24, 21:36:03
Prefs in Windows style.
Title: Re: Interface odd color problem
Post by: Frenzie on 2017-08-25, 07:06:45
Tabs in Fusion style
Oh, not bad at all! The close button and the scrollbar aren't exactly native but nothing terrible.
Title: Re: Interface odd color problem
Post by: dim on 2017-08-26, 05:52:40
No third party themes or anything, just tweaking the classic windows 7 theme at the control panel
Control.Panel_Window.Color.Appearance (http://imgur.com/a/y2H7g)

This is Otter in Fusion
Otter_Fusion (http://imgur.com/a/BiqEV)

This is Otter in System Style
Otter_System.Style (http://imgur.com/a/f3xng)

Those are the registry entries for the color scheme
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Colors]
"Background"="0 0 0"
"Scrollbar"="100 105 110"
"ActiveTitle"="50 50 50"
"InactiveTitle"="50 50 50"
"Menu"="50 50 50"
"Window"="30 30 30"
"WindowFrame"="100 100 100"
"MenuText"="160 160 160"
"WindowText"="160 160 160"
"TitleText"="160 160 160"
"ActiveBorder"="50 50 50"
"InactiveBorder"="50 50 50"
"AppWorkspace"="20 20 20"
"Hilight"="50 100 150"
"HilightText"="200 200 200"
"ButtonFace"="50 50 50"
"ButtonShadow"="35 35 35"
"GrayText"="46 46 46"
"ButtonText"="160 160 160"
"InactiveTitleText"="100 100 100"
"ButtonHilight"="65 65 65"
"ButtonDkShadow"="30 30 30"
"ButtonLight"="60 60 60"
"InfoText"="160 160 160"
"InfoWindow"="50 50 50"
"ButtonAlternateFace"="50 50 50"
"HotTrackingColor"="70 130 180"
"GradientActiveTitle"="50 50 50"
"GradientInactiveTitle"="50 50 50"
"MenuHilight"="160 160 160"
"MenuBar"="50 50 50"
An old utility to easy change colors
JaSMiN 3D Color Changer (http://jasmin-3d-color-changer.software.informer.com/)
Title: Re: Interface odd color problem
Post by: Emdek on 2017-08-27, 18:34:17
@dim, thanks for details, hopefully there is some solution for this issue.