Community
Participate
Working Groups
Why can not set some controls background in drak theme?
Can you be more specific? What is exactly not working? Maybe add a screenshot of the problem?
Created attachment 288360 [details] in light theme
Created attachment 288361 [details] in dark theme
(In reply to Rolf Theunissen from comment #1) > Can you be more specific? What is exactly not working? Maybe add a > screenshot of the problem? The same code : Shell shell = new Shell( SWT.DIALOG_TRIM | SWT.RESIZE ) ; shell.setLayout( new FillLayout() ) ; shell.setSize( 500, 500 ) ; Composite composite = new Composite( shell, SWT.NONE ) ; composite.setLayout( new FillLayout() ) ; StyledText styledText = new StyledText( composite, SWT.NONE ) ; styledText.setText( "ABC 123 ABC 123 ABC 123 ABC 123" ) ; styledText.setMargins( 50, 50, 50, 50 ) ; styledText.setMarginColor( new Color( 255, 0, 0 ) ) ; shell.open() ;
(In reply to Rolf Theunissen from comment #1) > Can you be more specific? What is exactly not working? Maybe add a > screenshot of the problem? If I don't use Composite here, it works. Code : Shell shell = new Shell( SWT.DIALOG_TRIM | SWT.RESIZE ) ; shell.setLayout( new FillLayout() ) ; shell.setSize( 500, 500 ) ; // Composite composite = new Composite( shell, SWT.NONE ) ; // composite.setLayout( new FillLayout() ) ; StyledText styledText = new StyledText( shell, SWT.NONE ) ; styledText.setText( "ABC 123 ABC 123 ABC 123 ABC 123" ) ; styledText.setMargins( 50, 50, 50, 50 ) ; styledText.setMarginColor( new Color( 255, 0, 0 ) ) ; shell.open() ;