Add PCGamingWiki to search

This commit is contained in:
kramo
2025-11-12 17:39:03 +01:00
parent e7fc327f71
commit a4e14c20ab
2 changed files with 11 additions and 6 deletions

View File

@@ -164,6 +164,7 @@ class CartridgesApplication(Adw.Application):
("igdb_search",), ("igdb_search",),
("sgdb_search",), ("sgdb_search",),
("protondb_search",), ("protondb_search",),
("pcgw_search",),
("lutris_search",), ("lutris_search",),
("hltb_search",), ("hltb_search",),
("show_sidebar", ("F9",), shared.win), ("show_sidebar", ("F9",), shared.win),
@@ -387,6 +388,9 @@ class CartridgesApplication(Adw.Application):
def on_protondb_search_action(self, *_args: Any) -> None: def on_protondb_search_action(self, *_args: Any) -> None:
self.search("https://www.protondb.com/search?q=") self.search("https://www.protondb.com/search?q=")
def on_pcgw_search_action(self, *_args: Any) -> None:
self.search("https://www.pcgamingwiki.com/w/index.php?search=")
def on_lutris_search_action(self, *_args: Any) -> None: def on_lutris_search_action(self, *_args: Any) -> None:
self.search("https://lutris.net/games?q=") self.search("https://lutris.net/games?q=")

View File

@@ -120,7 +120,7 @@ template $CartridgesWindow: Adw.ApplicationWindow {
halign: end; halign: end;
styles [ styles [
"dim-label" "dim-label",
] ]
} }
} }
@@ -149,7 +149,7 @@ template $CartridgesWindow: Adw.ApplicationWindow {
margin-end: 6; margin-end: 6;
styles [ styles [
"dim-label" "dim-label",
] ]
} }
} }
@@ -162,7 +162,7 @@ template $CartridgesWindow: Adw.ApplicationWindow {
label: _("Imported"); label: _("Imported");
styles [ styles [
"heading" "heading",
] ]
halign: start; halign: start;
@@ -170,7 +170,7 @@ template $CartridgesWindow: Adw.ApplicationWindow {
} }
styles [ styles [
"navigation-sidebar" "navigation-sidebar",
] ]
} }
} }
@@ -570,6 +570,7 @@ menu search {
item (_("IGDB"), "app.igdb_search") item (_("IGDB"), "app.igdb_search")
item (_("SteamGridDB"), "app.sgdb_search") item (_("SteamGridDB"), "app.sgdb_search")
item (_("ProtonDB"), "app.protondb_search") item (_("ProtonDB"), "app.protondb_search")
item (_("PCGamingWiki"), "app.pcgw_search")
item (_("Lutris"), "app.lutris_search") item (_("Lutris"), "app.lutris_search")
item (_("HowLongToBeat"), "app.hltb_search") item (_("HowLongToBeat"), "app.hltb_search")
} }