In my C++ application, I am attempting to create a rounded button by utilizing an external CSS file.
Although I have successfully achieved a round button, there is still a pesky rectangular border that remains and I am struggling to figure out how to remove it.
Here is the content of the CSS file in question :
GtkButton {
-GtkWidget-focus-line-width: 1px;
border-width: 1px;
border-radius: 30px;
background-image: -gtk-gradient (linear,
left top,
left bottom,
from (@win_bg),
color-stop (0.5, @win_dark),
to (@win_bg));
}
NOTE : I have omitted the color definitions for brevity.