gtksource.style_scheme
Module for StyleScheme class
Types 3
Controls the appearance of gtksource.view.View.
#GtkSourceStyleScheme contains all the text styles to be used in gtksource.view.View and gtksource.buffer.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).
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 [gtksource.style_scheme_manager.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)Fluent builder implementation template for gtksource.style_scheme.StyleScheme
T id(string propval)Set `id` property. Params: propval = Style scheme id, a unique string used to identify the style scheme in [gtksource.style_scheme_manager.StyleSchemeManager]. Returns: Builder instance for fluent ...Fluent builder for gtksource.style_scheme.StyleScheme
StyleScheme build()Create object from builder. Returns: New object