I am writing an own swt widget.
Now I am ready with the functionality an trying to style the widget.
What is the default strategy to get the actual colors/styles, which are currently chosen by the OS?
How can I mimic the OS Style in my own widget?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can access all the predefined colors of SWT using the following:
Of course this holds for all the colors defined as
SWT.COLOR_*.The OS’s default list background color can be accessed via:
As for the mimic question:
As long as you don’t extend one of the default widgets, this will be quite hard to achieve. Please add some more detail to your question.