{{define "app-card"}}

{{.App.AppName}}

{{/* Detected badge for externally installed apps */}} {{if not .App.Managed}} Detected {{end}} {{/* Styled install method tag with icon */}} {{if .App.TypeTag}} {{if or (eq .App.TypeTag "Package Manager") $.Platform.Distro}} {{/* Package Manager with distro logo */}} {{if and (eq .App.TypeTag "Package Manager") $.Platform.Distro}} {{$.Platform.Distro}} {{else if .App.TypeLogo}} {{.App.TypeTag}} {{end}} {{.App.TypeTag}} {{else if .App.TypeLogo}} {{/* Flatpak, Portable, or Installed App with icon */}} {{.App.TypeTag}} {{.App.TypeTag}} {{else}} {{/* UI Component, Utility, or fallback without icon */}} {{.App.TypeTag}} {{end}} {{end}} {{/* UI overlay tag - only for MPV-based apps that support UI changes */}} {{if and .App.UIType (canChangeUI .App.InstallMethod)}} {{if eq .App.UIType "uosc"}}UOSC UI{{else if eq .App.UIType "modernz"}}ModernZ UI{{else}}Default UI{{end}} {{end}} {{if .App.Version}} {{cleanAppVersion .App.Version}} {{end}}
{{/* Show Create Shortcut button for Windows MPV portable/binary installs */}} {{if and $.Platform.IsWindows (or (eq .App.InstallMethod "mpv-binary") (eq .App.InstallMethod "mpv-binary-v3"))}} {{end}} {{/* For unmanaged apps: Show Manage button to adopt/configure - available for ALL externally detected apps */}} {{if not .App.Managed}} {{/* For managed apps that support UI changes: Show Change UI button */}} {{else if canChangeUI .App.InstallMethod}} {{end}} {{/* Uninstall button - only for managed apps */}} {{if .App.Managed}} {{end}}
{{if and .Platform.IsWindows .App.Managed (or (eq .App.InstallMethod "mpv-binary") (eq .App.InstallMethod "mpv-binary-v3"))}}

Open media files with mpv by default. Windows will let you choose the file types.

In Windows Settings, select mpv and choose your defaults. On older Windows versions, search for mpv under Default apps.

{{end}}
{{end}}