mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
doc: Add documentation for Gtk.Label attributes
This commit is contained in:
parent
12c1c7b8d6
commit
82980a466b
1 changed files with 23 additions and 0 deletions
|
@ -418,3 +418,26 @@ Gtk.Dialog and Gtk.InfoBar
|
|||
[action response=9]
|
||||
Gtk.Button app_defined_response {}
|
||||
}
|
||||
|
||||
Gtk.Label
|
||||
~~~~~~~~~
|
||||
|
||||
Blueprint does not have syntax for `attributes` on `Gtk.Label`.
|
||||
|
||||
Instead, you should use `platform classes <https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/style-classes.html>`_, `CSS <https://docs.gtk.org/gtk4/css-properties.html>`_, `Pango Markup <https://docs.gtk.org/Pango/pango_markup.html>`_ or `Gtk.Label.set_attributes <https://docs.gtk.org/gtk4/method.Label.set_attributes.html>`_.
|
||||
|
||||
Examples
|
||||
|
||||
.. code-block::
|
||||
|
||||
Gtk.Label {
|
||||
label: "Hello, World!";
|
||||
styles ["title-1"]
|
||||
}
|
||||
|
||||
.. code-block::
|
||||
|
||||
Gtk.Label {
|
||||
label: "<b>Hello, World!</b>";
|
||||
use-markup: true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue