Outline with gtk-3 (version 3.22.30)

  • Iam using gtk version3.22.30.

  • this is my CSS style sheet

  • #gtkFrame border{
    background-color:#CDAF95;
    border-style: solid;
    border-width:1px;
    outline-width:1px ;
    outline-style:dashed;
    outline-color:red;
    outline-offset:5px;
    border-color: black;
    padding-top:1px;
    padding-bottom:1px;
    padding-right:175px;
    padding-left:0px;
    }
    border, background etc. works. I don’t see outline. Changing offset does not help. Any suggestions?

  • i tried in gtk-inspector, values are read correctly.

The outline is only shown for focusable widgets, like entries or buttons. A frame isn’t focusable so you won’t see it.

Thank you. That solved my confusion.
Is there a way to double border then, with two different colors?
Thanks,
Lalitha V.

You can use a box shadow (you can create multiple shadows with Générateur de box-shadow - CSS : Feuilles de style en cascade | MDN) and set its blur to none. Or alternatively have a dummy outer container that you style with the second border color.