Styling AutoComplete Popup in Combobox

50 views
Skip to first unread message

GGK

unread,
Nov 15, 2018, 1:42:02 PM11/15/18
to ControlsFX
Hi,

I wanna style a autoclompetion within a combobox. Is there a way to style the popup using css?

I have tried many variants, but unfortunately unsuccessful

.text-fields .auto-complete-popup {
   
-fx-border-color: rgb(243,146,0);
   
-fx-border-width: 5;
   
}

GGK

GGK

unread,
Nov 16, 2018, 4:27:23 AM11/16/18
to ControlsFX
Solution found and work for setting font color. Setting background color doesn't work:

.auto-complete-popup > .list-view > .virtual-flow > .clipped-container > .sheet > .list-cell:filled:hover,
.
auto-complete-popup > .list-view > .virtual-flow > .clipped-container > .sheet > .list-cell:filled:focused,
.auto-complete-popup > .list-view > .virtual-flow > .clipped-container > .sheet > .list-cell:filled:selected,
{
   
-fx-background-color: #0078ce;
   
-fx-text-fill: white;
}



Reply all
Reply to author
Forward
0 new messages