Changing Frame Header Colors

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Changing Frame Header Colors

Post by RMan »

It looks like the frame headers are using the Selection color and I have tried finding the value in the Themes.xml in the Resources.dat file that controls this but no luck. As you can see from this screen capture there are many times when the labels are barely readable due to other colors you pick so we would like to change it so it always uses the Text color so user would never run into this problem. Can you please let me know what values we would have to change in the file to do this.

Image
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Changing Frame Header Colors

Post by Tracker Supp-Stefan »

Hello RMan,

I've just spoken with a colleague in the dev team, and he has told me that this is currently not possible to change.
We will try to fix this as soon as possible.

Regards,
Stefan
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

Thanks. In our case since we use a side by side manifest install with the files in our folder I'll gladly use an intermediate release if they can fix it sooner.

I was really hoping there was just some setting missing in the theme but hopefully they can change it to match the other text color or add in another Title Text setting for the users. I personally think since it's a title or header that it should be the same color as the Text and bold by default if they do not want to add in a separate setting.

As you can see in some of the dialogs also that they use the same color for the title and makes it harder to read than the main text even though it's a larger font. This sample was with the default settings and the Windows 7 High Contrast #1 Theme.

Image
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Changing Frame Header Colors

Post by Sasha - Tracker Dev Team »

Hello RMan,

As Stefan mentioned previously, the fix for this will be implemented, though right now the developer who needs to implement it is focused on the new Ribbon interface, thus all of the fixes/improvements will have to wait as this is a top priority task.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

Was a fix for this ever implemented? It's still very annoying depending on what colors you pick for the UI interface.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Changing Frame Header Colors

Post by Sasha - Tracker Dev Team »

Hello RMan,

Just had a chat with one of our lead devs - he said that we will try to address this in the upcoming build.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

Unfortunately for our use the new build is even worse. Please, please tell me there is a theme.xml or a programming call we can use to set the color that we need.

We are trying to use a modified theme file to give users a true dark colored user interface to work with which is more modern looking. The new build now makes the Header text even darker. But even with the defaults and not using our Theme file if you use say a Windows High Contrast Purple Theme and your default settings the header text is harder to read than the main dialog text even though it is larger in size.

The Text color is picked to contrast the dialog window and background colors. The header text should match that color for a consistant UI. If anything you could make the header text bold but it should be the same color as the main text and for sure it should never be based off the Highlight or Selection colors.

The Highlight and Selection colors are picked to contrast your background of your PDF Files. Hence if you typically get in PDF files that have solid color backgrounds you might change those colors to an even ligher color to contrast the main colors you view in your PDF files. Changing that should not change the dialogs UI at all.

Here's the screen captures I'm seeing of the old, new, and then new with our dark UI theme. I'll email over the Resources.zip that contains the resources.dat file we have modified the theme.xml file we are trying to use since it's too large to attach.
newui.JPG
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

And here's a quick mock up of how I think it should look with the Header Text the same as the Dialog Text. To me it's much cleaner, more modern, and you shouldn't ever have a conflict in being able to cleanly read things.
newui_correct.JPG
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Changing Frame Header Colors

Post by Sasha - Tracker Dev Team »

Hello RMan,

From what I see from your screenshot (3 pics), the headers in your screenshot is way less readable then our new version.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

You are correct it is because we cannot control the header color and your calculations always provide a color for the group headers or for the message box text that appear to be optimized for the background being a lighter gray to look good on. They appear to be based on the Selection, Text, Face colors which is entirely wrong in some situations. It should simply be the Text color. It's the same for the main text in the dialog boxes as that is the same wrong color at times and harder to read.

We are trying to give our users a true dark theme, not a gray theme dialogs.

The main color controlling the header text should be the main Text. To me it should always be the same as the main text color. Todays UI design standards are about less colors, not more. The vast majority of programs and websites these days what separates a header from normal text is the size or a bold font, not the color anymore. Even your forumn here the header is the same color as the text, just bigger. The reason is that it works the best the vast majority of times that way.

If you do a Google search for Modern UI Design probably 90% of the images will have the header text as the same color as the main text. Same with most of the major websites like Yahoo, Microsoft, MSN, Twitter, Adobe. If it's not a link it's typically the same color, just larger.

Another example of wrong color usage in the UI is the checkmarks and radio buttons. You are using the sys:Highlight color which even with your standard theme it makes it very hard with someone using a Windows High Contrast theme to see the difference between a checked and unchecked box.
ui_checkmark.jpg
Make it the same color as the main text and you should never have a problem. That's what we do in the theme.xml file and it seams to work well across all color selections because if you can't see the checkmark you can't read thee text with the colors you have selected either.
<color id="ctl.checkmark" value="id:text"/>
<color id="ctl.checkmark.hot" value="id:text"/>

So please, please, please at least give us a way programatically or a setting in the theme.xml that we can override your calculations. That's all I've been asking for these last 16 months. For whatever reason the Group Header and Messagebox Header seams to be the only values we cannot override.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Changing Frame Header Colors

Post by Sasha - Tracker Dev Team »

Hello RMan,

I've forwarded this to the developer, who's in charge of the Editor's UI.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

Alex,

Can you please confirm if this ability has been added into the new release or not?
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Changing Frame Header Colors

Post by Vasyl-Tracker Dev Team »

Hi RMan.

With the new build you will able to specify in the theme.xml the:

<color id="header" value="id:text"/>

as result - your custom color will be used for Group.Title, MsgBox.header, Button.Header etc.

According to the checkmark-color - in the new build we will fix it as well.

Sorry for inconveniences.

Best Regards,
Vasyl.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

