Reputation: 1954
Is there a way to render a color picker without the "Custom colors" option?
Or is there a way to disable the "Custom Color" option from the color picker?
Regards
Upvotes: 3
Views: 1715
Reputation: 470
To get rid of the hyperlink together with the separator and the excess space that remains when just removing those two:
.color-palette .hyperlink, .color-palette .separator {
visibility: hidden;
}
.color-palette {
-fx-padding: 15 15 -30 15;
}
! Note that the style needs to be added to the scene Object to take effect.
Upvotes: 1
Reputation: 11
Since i was also searching for a simple solution. If you want to use the default color picker you can use this style class:
.color-palette > .hyperlink {
visibility: hidden ;
}
Upvotes: -1
Reputation: 2026
Stumbled on this but haven't tried it, maybe the customizable color picker you're looking for?
Upvotes: 2