fix(icon): auto-apply default color from metadata when color prop is not provided

When ProviderIcon is used without a color prop, it now automatically
fetches the defaultColor from icon metadata. This fixes the issue where
Gemini app icon turns black when selected in AppSwitcher, because the
component was inheriting the parent's text-foreground color.
This commit is contained in:
Jason
2026-01-21 15:46:54 +08:00
parent a187380d6f
commit dc865fbbbf
2 changed files with 17 additions and 2 deletions
+2
View File
@@ -65,3 +65,5 @@ export function getIcon(name: string): string {
export function hasIcon(name: string): boolean {
return name.toLowerCase() in icons;
}
export { getIconMetadata } from "./metadata";