Blueprint cleanups
This commit is contained in:
@@ -2,153 +2,159 @@ using Gtk 4.0;
|
|||||||
using Adw 1;
|
using Adw 1;
|
||||||
|
|
||||||
template $DetailsWindow : Adw.Window {
|
template $DetailsWindow : Adw.Window {
|
||||||
default-width: 480; // Same as Nautilus' properties window
|
default-width: 480; // Same as Nautilus' properties window
|
||||||
default-height: -1;
|
default-height: -1;
|
||||||
modal: true;
|
modal: true;
|
||||||
|
|
||||||
ShortcutController {
|
ShortcutController {
|
||||||
Shortcut {
|
Shortcut {
|
||||||
trigger: "Escape";
|
trigger: "Escape";
|
||||||
action: "action(window.close)";
|
action: "action(window.close)";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Box {
|
||||||
|
orientation: vertical;
|
||||||
|
|
||||||
|
Adw.HeaderBar HeaderBar {
|
||||||
|
show-start-title-buttons: false;
|
||||||
|
show-end-title-buttons: false;
|
||||||
|
|
||||||
|
[start]
|
||||||
|
Button cancel_button {
|
||||||
|
label: _("Cancel");
|
||||||
|
action-name: "window.close";
|
||||||
|
}
|
||||||
|
|
||||||
|
[end]
|
||||||
|
Button apply_button {
|
||||||
|
styles [
|
||||||
|
"suggested-action",
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Box {
|
Adw.PreferencesPage {
|
||||||
orientation: vertical;
|
vexpand: true;
|
||||||
|
|
||||||
Adw.HeaderBar HeaderBar {
|
Adw.PreferencesGroup cover_group {
|
||||||
show-start-title-buttons: false;
|
Adw.Clamp cover_clamp {
|
||||||
show-end-title-buttons: false;
|
maximum-size: 200;
|
||||||
|
|
||||||
[start]
|
Overlay {
|
||||||
Button cancel_button {
|
[overlay]
|
||||||
label: _("Cancel");
|
Spinner spinner {
|
||||||
action-name: "window.close";
|
margin-start: 72;
|
||||||
|
margin-end: 72;
|
||||||
}
|
}
|
||||||
|
|
||||||
[end]
|
Overlay cover_overlay {
|
||||||
Button apply_button {
|
halign: center;
|
||||||
|
valign: center;
|
||||||
|
|
||||||
|
[overlay]
|
||||||
|
Button cover_button_edit {
|
||||||
|
icon-name: "document-edit-symbolic";
|
||||||
|
tooltip-text: _("New Cover");
|
||||||
|
halign: end;
|
||||||
|
valign: end;
|
||||||
|
margin-bottom: 6;
|
||||||
|
margin-end: 6;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"suggested-action"
|
"circular",
|
||||||
|
"osd",
|
||||||
]
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
[overlay]
|
||||||
|
Revealer cover_button_delete_revealer {
|
||||||
|
transition-type: crossfade;
|
||||||
|
margin-end: 40;
|
||||||
|
|
||||||
|
Button cover_button_delete {
|
||||||
|
icon-name: "user-trash-symbolic";
|
||||||
|
tooltip-text: _("Delete Cover");
|
||||||
|
halign: end;
|
||||||
|
valign: end;
|
||||||
|
margin-bottom: 6;
|
||||||
|
margin-end: 6;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"circular",
|
||||||
|
"osd",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Picture cover {
|
||||||
|
width-request: 200;
|
||||||
|
height-request: 300;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"card",
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.PreferencesGroup {
|
||||||
|
Adw.EntryRow name {
|
||||||
|
title: _("Title");
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.PreferencesPage {
|
Adw.EntryRow developer {
|
||||||
vexpand: true;
|
title: _("Developer (optional)");
|
||||||
|
|
||||||
Adw.PreferencesGroup cover_group {
|
|
||||||
Adw.Clamp cover_clamp {
|
|
||||||
maximum-size: 200;
|
|
||||||
Overlay {
|
|
||||||
[overlay]
|
|
||||||
Spinner spinner {
|
|
||||||
margin-start: 72;
|
|
||||||
margin-end: 72;
|
|
||||||
}
|
|
||||||
|
|
||||||
Overlay cover_overlay {
|
|
||||||
halign: center;
|
|
||||||
valign: center;
|
|
||||||
|
|
||||||
[overlay]
|
|
||||||
Button cover_button_edit {
|
|
||||||
icon-name: "document-edit-symbolic";
|
|
||||||
tooltip-text: _("New Cover");
|
|
||||||
halign: end;
|
|
||||||
valign: end;
|
|
||||||
margin-bottom: 6;
|
|
||||||
margin-end: 6;
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"circular", "osd"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
[overlay]
|
|
||||||
Revealer cover_button_delete_revealer {
|
|
||||||
transition-type: crossfade;
|
|
||||||
margin-end: 40;
|
|
||||||
|
|
||||||
Button cover_button_delete {
|
|
||||||
icon-name: "user-trash-symbolic";
|
|
||||||
tooltip-text: _("Delete Cover");
|
|
||||||
halign: end;
|
|
||||||
valign: end;
|
|
||||||
margin-bottom: 6;
|
|
||||||
margin-end: 6;
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"circular", "osd"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Picture cover {
|
|
||||||
width-request: 200;
|
|
||||||
height-request: 300;
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"card"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Adw.PreferencesGroup {
|
|
||||||
Adw.EntryRow name {
|
|
||||||
title: _("Title");
|
|
||||||
}
|
|
||||||
Adw.EntryRow developer {
|
|
||||||
title: _("Developer (optional)");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Adw.PreferencesGroup {
|
|
||||||
Adw.EntryRow executable {
|
|
||||||
title: _("Executable");
|
|
||||||
|
|
||||||
[suffix]
|
|
||||||
Gtk.Button file_chooser_button {
|
|
||||||
valign: center;
|
|
||||||
icon-name: "document-open-symbolic";
|
|
||||||
tooltip-text: _("Select File");
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"flat"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
[suffix]
|
|
||||||
Gtk.MenuButton exec_info_button {
|
|
||||||
valign: center;
|
|
||||||
icon-name: "help-about-symbolic";
|
|
||||||
tooltip-text: _("More Info");
|
|
||||||
|
|
||||||
popover: Popover exec_info_popover {
|
|
||||||
focusable: true;
|
|
||||||
|
|
||||||
Label exec_info_label {
|
|
||||||
use-markup: true;
|
|
||||||
wrap: true;
|
|
||||||
max-width-chars: 50;
|
|
||||||
halign: center;
|
|
||||||
valign: center;
|
|
||||||
margin-top: 6;
|
|
||||||
margin-bottom: 6;
|
|
||||||
margin-start: 6;
|
|
||||||
margin-end: 6;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"flat"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Adw.PreferencesGroup {
|
||||||
|
Adw.EntryRow executable {
|
||||||
|
title: _("Executable");
|
||||||
|
|
||||||
|
[suffix]
|
||||||
|
Button file_chooser_button {
|
||||||
|
valign: center;
|
||||||
|
icon-name: "document-open-symbolic";
|
||||||
|
tooltip-text: _("Select File");
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"flat",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
[suffix]
|
||||||
|
MenuButton exec_info_button {
|
||||||
|
valign: center;
|
||||||
|
icon-name: "help-about-symbolic";
|
||||||
|
tooltip-text: _("More Info");
|
||||||
|
popover:
|
||||||
|
Popover exec_info_popover {
|
||||||
|
focusable: true;
|
||||||
|
|
||||||
|
Label exec_info_label {
|
||||||
|
use-markup: true;
|
||||||
|
wrap: true;
|
||||||
|
max-width-chars: 50;
|
||||||
|
halign: center;
|
||||||
|
valign: center;
|
||||||
|
margin-top: 6;
|
||||||
|
margin-bottom: 6;
|
||||||
|
margin-start: 6;
|
||||||
|
margin-end: 6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"flat",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -76,7 +76,6 @@ template $PreferencesWindow : Adw.PreferencesWindow {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,7 +274,7 @@ template $PreferencesWindow : Adw.PreferencesWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.ActionRow flatpak_import_launchers_row {
|
Adw.ActionRow flatpak_import_launchers_row {
|
||||||
title: _("Import Game Launchers");
|
title: _("Import Game Launchers");
|
||||||
activatable-widget: flatpak_import_launchers_switch;
|
activatable-widget: flatpak_import_launchers_switch;
|
||||||
|
|
||||||
|
|||||||
@@ -194,13 +194,19 @@ template $CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
action-name: "app.edit_game";
|
action-name: "app.edit_game";
|
||||||
tooltip-text: _("Edit");
|
tooltip-text: _("Edit");
|
||||||
|
|
||||||
styles ["raised", "circular"]
|
styles [
|
||||||
|
"raised",
|
||||||
|
"circular",
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
Button details_view_hide_button {
|
Button details_view_hide_button {
|
||||||
action-name: "app.hide_game";
|
action-name: "app.hide_game";
|
||||||
|
|
||||||
styles ["raised", "circular"]
|
styles [
|
||||||
|
"raised",
|
||||||
|
"circular",
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
@@ -208,7 +214,10 @@ template $CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
action-name: "app.remove_game";
|
action-name: "app.remove_game";
|
||||||
tooltip-text: _("Remove");
|
tooltip-text: _("Remove");
|
||||||
|
|
||||||
styles ["raised", "circular"]
|
styles [
|
||||||
|
"raised",
|
||||||
|
"circular",
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuButton {
|
MenuButton {
|
||||||
@@ -216,7 +225,10 @@ template $CartridgesWindow : Adw.ApplicationWindow {
|
|||||||
menu-model: search;
|
menu-model: search;
|
||||||
tooltip-text: _("Search");
|
tooltip-text: _("Search");
|
||||||
|
|
||||||
styles ["raised", "circular"]
|
styles [
|
||||||
|
"raised",
|
||||||
|
"circular",
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
|
|||||||
Reference in New Issue
Block a user