apprt/gtk: style the overlay

This commit is contained in:
Mitchell Hashimoto
2024-07-06 15:09:59 -07:00
parent 8858c2ba4e
commit ecdb0a74b0
2 changed files with 5 additions and 0 deletions

View File

@ -917,6 +917,8 @@ pub fn mouseOverLink(self: *Surface, uri_: ?[]const u8) void {
// Create the widget
const label = c.gtk_label_new(uriZ.ptr);
c.gtk_widget_add_css_class(@ptrCast(label), "view");
c.gtk_widget_add_css_class(@ptrCast(label), "url-overlay");
c.gtk_widget_set_halign(label, c.GTK_ALIGN_START);
c.gtk_widget_set_valign(label, c.GTK_ALIGN_END);
c.gtk_widget_set_margin_bottom(label, 2);

View File

@ -0,0 +1,3 @@
label.url-overlay {
padding: 2px;
}