@@ -5,8 +5,9 @@ parent: API Reference
55nav_order : 6
66---
77
8- ### Display Settings
8+ # Display Settings
99{: .no_toc .text-delta }
10+ ---
1011
1112## Table of contents
1213{: .no_toc .text-delta }
@@ -29,7 +30,7 @@ Set the canvas width and recreate the raster surface.
2930
3031---
3132
32- ### set_canvas_height
33+ # set_canvas_height
3334` set_canvas_height(height) `
3435
3536Set the canvas height and recreate the raster surface.
@@ -42,7 +43,7 @@ Set the canvas height and recreate the raster surface.
4243
4344---
4445
45- ### set_canvas_size
46+ # set_canvas_size
4647` set_canvas_size(width, height) `
4748
4849Set both canvas width and height and recreate the raster surface.
@@ -56,7 +57,7 @@ Set both canvas width and height and recreate the raster surface.
5657
5758---
5859
59- ### set_theme
60+ # set_theme
6061` set_theme(theme_name) `
6162
6263Set a predefined visualisation theme.
@@ -75,7 +76,7 @@ gw.set_theme("dark")
7576
7677---
7778
78- ### set_paint_ARBG
79+ # set_paint_ARBG
7980` set_paint_ARBG(paint_enum, a, r, g, b) `
8081
8182Set the ARGB color for a specific paint type.
@@ -95,7 +96,7 @@ gw.set_paint_ARBG(GwPalette.NORMAL_READ, 255, 0, 0, 128)
9596
9697---
9798
98- ### apply_theme
99+ # apply_theme
99100` apply_theme(theme_dict) `
100101
101102Apply a custom theme using a dictionary of paint types and colors.
@@ -118,7 +119,7 @@ gw.apply_theme(custom_theme)
118119
119120---
120121
121- ### load_theme_from_json
122+ # load_theme_from_json
122123` load_theme_from_json(filepath) `
123124
124125Load and apply a theme from a JSON file.
@@ -136,7 +137,7 @@ gw.load_theme_from_json("custom_theme.json")
136137
137138---
138139
139- ### save_theme_to_json
140+ # save_theme_to_json
140141` save_theme_to_json(filepath) `
141142
142143Save the current theme settings to a JSON file.
@@ -155,7 +156,7 @@ gw.save_theme_to_json("my_theme.json")
155156
156157---
157158
158- ### set_font_size
159+ # set_font_size
159160` set_font_size(size) `
160161
161162Set the font size.
0 commit comments