ControlsFX: CheckComboBox Popup Styling

倾然丶 夕夏残阳落幕 提交于 2020-01-23 12:15:09

问题


I am trying to style the actual popup menu (not the cells, because I believe I can style those).

I have tried using the ".combo-box-popup" selector and the ".combo-box-popup .list-view" selector to no avail.

I believe this is because the CheckComboBox delegates to an internal ComboBox and so the usual styling doesn't work, but I may be wrong.

I have even tried (after searching through the code) to get "at" the popup itself but couldn't figure out a way to do this.

I am only able to style the gray button cell by calling "setStyle()" on the internal ComboBox within my derived skin class (I copied all the needed code from CheckComboBoxSkin to make a derived CheckColorComboBoxSkin class) which is nearly identical to the parent class except for creating list cell factories which allow me to return a special ListCell for including other things than just the check box and description.

Those things are not "in the way" however and are not relevant except to explain how I am able to call setStyle() directly on the internal delegate ComboBox to style the box itself (not the popup).

My problem however is trying to find a way to style the popup, is there a way to do this?

Thanks, David

来源:https://stackoverflow.com/questions/35929063/controlsfx-checkcombobox-popup-styling

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!