Corner#

class ignis.widgets.Corner(*args: Any, **kwargs: Any)#

Bases: Gtk.DrawingArea

A corner widget that renders rounded corners. Useful in bars and panels.

Parameters:

**kwargs -- Properties to set.

from ignis import widgets

widgets.Corner(
    orientation="top-left",
    # It's mandatory to explicitly set the width and the height
    # Otherwise, the widget will be invisible
    # Alternativly, you can set them in CSS using `min-width` and `min-height` properties
    width_request=30,
    height_request=30,
)
gproperty orientation: Literal['top-left', 'top-right', 'bottom-left', 'bottom-right']#
  • read-write

The corner orientation.

Orientation:
  • top-left

  • top-right

  • bottom-left

  • bottom-right

Default: top-left