Port to libadwaita 1.5 widgets
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user