change the bordercolor of a button

0
0

is it possible to change the border color of a button in the Hover and Pressed event using Themes?
Grazie

  • You must to post comments
0
0

It works!
I was referring to the internal “button / icon”
Thanks!

  • You must to post comments
0
0

That’s not what I get and “button” refers to the button not the inner “button/icon”. Can you attach a small sample?

  • You must to post comments
0
0

Thanks but so it colors the border of the image, not the button.

Attachment
  • You must to post comments
0
0

Yes, you can change the border under the “hovered” state or under the “pressed” state in a theme mixin or in a custom theme:

{
 "appearances": {
  "button": {
   "inherit": "button",
    "states": {
     "hovered": {
      "styles": {
      "color": "green",
      "width": 2
     }
    },
    "pressed": {
     "styles": {
      "color": "blue",
      "width": 4
    }
   }
  }
 }
}
}

 

  • messere messere75
    Thanks but so it colors the border of the image, not the button.
  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.