Community
Participate
Working Groups
Created attachment 282691 [details] Screenshot If I hover over a tree entry which is longer than the available space I get a hover after a while which is white. Screenshot attached. Can this be fixed in SWT? I don't think it is related to our custom drawing in platform which we will soon disable / remove via Bug 562781.
Created attachment 282693 [details] Screenhot for snippet > Can this be fixed in SWT? Apparently. It's a bit had to say what Eclipse is doing wrong, can you investigate? Screenshot is obtained with this simple snippet: ---------------- OS.setTheme (true); Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final Color backColor = new Color(display, 0x28, 0x28, 0x28); final Color foreColor = new Color(display, 0xD0, 0xD0, 0xD0); // Tree { Tree tree = new Tree(shell, 0); final String itemText = "Item with very very very long text"; for (int i = 0; i < 10; i++) { TreeItem item = new TreeItem(tree, 0); item.setText(itemText); for (int j = 0; j < 10; j++) { TreeItem item2 = new TreeItem(item, 0); item2.setText(itemText); } } tree.setBackground(backColor); tree.setForeground(foreColor); } shell.setSize(200, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); ---------------- The first thing I would look into is 'tree.setBackground()'
Thanks Alexandr, I will first fix Bug 562781 and afterwards try to analyse what we are doing wrong. Btw. are you using the Eclipse IDE for your SWT development?
No, I'm using Intellij IDEA.
(In reply to Alexandr Miloslavskiy from comment #3) > No, I'm using Intellij IDEA. Sorry, to hear, I'm sure Eclipse IDE dark theme would hugely improve if you would be using it for a while..... :-) Thanks again for your help.
I doubt my boss will say "please put our product problems aside and solve coloring issues in Eclipse" :)
Adding Mike, as he may have seen and solved this in his Eclipse based IDE.
(In reply to Lars Vogel from comment #6) > Adding Mike, as he may have seen and solved this in his Eclipse based IDE. Unfortunately this is still an outstanding issue in our IDE's dark theme as well.
Created attachment 282795 [details] Screencast Which method is called on the mouse hover so that I can debug this?
*** This bug has been marked as a duplicate of bug 567616 ***