Community
Participate
Working Groups
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/169689
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/169689 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=33a9345fb213b7fcc011af811a4b542c011bb03f
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/182657
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/182657 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=b382326cc98dc98711da33acc9d9d124c67b0dff
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/182765
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/182765 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=6273eff17425d8b2d07d77e4f389c43d35b3450f
Reopening this bug as CSS is not working correctly in Combo widgets. They are in a better state, but not completely correct yet.
After this patch (https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/176058) the Combo CSS almost works correctly however, the drop down menu has no CSS applied to it. The reason for this is that the menuHandle which is used to set its CSS values is not populated. The logic responsible for setting the menuHandle depends on a GTK3 function, this didn't cause any crashes since it first checks for popupHandle, which again is not set in GTK4 as the logic to set it is guarded from GTK4. TL;DR: Problem is two fold. 1) Popup handle is not set as the hierarchy for Combo is different from GTK3 to GTK4 (window in GTK3 & popover in GTK4) 2) Due to 1, menuHandle is not populated since the logic checks for popupHandle != 0, thus CSS is never applied to the drop down in a Combo.
With menuHandle now not zero, the drop down background is correct. However, it appears that the CSS node "-gtk-secondary-caret-color" is different than in GTK3, which results in an incorrect color when an item is hovered.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/188489
While the secondary caret color is different, the main issue is that the default GTK4 theme chooses the color when an item is hovered. The default GTK3 theme on my Fedora 35 install defaults to blue when highlighted, while in GTK4 it is an off white color. So for now, a patch can be uploaded as the theme is GTK related, and not an SWT issue. One outstanding issue is that popupHandle is not mapped. This is not straightforward to fix due to popupHandle being used for more than just setting CSS properties. It is used to add items and other miscellaneous things, so it will have to be revisited later.
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/188489 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=d416b3002f7876ab60ca02b83632406a36760e9f