Port to libadwaita 1.5 widgets

This commit is contained in:
kramo
2024-01-27 08:52:50 +01:00
parent 124d2c8ec7
commit 3e1ef88a1f
12 changed files with 29 additions and 41 deletions

View File

@@ -1,17 +1,8 @@
using Gtk 4.0;
using Adw 1;
template $DetailsWindow : Adw.Window {
default-width: 480; // Same as Nautilus' properties window
default-height: -1;
modal: true;
ShortcutController {
Shortcut {
trigger: "Escape";
action: "action(window.close)";
}
}
template $DetailsDialog : Adw.Dialog {
content-width: 480;
Adw.ToolbarView {
@@ -85,7 +76,7 @@ template $DetailsWindow : Adw.Window {
Picture cover {
width-request: 200;
height-request: 300;
styles [
"card"
]
@@ -149,4 +140,4 @@ template $DetailsWindow : Adw.Window {
}
}
}
}
}

View File

@@ -1,7 +1,8 @@
using Gtk 4.0;
using Adw 1;
template $PreferencesWindow : Adw.PreferencesWindow {
template $CartridgesPreferences : Adw.PreferencesDialog {
search-enabled: true;
Adw.PreferencesPage general_page {
name: "general";

View File

@@ -45,7 +45,7 @@ Adw.StatusPage hidden_notice_empty {
template $CartridgesWindow : Adw.ApplicationWindow {
title: _("Cartridges");
width-request: 281;
width-request: 360;
height-request: 100;
Adw.Breakpoint {
@@ -75,6 +75,8 @@ template $CartridgesWindow : Adw.ApplicationWindow {
title: _("All Games");
Adw.OverlaySplitView overlay_split_view {
sidebar-width-fraction: .2;
[sidebar]
Adw.NavigationPage {
title: _("Cartridges");