è possibile impostare css anche per le sezioni dell'oggetto in questione?
is it possible to set css also for the sections of the object in question?
Error code
is it possible to set css also for the sections of the object in question?
B4X:
Sub css_button(obj As Button)
CSSUtils.SetStyleProperty (obj,"-fx-base"," #222222")
CSSUtils.SetStyleProperty (obj,"-fx-control-inner-background","#222222")
CSSUtils.SetStyleProperty (obj,"-fx-background-color","#222222")
CSSUtils.SetStyleProperty (obj,"-fx-table-cell-border-color"," transparent")
CSSUtils.SetStyleProperty (obj,"-fx-table-header-border-color"," transparent")
CSSUtils.SetStyleProperty (obj,"-fx-padding","5")
CSSUtils.SetStyleProperty (obj,"-fx-font-size","10pt")
CSSUtils.SetStyleProperty (obj,"-fx-text-fill","#7D7D7D")
CSSUtils.SetStyleProperty (obj,"-fx-border-width","0")
CSSUtils.SetStyleProperty (obj,"-fx-background-radius","0")
CSSUtils.SetStyleProperty (obj,"-fx-background-insets","0 0 0 0, 0, 1, 2")
End Sub
Error code
B4X:
CSSUtils.SetStyleProperty (obj,".button:hover:-fx-background-color"," #3a3a3a")
CSSUtils.SetStyleProperty (obj,".button:pressed, .button:default: hover:pressed -fx-background-color: white;-fx-text-fill"," #1d1d1d")