Skip to content

Commit

Permalink
AppInfoView: badge for appcenter instead of uncurated (#2133)
Browse files Browse the repository at this point in the history
Co-authored-by: Leo <[email protected]>
  • Loading branch information
danirabbit and lenemter authored Mar 19, 2024
1 parent 35ccd8d commit 3b127b7
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 6 deletions.
1 change: 1 addition & 0 deletions data/icons/categories.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<file alias="scalable/categories/oars-socal-info-symbolic.svg" compressed="true" preprocess="xml-stripblanks">oars/social-info.svg</file>
<file alias="scalable/categories/oars-socal-location-symbolic.svg" compressed="true" preprocess="xml-stripblanks">oars/social-location.svg</file>
<file alias="scalable/categories/metainfo-locale.svg" compressed="true" preprocess="xml-stripblanks">oars/locale.svg</file>
<file alias="scalable/categories/runtime-elementary-symbolic.svg" compressed="true" preprocess="xml-stripblanks">oars/runtime-elementary.svg</file>
<file alias="scalable/categories/oars-illicit-substance-symbolic.svg" compressed="true" preprocess="xml-stripblanks">oars/substance.svg</file>
<file alias="scalable/categories/oars-violence-symbolic.svg" compressed="true" preprocess="xml-stripblanks">oars/violence.svg</file>
</gresource>
Expand Down
42 changes: 42 additions & 0 deletions data/icons/oars/runtime-elementary.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions src/Views/AppInfoView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,14 @@ public class AppCenter.Views.AppInfoView : Adw.NavigationPage {

if (!package.is_runtime_updates) {
#if CURATED
if (!package.is_native) {
var uncurated = new ContentType (
_("Non-Curated"),
_("Not reviewed by elementary for security, privacy, or system integration"),
"security-low-symbolic"
if (package.is_native) {
var made_for_elementary = new ContentType (
_("Made for elementary OS"),
_("Reviewed by elementary for security, privacy, and system integration"),
"runtime-elementary-symbolic"
);

oars_flowbox.append (uncurated);
oars_flowbox.append (made_for_elementary);
}
#endif

Expand Down

0 comments on commit 3b127b7

Please sign in to comment.