Update for GNOME 49
This commit is contained in:
kramo
2025-09-24 13:22:16 +02:00
parent c77973e5d6
commit 4990953119
9 changed files with 110 additions and 84 deletions

View File

@@ -1,73 +0,0 @@
using Gtk 4.0;
ShortcutsWindow help_overlay {
modal: true;
ShortcutsSection {
section-name: "shortcuts";
max-height: 10;
ShortcutsGroup {
title: _("General");
ShortcutsShortcut {
title: _("Search");
action-name: "win.toggle_search";
}
ShortcutsShortcut {
title: _("Preferences");
action-name: "app.preferences";
}
ShortcutsShortcut {
title: _("Keyboard Shortcuts");
action-name: "win.show-help-overlay";
}
ShortcutsShortcut {
title: _("Undo");
action-name: "win.undo";
}
ShortcutsShortcut {
title: _("Quit");
action-name: "app.quit";
}
ShortcutsShortcut {
title: _("Toggle Sidebar");
action-name: "win.show_sidebar";
}
ShortcutsShortcut {
title: _("Main Menu");
action-name: "win.open_menu";
}
}
ShortcutsGroup {
title: _("Games");
ShortcutsShortcut {
title: _("Add Game");
action-name: "app.add_game";
}
ShortcutsShortcut {
title: _("Import");
action-name: "app.import";
}
ShortcutsShortcut {
title: _("Show Hidden Games");
action-name: "win.show_hidden";
}
ShortcutsShortcut {
title: _("Remove Game");
action-name: "app.remove_game_details_view";
}
}
}
}

View File

@@ -0,0 +1,67 @@
using Gtk 4.0;
using Adw 1;
Adw.ShortcutsDialog shortcuts_dialog {
Adw.ShortcutsSection {
title: _("General");
Adw.ShortcutsItem {
title: _("Search");
action-name: "win.toggle_search";
}
Adw.ShortcutsItem {
title: _("Preferences");
action-name: "app.preferences";
}
Adw.ShortcutsItem {
title: _("Keyboard Shortcuts");
action-name: "app.shortcuts";
}
Adw.ShortcutsItem {
title: _("Undo");
action-name: "win.undo";
}
Adw.ShortcutsItem {
title: _("Quit");
action-name: "app.quit";
}
Adw.ShortcutsItem {
title: _("Toggle Sidebar");
action-name: "win.show_sidebar";
}
Adw.ShortcutsItem {
title: _("Main Menu");
action-name: "win.open_menu";
}
}
Adw.ShortcutsSection {
title: _("Games");
Adw.ShortcutsItem {
title: _("Add Game");
action-name: "app.add_game";
}
Adw.ShortcutsItem {
title: _("Import");
action-name: "app.import";
}
Adw.ShortcutsItem {
title: _("Show Hidden Games");
action-name: "win.show_hidden";
}
Adw.ShortcutsItem {
title: _("Remove Game");
action-name: "app.remove_game_details_view";
}
}
}

View File

@@ -3,11 +3,31 @@
--accent-bg-color: var(--purple-3);
}
.no-hover > flowboxchild:hover {
background-color: transparent;
}
#details_view {
background-color: white;
background-color: white;
}
#details_view_play_button {
color: white;
background-color: rgba(0, 0, 0, .8);
color: white;
background-color: rgba(0, 0, 0, 0.8);
}
@media (prefers-color-scheme: dark) {
:root {
--accent-color: var(--purple-1);
--accent-bg-color: var(--purple-4);
}
#details_view {
background-color: black;
}
#details_view_play_button {
color: rgba(0, 0, 0, 0.8);
background-color: white;
}
}

View File

@@ -246,6 +246,10 @@ template $CartridgesWindow: Adw.ApplicationWindow {
margin-start: 15;
margin-end: 15;
selection-mode: none;
styles [
"no-hover",
]
}
}
}
@@ -306,6 +310,10 @@ Adw.NavigationPage hidden_library_page {
margin-start: 15;
margin-end: 15;
selection-mode: none;
styles [
"no-hover",
]
}
}
}
@@ -541,7 +549,7 @@ menu primary_menu {
section {
item (_("Preferences"), "app.preferences")
item (_("Keyboard Shortcuts"), "win.show-help-overlay")
item (_("Keyboard Shortcuts"), "app.shortcuts")
item (_("About Cartridges"), "app.about")
}
}