gtksource.style_scheme
Module for [StyleScheme] class
Types 3
Controls the appearance of class@View.
#GtkSourceStyleScheme contains all the text styles to be used in class@View and class@Buffer. For instance, it contains text styles for syntax highlighting, it may contain foreground and background color for non-highlighted text, color for the line numbers, current line highlighting, bracket matching, etc.
Style schemes are stored in XML files. The format of a scheme file is documented in the style scheme reference.
The two style schemes with IDs "classic" and "tango" follow more closely the GTK theme (for example for the background color).
Methods
StyleScheme self()Returns `this`, for use in `with` statements.StyleSchemeGidBuilder builder()Get builder for [gtksource.style_scheme.StyleScheme] Returns: New builder objectstring description() @propertyGet `description` property. Returns: Style scheme description, a translatable string to present to the user.string id() @propertyGet `id` property. Returns: Style scheme id, a unique string used to identify the style scheme in `class@StyleSchemeManager`.string name() @propertyGet `name` property. Returns: Style scheme name, a translatable string to present to the user.string[] getAuthors()string getDescription()string getFilename()string getId()string getMetadata(string name)Gets a metadata property from the style scheme.string getName()gtksource.style.Style getStyle(string styleId)Methods
T id(string propval)Set `id` property. Params: propval = Style scheme id, a unique string used to identify the style scheme in `class@StyleSchemeManager`. Returns: Builder instance for fluent chainingFluent builder for [gtksource.style_scheme.StyleScheme]
Methods