Thanks so much. That will be awesome and can't wait for the new release! :D
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Changing Frame Header Colors

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

Was this resolved in the April build then because I can't seam to get it to work by modifying the theme.xml file?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Changing Frame Header Colors

Post by Sasha - Tracker Dev Team »

Hello RMan,

I've notified Vasyl about this issue - we'll look into this one.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Changing Frame Header Colors

Post by Vasyl-Tracker Dev Team »

Hi RMan.

Sorry for delay with answer. Such feature was added in 8.0.330 build (you may check it here). To use it - just look for the Resources.dat file (it is a zip), go to the Resources.dat\Themes\Default\Theme.xml then start to edit it. In the section "<colors>" add new item like:

<color id="group.title" value="rgb(255,0,0,255)" />

- it is red color for example. Then save changes and repack the Resources.dat. The result:
image.png

Cheers.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

Thanks that works so much better!!

I set it to:
<color id="group.title" value="id:text" />

There's still a few more instances that it is using the Selection color and hence hard to read at times. By chance are there any options to control these in the Theme.xml file or a way to change the icons for them?

Checkbox
Radio Buttons
Page number in Header Titles
CheckboxAndRadioButtons.jpg
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

Also forgot depending on color combinations sometimes the Selection color blocks out text when you are selecting it in dialogs. Instead of the white text showing through the Selection it changes the text to a gray which you can't read then in these color combinations. In the Menu and Toolbar Font Size you can see that you can't read it.

The zip file has the settings I was using.
SelectionUnreadable.jpg
Attachments
PDFXChangeEditorSettings_SelectionUnreadable.zip
(35.24 KiB) Downloaded 114 times
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Changing Frame Header Colors

Post by Sasha - Tracker Dev Team »

Hello RMan,

Forwarded this one to Vasyl - hopefully he will have some time to address this.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Changing Frame Header Colors

Post by Vasyl-Tracker Dev Team »

Hi RMan.

Will try to fix all new problems in the new upcoming build.

Cheers.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

Vasyl,

Thanks so much for looking into this. I'll gladly test the new version when you have a beta ready if you want to see if anything else comes up. It would be really nice to finally be able to not have to play with colors to get things to work for dark colored themes.

One other thing I keep forgetting is the Bookmarks pane. To me since the Bookmarks themselves can have a color property to them there should be an option to always have the Bookmarks Pane white. You guys have given me a workaround to subclass the Pane and redraw it white but the problem is the bookmarks text will flip colors and highlight based on the color you think the pane is, not the color I redraw it as. So black bookmarks might become light gray with a dark window color in the theme or the highlight gets washed out.

viewtopic.php?f=66&t=28264&p=129249&hil ... ne#p129249

For all of these I used these theme colors and then varied the Window color:
Face: 85,85,85
Selection: 255,0,0
Highlight: 102,102,102
Text: 255,255,255
bookmarkcolors.JPG
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Changing Frame Header Colors

Post by Sasha - Tracker Dev Team »

Hello RMan,

The new release should be out for now - please try the new UI updates and see whether the problems that you have mentioned were fixed. If you come around some of them, write them here and I will notify Vasyl, so that he can look at those when he has time.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

Sorry I forgot to update that being able to set the Header Text helps greatly. Thanks so much.

The one thing I just noticed is that I can't figure out how to programatically add the "group.title" color value if it's not in the Resources.dat file since that file wasn't updated to include the base group.title value in the latest build.

My code does work fine if the color is first defined in the Resources.dat, but doesn't work if it's not defined.

I've tried in the CSharp FullDemo to add the following to the void ApplyCustomUI():

SetCustColor(clrArr, "group.title", clr2str(Color.Red));

But again it only works if I modify the Resources.dat file first.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Changing Frame Header Colors

Post by Sasha - Tracker Dev Team »

Hello RMan,

Forwarded this one to Vasyl - he will take a look when he has time.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Changing Frame Header Colors

Post by Vasyl-Tracker Dev Team »

Hi RMan,

Currently you may set this color only via Resources.dat. Also in the next build you will be able to change colors via

Code: Select all

uiInst.Theme.SetColor("group.title", CustColorRef);
uiInst.Theme.SetColor("<otherColorID>", CustColorRef);
...
uiInst.SendThemeChangedNotify();
Cheers.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

Thanks. Very much appreciated.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Changing Frame Header Colors

Post by Tracker Supp-Stefan »

:D
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Changing Frame Header Colors

Post by RMan »

In checking back on this I still cannot get the color of the checkboxes and radio buttons to change when they are selected. Was this never resolved or am I missing something?

If I change the selection color or the ctl.selection of the theme then it will change but that also changes the selection color of objects in the PDF file which isn't ideal. Again this is trying to make a dark theme work so you want a light color or white for the checkboxes to match the text in the dialog. But then that color does not stand out when selecting object or annotations on the PDF page which is mostly white.
Checkboxes.jpg
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Changing Frame Header Colors

Post by Sasha - Tracker Dev Team »

Hello RMan,

Forwarded this to the responsible developer. Hopefully he can tell more.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Changing Frame Header Colors

Post by Vasyl-Tracker Dev Team »

Hi RMan.

At the moment the color of check/radio-mark is calculated in the following way:

1. calculate new color that is a mix of ctl.selection and text-color
2. ensure that new color has enough contrast with the window-color(ctl.bg, white by default)

problem is that currently the ctl.checkmark color isn't taken in that calculation and you cannot use it to tune check/radio-mark colors only, without changing the ctl.selection/text-colors. In the next build we will use the ctl.checkmark again in our color-calculations and you will have an easy workaround...

Cheers.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Post Reply