TPanel has the wrong color when using clDefault.
Original Reporter info from Mantis: hrittich
-
Reporter name: Hannah Rittich
Original Reporter info from Mantis: hrittich
- Reporter name: Hannah Rittich
Description:
TPanels are often used to structure the GUI. Hence, it is usually assumed that the background color of the panel is the same as the background color of the form that owns the panel. However, when both, the panel and the form, are assigned the color clDefault, then the two colors are not the same.
In this case, the panel is assigned the color clBtnFace and the form is assigned clForm. When using a theme where these colors differ, many GUIs look odd.
Steps to reproduce:
Choose a theme with different colors for clBtnFace and clForm. For example use the GTK+ theme Numix. Create a Form that contains a Panel and set the background color for both components to clDefault.
Additional information:
I have included a patch that corrects this behavior.
Mantis conversion info:
- Mantis ID: 32779
- OS: Debian GNU/Linux
- OS Build: 9
- Build: SVN
- Platform: GTK+
- Fixed in version: 1.9 (SVN)
- Fixed in revision: 56684 (#8a97fb67)