mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
apprt/gtk: style the overlay
This commit is contained in:
@ -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);
|
||||
|
@ -0,0 +1,3 @@
|
||||
label.url-overlay {
|
||||
padding: 2px;
|
||||
}
|
Reference in New Issue
Block a user