Gtk.Style

const Gtk = imports.gi.Gtk;

let style = new Gtk.Style({
    context: value,
});
  

A Gtk.Style object encapsulates the information that provides the look and feel for a widget.

<warning> In GTK+ 3.0, GtkStyle has been deprecated and replaced by Gtk.StyleContext. </warning>

Each Gtk.Widget has an associated Gtk.Style object that is used when rendering that widget. Also, a Gtk.Style holds information for the five possible widget states though not every widget supports all five states; see Gtk.StateType.

Usually the Gtk.Style for a widget is the same as the default style that is set by GTK+ and modified the theme engine.

Usually applications should not need to use or modify the Gtk.Style of their widgets.

Hierarchy

  • GObject.Object
    • Gtk.Style