mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
Add destructive/suggested action classes
This commit is contained in:
@ -176,6 +176,9 @@ const ButtonsView = struct {
|
|||||||
const confirm_button = c.gtk_button_new_with_label(confirm_text);
|
const confirm_button = c.gtk_button_new_with_label(confirm_text);
|
||||||
errdefer c.g_object_unref(confirm_button);
|
errdefer c.g_object_unref(confirm_button);
|
||||||
|
|
||||||
|
c.gtk_widget_add_css_class(confirm_button, "destructive-action");
|
||||||
|
c.gtk_widget_add_css_class(cancel_button, "suggested-action");
|
||||||
|
|
||||||
// Create our view
|
// Create our view
|
||||||
const view = try View.init(&.{
|
const view = try View.init(&.{
|
||||||
.{ .name = "cancel", .widget = cancel_button },
|
.{ .name = "cancel", .widget = cancel_button },
|
||||||
|
Reference in New Issue
Block a user