I have a tableview to whose CSS Extra property I have added the following statements:
I have these other styles, which have to be added with a stylesheet:
The combination works, but I want to consolidate all the statements into the stylesheet. So far I have not found the correct stylesheet statements for the ones in the CSS Extra property. I have tried every combination I can think of (except, apparently, the correct ones) such as these:
and
so far with no success.
Can anyone please show me how to do this?
B4X:
-fx-selection-bar: #84A082;
-fx-selection-bar-non-focused: #84A082;
I have these other styles, which have to be added with a stylesheet:
B4X:
/* Selected row without hover (Darker Green #84A082.)*/
.table-view:focused .table-row-cell:filled:focused:selected {
-fx-background-color: #84A082;
}
/* Selected Row hovered (Darker Green #84A082.)*/
.table-view:row-selection .table-row-cell:filled:selected:hover {
-fx-background-color: #84A082;
}
/* Row hovered (Lighter Green #ACC2AB.)*/
.table-view:row-selection .table-row-cell:filled:hover {
-fx-background-color: #ACC2AB;
}
B4X:
.table-view:selection-bar {
-fx-background-color: #84A082;
}
.table-view:non-focused:selection-bar {
-fx-background-color: #84A082;
}
B4X:
.table-view-selection-bar {
-fx-background-color: #84A082;
}
.table-view:non-focused-selection-bar {
-fx-background-color: #84A082;
}
Can anyone please show me how to do this?