mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
text,widget/material: Update doc for Shaper & Theme
Note that you should use different Themes, with different Shapers, for different top-level windows, and explain why. Signed-off-by: Larry Clapp <larry@theclapp.org>
This commit is contained in:
@@ -32,6 +32,9 @@ type Palette struct {
|
||||
ContrastFg color.NRGBA
|
||||
}
|
||||
|
||||
// Theme holds the general theme of an app or window. Different top-level
|
||||
// windows should have different instances of Theme (with different Shapers;
|
||||
// see the godoc for [text.Shaper]), though their other fields can be equal.
|
||||
type Theme struct {
|
||||
Shaper *text.Shaper
|
||||
Palette
|
||||
|
||||
Reference in New Issue
Block a user