Port to libadwaita 1.5 widgets
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
|
||||
<file preprocess="xml-stripblanks">gtk/game.ui</file>
|
||||
<file preprocess="xml-stripblanks">gtk/preferences.ui</file>
|
||||
<file preprocess="xml-stripblanks">gtk/details-window.ui</file>
|
||||
<file preprocess="xml-stripblanks">gtk/details-dialog.ui</file>
|
||||
<file alias="style.css">gtk/style.css</file>
|
||||
<file alias="style-dark.css">gtk/style-dark.css</file>
|
||||
<file>library_placeholder.svg</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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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");
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<control>touch</control>
|
||||
</supports>
|
||||
<recommends>
|
||||
<display_length compare="gt">280</display_length>
|
||||
<display_length compare="ge">360</display_length>
|
||||
</recommends>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
|
||||
@@ -4,7 +4,7 @@ blueprints = custom_target('blueprints',
|
||||
'gtk/window.blp',
|
||||
'gtk/game.blp',
|
||||
'gtk/preferences.blp',
|
||||
'gtk/details-window.blp'
|
||||
'gtk/details-dialog.blp'
|
||||
),
|
||||
output: '.',
|
||||
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
||||
|
||||
Reference in New Issue
Block a user