| Summary: | [JFace InputDialog] In InputDialog the text field in which the error messages are shown cannot be themed | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Matthias Boehm <Matthias.Boehm> | ||||
| Component: | JFace | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | Matthias.Boehm | ||||
| Version: | 3.2 | ||||||
| Target Milestone: | 3.5 M2 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| See Also: |
https://git.eclipse.org/r/118238 https://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=1558af76027df9c38e6bf8b542caaa8c85000c9c |
||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Hi again, could you at least remove the explicit setting of the background color of the error message field? That would help a lot, because then, the error message field would get the background color of our custom theme. New Gerrit change created: https://git.eclipse.org/r/118238 Gerrit change https://git.eclipse.org/r/118238 was merged to [master]. Commit: http://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=1558af76027df9c38e6bf8b542caaa8c85000c9c |
Created attachment 271408 [details] Sample application and two images The text field in the InputDialog where the error messages are shown always has a white background. But this doesn't fit to the theme we use; we want to have a blue background, and red bold font (see appended images). Unfortunately, there is no getter method in InputDialog with which we could retrieve the text box for applying a custom theme (by textField.setData(RWT.CUSTOM_VARIANT, "ErrorMessageTextField")). Could you provide such a getter method? Appended is a sample application with a simple InputDialog and a simple theme with blue backgrounds. The text field with the error message has a white background instead of a blue. I saw that the code in InputDialog explicitely sets the background of the text field to white; this code probably must be removed, so that the custom theme isn't overwritten. If this code is removed and no custom theme is applied, the standard theme for text fields is used, and that is often already enough.