Commit Graph

115 Commits

Author SHA1 Message Date
kramo
43ec0e1a1f Fix hiding game toast bug 2023-04-15 22:02:04 +02:00
kramo
3da6674dbb UI improvements 2023-04-14 14:27:48 +02:00
kramo
fd66d07ac3 Cleanups 2023-04-11 23:31:16 +02:00
kramo
a08ed1d4c2 Cleanups 2023-04-11 20:57:11 +02:00
kramo
1d630722de Save all covers in a shared directory 2023-04-11 18:31:46 +02:00
kramo
2303c2e6da Adaptive cover resolution for still images 2023-04-11 17:44:39 +02:00
kramo
5b08cea6de Delete animated covers properly 2023-04-11 15:00:18 +02:00
kramo
0f6a989142 Reimplement animated covers with Pillow 2023-04-11 14:49:18 +02:00
kramo
3c6639ae07 Create GameCover class 2023-04-11 12:33:42 +02:00
kramo
3e495283b0 Revert animation support due to performance issues 2023-04-11 00:58:42 +02:00
kramo
8ec2998077 Fix animated covers in the overview 2023-04-11 00:01:05 +02:00
kramo
62aff0e7cc Basic animated cover support 2023-04-10 23:24:48 +02:00
kramo
c1715aa328 Reimplement pixbuf caching 2023-04-10 20:54:24 +02:00
kramo
d136897c8c Fix cover saving issue 2023-04-10 20:05:41 +02:00
kramo
0fb7c859d2 Cleanups 2023-04-10 16:34:03 +02:00
kramo
d93c6aa81d Details view improvements 2023-04-10 15:24:24 +02:00
kramo
5ea8d49f14 Remove debugging print 2023-04-08 09:33:05 +02:00
kramo
cccc4744ac More elegant formulas 2023-04-08 09:30:14 +02:00
kramo
b86f0f9217 Got some sleep 2023-04-08 09:11:38 +02:00
kramo
22182a838a Add tinting back for high contrast 2023-04-08 00:05:26 +02:00
kramo
a9e67595f7 Totally unnecessary algorithm 2023-04-07 23:54:42 +02:00
kramo
41f7ce3d5f Add spinner for loading game covers 2023-04-05 09:57:31 +02:00
kramo
00580571a6 Add option to delete game covers 2023-04-04 23:37:39 +02:00
kramo
cbe9bfbab8 SteamGridDB for manually added games 2023-04-04 19:12:36 +02:00
kramo
b1cb2d679a Make undoing the hide action more consistent 2023-04-03 10:56:56 +02:00
kramo
e373534e41 Add toast notifications for hiding/unhiding games 2023-04-03 10:36:58 +02:00
kramo
7e968a9ac7 Pathlib fixes 2023-04-02 08:06:09 +02:00
kramo
b511ce22b7 Cleanups 2023-04-02 07:20:05 +02:00
kramo
3bcbf8457c Refactor to use pathlib 2023-04-01 11:33:48 +02:00
kramo
3e568be6d8 Fix fstrings in translations 2023-03-31 15:44:59 +02:00
Bananaman
77b083e219 A few minor code cleanups and fixes (#47)
* Avoid exception if trying to delete missing "removed" key

`.pop(key)` throws an exception if that `key` is missing. Using a default value (in this case None) means we don't throw any errors when deleting a missing key. Which is what we want here, for safety. We just want to delete the key. We don't care if it's existing or not.

There are other places in the codebase that also use `.pop(key)`, but all of those first check the validity of the key before popping, so this was the only one that needed fixing.

* Improve performance by removing keys() calls

Every `.keys()` call create a new `[list...]` of all keys from the given dictionary. It's a total waste of performance, since we can already check if a key exists in a dictionary by just using `if "key" in the_dict`.

* Use more pythonic "not in" syntax

The syntax is supposed to be `if "thing" not in other_thing`. We already use this proper `not in` syntax everywhere else in the codebase. Just fixing this location.
2023-03-31 15:24:02 +02:00
kramo
dad4905753 Cleanups 2023-03-29 23:02:10 +02:00
kramo
643ca368a6 Unify games import 2023-03-29 00:23:23 +02:00
kramo
228db1b2f0 Add option to launch games by clicking cover 2023-03-26 11:04:40 +02:00
kramo
65357bdc41 UX improvements 2023-03-25 08:36:13 +01:00
kramo
41c97e1af7 Move menu models to the game class 2023-03-25 00:14:37 +01:00
kramo
6b103c996b Remove redundant get_cover function 2023-03-24 23:09:56 +01:00
Domenico
053d5791a4 Refactory of the code (#19)
* Refactory of the code

* Autoformatting with black

---------

Co-authored-by: Domefemia <domefemia@hotmail.com>
2023-03-24 20:26:55 +01:00
kramo
b281a4bd0d Cleanups 2023-03-22 08:36:37 +01:00
kramo
57be95137c Update translations 2023-03-19 13:12:35 +01:00
kramo
a4cc224aa5 Update translations 2023-03-19 12:56:00 +01:00
kramo
ba944fdaab Revert to resolve Weblate conflict 2023-03-19 12:53:49 +01:00
kramo
cad5c3fd36 Update translations 2023-03-19 12:42:00 +01:00
kramo
516c020cbc Allow building as a non-flatpak app 2023-03-16 17:24:03 +01:00
kramo
eb3f9a8b8e Use blacklist for non-game items 2023-03-15 23:46:34 +01:00
kramo
e2a2ea6da2 Add developer property 2023-03-15 13:12:48 +01:00
kramo
8a2ff2561b Cleanups 2023-03-15 02:22:11 +01:00
kramo
bd0cf7402a Code style 2023-03-15 01:57:43 +01:00
kramo
f416155c2d Update code style 2023-03-14 23:05:47 +01:00
kramo
32d9f9a880 Cleanups 2023-03-14 21:20:59 +01:00