Community
Participate
Working Groups
When the toolbar is wrapped and it is changed, the background of the toolbar has the incorrect color. It has the color of the unwrapped toolbar instead of the wrapped toolbar. To reproduce: 1. Open the search view, do a search 2. Ensure that the toolbar is wrapped, by changing the views width 3. Change the toolbar: View menu > Show as List The background is becomes correct when the view is resized, or when the window is (de)activated. It can also be reproduced with the Mock Views.
Search view toolbar does not wrap for me anymore. Does is still wrap for you? Not sure if that is a regression or an intended fix.
Rolf, please reopen if you still see this issue.
Created attachment 283135 [details] Screenshot of the problem I still see the issue in I20200602-1800
I still see the issue in I20200602-1800
Mike, please have a look
Rolf, do you see the same issue in Dark theme?
In the dark theme the issue shows not when changing the toolbar. However, it does show when resizing the search view when the toolbar is wrapped. It disappears again when the view gains or loses focus.
I spent some time investigating this but so far I have come up with nothing.
BTW: this is an old problem predating 2019. I first ran into this on OS X in 2016 when I gave the EGit history view a search field in the toolbar. I spent quite some time back then investigating this but had been unable to figure out what caused it. In EGit we have some rather gruesome hacks that appear to work around this most of the time. Basically, whenever the search textbox in the toolbar becomes visible (which may cause the toolbar to be wrapped) it focuses first the view's main control and then its own widget. This appears to fix the wrong background most of the time.
*** Bug 569022 has been marked as a duplicate of this bug. ***
*** Bug 571296 has been marked as a duplicate of this bug. ***
Not sure if that helps but a while ago I ported the layout spy to PDE, which allows to assign random colors to UI elements to better identify them and shows additional infos on hover. To trigger: Ctrl+3 -> Layout spy -> Color controls
Seems that this is yet another scenario that is left over from Bug 539661 Comment 36 and further. Given the history of that bug, Bug 565754 could have the same root cause as this one.