diff --git a/data/ui/properties.blp b/data/ui/properties.blp index d9e8763..b754fa7 100644 --- a/data/ui/properties.blp +++ b/data/ui/properties.blp @@ -1,14 +1,13 @@ using Gtk 4.0; using Adw 1; -template $PropertiesWindow: Adw.Window { - default-width: 350; - default-height: 600; - modal: true; +template $PropertiesWindow: Adw.Dialog { + content-width: 350; + content-height: 600; Adw.ToolbarView main_toolbar_view { [top] - HeaderBar header_bar {} + Adw.HeaderBar header_bar {} content: Adw.ToastOverlay toast_overlay { Box { diff --git a/src/properties_window.py b/src/properties_window.py index 12dd383..61483e9 100644 --- a/src/properties_window.py +++ b/src/properties_window.py @@ -6,7 +6,7 @@ import pathlib @Gtk.Template(resource_path="/io/github/flattool/Warehouse/../data/ui/properties.ui") -class PropertiesWindow(Adw.Window): +class PropertiesWindow(Adw.Dialog): __gtype_name__ = "PropertiesWindow" new_env = dict(os.environ) @@ -226,6 +226,4 @@ class PropertiesWindow(Adw.Window): self.generate_lower() self.set_title(_("{} Properties").format(self.app_name)) - self.set_size_request(260, 230) - self.set_transient_for(parent_window) - self.present() + self.present(parent_window)