mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Use Material Icons for untrusted extension's icon (#7518)
This commit is contained in:
		@@ -8,6 +8,7 @@ import androidx.compose.foundation.layout.aspectRatio
 | 
			
		||||
import androidx.compose.foundation.layout.height
 | 
			
		||||
import androidx.compose.foundation.shape.RoundedCornerShape
 | 
			
		||||
import androidx.compose.material.icons.Icons
 | 
			
		||||
import androidx.compose.material.icons.filled.Dangerous
 | 
			
		||||
import androidx.compose.material.icons.filled.Warning
 | 
			
		||||
import androidx.compose.material3.MaterialTheme
 | 
			
		||||
import androidx.compose.runtime.Composable
 | 
			
		||||
@@ -105,8 +106,9 @@ fun ExtensionIcon(
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        is Extension.Untrusted -> Image(
 | 
			
		||||
            bitmap = ImageBitmap.imageResource(id = R.mipmap.ic_untrusted_source),
 | 
			
		||||
            imageVector = Icons.Default.Dangerous,
 | 
			
		||||
            contentDescription = "",
 | 
			
		||||
            colorFilter = ColorFilter.tint(MaterialTheme.colorScheme.error),
 | 
			
		||||
            modifier = modifier.then(defaultModifier),
 | 
			
		||||
        )
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user