From 7b9a3ae9565d8051783d6c34983f0cd2a0eca046 Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Tue, 5 Dec 2023 22:00:48 +0100 Subject: [PATCH] Updated QR code styling --- resources/views/layouts/sidebar.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/layouts/sidebar.blade.php b/resources/views/layouts/sidebar.blade.php index 5b808c3..ac22495 100755 --- a/resources/views/layouts/sidebar.blade.php +++ b/resources/views/layouts/sidebar.blade.php @@ -684,12 +684,12 @@ $usrhandl = Auth::user()->littlelink_name; $redirectURL = url('').'/'.'u/'.Auth::user()->id; if (extension_loaded('imagick')) { - $imgSrc = QrCode::format('png')->size(1000)->generate($redirectURL); + $imgSrc = QrCode::format('png')->gradient(224, 36, 252, 35, 199, 225,'diagonal')->eye('circle')->style('round')->size(1000)->generate($redirectURL); $imgSrc = base64_encode($imgSrc); $imgSrc = 'data:image/png;base64,' . $imgSrc; $imgType = 'png'; } else { - $imgSrc = QrCode::size(1000)->generate($redirectURL); + $imgSrc = QrCode::gradient(224, 36, 252, 35, 199, 225,'diagonal')->eye('circle')->style('round')->size(1000)->generate($redirectURL); $imgSrc = base64_encode($imgSrc); $imgSrc = 'data:image/svg+xml;base64,' . $imgSrc; $imgType = 'svg';