What you are showing are panes, not windows. I have corrected the title accordingly. I do not reproduce the issue. Does it still happen if you use Options > Restore Main Window?
Didier
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I also use Windows 7. At home I checked the application on Windows XP. It's the same. So, behaviour is the same for both OSs. That's why I suppose the issue is about LaF.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
With the Windows Classic theme, I tried to force the Nimbus look and feel with -Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel, but it didn't solve the issue.
Didier
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you.
However, Yu Tang is working on something more complex, which will only change the title if the colour is the same for the foreground and the background.
Didier
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The colours will only be changed if the background and foreground colour are the same. If that happens, the text colour is made brighter or darker for readability.
Didier
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What you are showing are panes, not windows. I have corrected the title accordingly. I do not reproduce the issue. Does it still happen if you use Options > Restore Main Window?
Didier
Even restarting OmegaT and using the Restore Main Window function doesn't change anything. Only the focussed pane shows the headline.
On the same machine, OmegaT 2.6.3_6 does not show this behavior.
It seams it's due to migration onto vldocking-3.0.4. This issue is about Laf. If you set for instance Nimbus as application's Laf the text is be OK.
Does your comment apply to Windows? (The OP wrote the issue was under Windows 7.)
Didier
Possibly (thanks Sergei).
I see in your screenshots that you are not using Windows 7 "standard" look and feel. Does the issue happen if you do?
Didier
I also use Windows 7. At home I checked the application on Windows XP. It's the same. So, behaviour is the same for both OSs. That's why I suppose the issue is about LaF.
To the original poster: what version of Java are you using?
Didier
With the Windows Classic theme, I tried to force the Nimbus look and feel with -Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel, but it didn't solve the issue.
Didier
You can try to set it manually in org.omegat.Main by replacing
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName())
with
UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
P.S. Did you try to set Nimbus by adding
-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel
as a program argument? I'm asking because in IDEA it works.
Last edit: Sergei Tsypanov 2014-07-30
It works, but the result is not the normal look of OmegaT.
That's what I wrote: it doesn't work, either on the command line or in OmegaT.l4J.ini.
Didier
JRE 1.7.0_45-b18
I have reproduced this issue.
I changed my Win7 desktop theme to Windows Classic.
http://windows.microsoft.com/en-US/windows-vista/change-windows-to-classic-view
... And OmegaT 3.1.0 does not have this issue.
JRE 1.7.0_51
Thanks, I can reproduce the issue with the Windows Classic theme. I have updated the title accordingly. I don't see any exception in the log.
Didier
Here is the patch for org.omegat.util.gui.DockingUI.ava
It sets title foreground color and makes it visible.
Thank you but, in that patch, you are hard-coding the window colours.
That's not an acceptable solution.
Didier
This line fixes the issue without hardcoding.
UIManager.put("InternalFrame.inactiveTitleForeground", UIManager.getLookAndFeelDefaults().get("windowText"));
01.08.2014, 16:57, "Didier Briel" didierbr@users.sf.net:
Related
Bugs:
#697Thank you.
However, Yu Tang is working on something more complex, which will only change the title if the colour is the same for the foreground and the background.
Didier
Fixed in SVN (/trunk).
The colours will only be changed if the background and foreground colour are the same. If that happens, the text colour is made brighter or darker for readability.
Didier