Since my eyes get fatigued fast with a normal color scheme, I set up a custom dark background / light text color scheme. The problem is, that the custom text color is applied to some text in the dialogs and since they use the OS default background color (light gray), the text is now pretty much invisible.
Added screenshot showing the bug.
In which dialogs is the custom colour used?
Didier
About, Display Font, File Filters, Segmentation, Editing Behaviour, Tag Validation, Team, External TMX, Saving and Output, Proxy Login, Project Properties. So, basically everywhere, but it's only used for some dialog elements, mainly what would be a STATIC element in Win32 dialogs, don't know how it's named in Java.
[adding comments from #761 and closing there]
JC:
A number of dialogs inherit from the default colors where they are not expected to:
(Text color) Labels:
Properties/Project Files/Statistics/Font/File Filters (& Edit)/Segmentation/Editing Behavior/Tag Processing/Saving and Output/Proxy Login/About/Conflict resolution
(Background/Text, etc.) Text area:
Search/Search-Replace/Validate tags/Scripting/External TMX/User's manual/Last Changes/Log
Aaron:
The problem is that COLOR_BACKGROUND ("Background") and COLOR_FOREGROUND ("Text") are applied globally via the UIManager instead of just on the specific components we want:
/* Apply Look and Feel modifications during inital setup and color modifications. / public static void setupLAF() { Color backgroundColor = Styles.EditorColor.COLOR_BACKGROUND.getColor(); Color foregroundColor = Styles.EditorColor.COLOR_FOREGROUND.getColor(); UIManager.put("TextPane.background", backgroundColor); UIManager.put("TextPane.foreground", foregroundColor); UIManager.put("TextPane.caretForeground", foregroundColor); UIManager.put("TextArea.background", backgroundColor); UIManager.put("TextArea.foreground", foregroundColor); UIManager.put("TextArea.caretForeground", foregroundColor); UIManager.put("EditorPane.background", backgroundColor); UIManager.put("EditorPane.foreground", foregroundColor); UIManager.put("EditorPane.caretForeground", foregroundColor); }
TextAreas and TextPanes are used throughout the UI in places where this color manipulation is not desirable.
I should have added that the code snippet is from
org.omegat.util.gui.Styles
.I guess that there is no trivial way to fix that ?
Fixed in r8026.
Closed in the released version 3.6.0 of OmegaT.
Didier