Summary: | [StyledText] Cannot set margin color in dark theme | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Jarvis Yu <jarvis_jiaqi> | ||||||
Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||||
Status: | NEW --- | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | rolf.theunissen | ||||||
Version: | 4.24 | ||||||||
Target Milestone: | --- | ||||||||
Hardware: | PC | ||||||||
OS: | Windows 10 | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Jarvis Yu
2022-04-01 01:39:53 EDT
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() ; |