Skip to content

Commit

Permalink
add rom-properties
Browse files Browse the repository at this point in the history
  • Loading branch information
leo60228 committed Sep 2, 2024
1 parent 9f996eb commit acd8383
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/kde.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ lib.makeComponent "kde" (
cfg,
pkgs,
lib,
flakes,
...
}:
with lib;
Expand Down Expand Up @@ -44,6 +45,9 @@ lib.makeComponent "kde" (
discover
partitionmanager
pkgs.exfatprogs
(flakes.rom-properties.packages.${pkgs.system}.rp_kde6.overrideAttrs (oldAttrs: {
patches = oldAttrs.patches ++ [ ../files/rp_larger_icons.diff ];
}))
];

services.desktopManager.plasma6.enable = true;
Expand Down
13 changes: 13 additions & 0 deletions files/rp_larger_icons.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/libromdata/img/TCreateThumbnail.cpp b/src/libromdata/img/TCreateThumbnail.cpp
index dfa61ba..a120dad 100644
--- a/src/libromdata/img/TCreateThumbnail.cpp
+++ b/src/libromdata/img/TCreateThumbnail.cpp
@@ -289,7 +289,7 @@ int TCreateThumbnail<ImgClass>::getThumbnail(const RomDataPtr &romData, int reqS
return RPCT_ERROR_CANNOT_OPEN_SOURCE_FILE;
}

- if (config->getBoolConfigOption_default(Config::BoolConfig::Downloads_UseIntIconForSmallSizes) && reqSize <= 48) {
+ if (config->getBoolConfigOption_default(Config::BoolConfig::Downloads_UseIntIconForSmallSizes) && reqSize <= 256) {
// Check for an icon first.
// TODO: Define "small sizes" somewhere. (DPI independence?)
if (imgbf & RomData::IMGBF_INT_ICON) {
21 changes: 21 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
url = "github:cachix/git-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.rom-properties = {
url = "github:Whovian9369/rom-properties-nix-flake";
inputs.nixpkgs.follows = "nixpkgs";
};

outputs =
{
Expand Down

0 comments on commit acd8383

Please sign in to comment.