Skip to content

Commit 52becb5

Browse files
committed
port: Label
1 parent f9bf57b commit 52becb5

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/Label/main.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
const label = workbench.builder.get_object("label");
2-
const justification_row = workbench.builder.get_object("justification_row");
3-
const style_row = workbench.builder.get_object("style_row");
4-
const single_line_switch = workbench.builder.get_object("single_line_switch");
1+
import Adw from "gi://Adw";
2+
import Gtk from "gi://Gtk?version=4.0";
3+
4+
const label = workbench.builder.get_object<Gtk.Label>("label");
5+
const justification_row = workbench.builder.get_object<Adw.ComboRow>(
6+
"justification_row",
7+
);
8+
const style_row = workbench.builder.get_object<Adw.ComboRow>("style_row");
9+
const single_line_switch = workbench.builder.get_object<Adw.SwitchRow>(
10+
"single_line_switch",
11+
);
512

613
const style_classes = [
714
"none",

0 commit comments

Comments
 (0)