Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark mode on Android renders background black, making barcode unusable #1077

Open
Srki94 opened this issue May 17, 2023 · 0 comments
Open

Dark mode on Android renders background black, making barcode unusable #1077

Srki94 opened this issue May 17, 2023 · 0 comments

Comments

@Srki94
Copy link

Srki94 commented May 17, 2023

Hi,

When using dark theme, some of the shorter barcodes use black color for background, resulting in barcode scanners not being able to read the barcode.

Take a look at this screenshot :
https://prnt.sc/Iq7D0bkRsOPB

Is there a way to force white background in the container ?

I've defined it in XAML like so :

<zxing:ZXingBarcodeImageView x:Name="BarcodeImgView" Aspect="AspectFill" BackgroundColor="White" BarcodeFormat="CODE_128" BarcodeValue="{Binding ArticleEAN}" HeightRequest="80" IsVisible="{Binding isVisible}" WidthRequest="200"> <zxing:ZXingBarcodeImageView.BarcodeOptions> <zxing1:EncodingOptions Width="200" Height="80" /> </zxing:ZXingBarcodeImageView.BarcodeOptions> </zxing:ZXingBarcodeImageView>

This is Xamarin Forms application .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant