summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-04-28 08:36:03 +0100
committerRichard Hughes <richard@hughsie.com>2015-04-28 08:36:03 +0100
commit88a5c6d9e8cb67494620ef21a5b105f5f2b01cb5 (patch)
treef7d95f1d12bc13d856e9f7d59bec2d9d6432675b
parent8ac7c78bf95df8ed2f149110561bf0352c6733f6 (diff)
downloadappstream-glib-88a5c6d9e8cb67494620ef21a5b105f5f2b01cb5.tar.gz
Detect recolorable symbolic icons
-rw-r--r--libappstream-builder/plugins/asb-plugin-hardcoded.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-hardcoded.c b/libappstream-builder/plugins/asb-plugin-hardcoded.c
index e0e5b8b..84b886e 100644
--- a/libappstream-builder/plugins/asb-plugin-hardcoded.c
+++ b/libappstream-builder/plugins/asb-plugin-hardcoded.c
@@ -178,6 +178,12 @@ asb_plugin_process_app (AsbPlugin *plugin,
AS_KUDO_KIND_HIGH_CONTRAST);
break;
}
+ if (asb_plugin_match_glob ("/usr/share/icons/hicolor/symbolic/apps/*.svg",
+ filelist[i])) {
+ as_app_add_kudo_kind (AS_APP (app),
+ AS_KUDO_KIND_HIGH_CONTRAST);
+ break;
+ }
}
/* look for a modern toolkit */