Search Provider icons

This commit is contained in:
Sean Edmunds
2025-11-06 13:25:46 -06:00
parent d317796d91
commit ed804a0182
8 changed files with 269 additions and 40 deletions

View File

@@ -29,23 +29,12 @@ export function AppItem({
const { ref, width, height } = useElementSize();
const allIcons: any = { ...fa6, ...vsc, ...si };
const Icon = allIcons[icon];
const { isMobile, theme } = useCommonHooks();
const { isMobile, filter } = useCommonHooks();
const [textDecoration, setTextDecoration] = useState<string>('none');
const [hover, setHover] = useState<boolean>(false);
const validUrl =
url.startsWith('http://') || url.startsWith('https://') ? url : `http://${url}`;
const filter = () => {
if (selectedTheme && selectedTheme.appShadowsEnabled === 1) {
return 'drop-shadow(2px 2px color-mix(in srgb, var(--mantine-color-accent-0), transparent 30%))';
}
if (!selectedTheme && theme.appShadowsEnabled === 1) {
return 'drop-shadow(2px 2px color-mix(in srgb, var(--mantine-color-accent-0), transparent 30%))';
}
return 'none';
};
return (
<Box
component='a'
@@ -113,7 +102,7 @@ export function AppItem({
style={{
height: scale * 32,
width: scale * 32,
filter: filter(),
filter: filter(selectedTheme),
}}
/>
)}