Skip to content

Commit

Permalink
MainWindow: Update About dialog to use latest GNOME style
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidyjames committed Apr 22, 2024
1 parent 936bd9d commit 51647a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ public class Plausible.MainWindow : Adw.ApplicationWindow {
icon_name: APP_ID,
resizable: true,
title: App.NAME,
width_request: 300
width_request: 360
);
add_action_entries (ACTION_ENTRIES, this);
}

construct {
var sites_button = new Gtk.Button.with_label ("_Sites") {
var sites_button = new Gtk.Button.with_label ("Sites") {
valign = Gtk.Align.CENTER
};
sites_button.add_css_class ("back-button");
Expand Down Expand Up @@ -280,8 +280,8 @@ public class Plausible.MainWindow : Adw.ApplicationWindow {
}

private void on_about_activate () {
var about_window = new Adw.AboutWindow () {
transient_for = this,
var about_window = new Adw.AboutDialog () {
// transient_for = this,

application_icon = APP_ID,
application_name = _("%s for Plausible").printf (App.NAME),
Expand Down Expand Up @@ -318,6 +318,6 @@ Email: [email protected]
"""
);

about_window.present ();
about_window.present (this);
}
}

0 comments on commit 51647a7

Please sign in to comment.