mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-30 18:22:37 -04:00 
			
		
		
		
	fix(web): Make QR code colors solid (#18340)
This commit is contained in:
		
							parent
							
								
									b63d6cdcd6
								
							
						
					
					
						commit
						61d784f4e7
					
				| @ -1,6 +1,4 @@ | |||||||
| <script lang="ts"> | <script lang="ts"> | ||||||
|   import { Theme } from '$lib/constants'; |  | ||||||
|   import { themeManager } from '$lib/managers/theme-manager.svelte'; |  | ||||||
|   import QRCode from 'qrcode'; |   import QRCode from 'qrcode'; | ||||||
|   import { t } from 'svelte-i18n'; |   import { t } from 'svelte-i18n'; | ||||||
| 
 | 
 | ||||||
| @ -12,13 +10,7 @@ | |||||||
| 
 | 
 | ||||||
|   const { value, width, alt = $t('alt_text_qr_code') }: Props = $props(); |   const { value, width, alt = $t('alt_text_qr_code') }: Props = $props(); | ||||||
| 
 | 
 | ||||||
|   let promise = $derived( |   let promise = $derived(QRCode.toDataURL(value, { margin: 0, width })); | ||||||
|     QRCode.toDataURL(value, { |  | ||||||
|       color: { dark: themeManager.value === Theme.DARK ? '#ffffffff' : '#000000ff', light: '#00000000' }, |  | ||||||
|       margin: 0, |  | ||||||
|       width, |  | ||||||
|     }), |  | ||||||
|   ); |  | ||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
| <div style="width: {width}px; height: {width}px"> | <div style="width: {width}px; height: {width}px"> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user