From 251ef4ecf8f4a65ee374a024fe06f41e87adf1f2 Mon Sep 17 00:00:00 2001
From: Serafim_Pankin <serafimpankin@yandex.ru>
Date: Thu, 20 Feb 2025 16:27:22 +0300
Subject: [PATCH] redesign buttons

---
 app/src/main/res/layout/fragment_qr_result.xml | 5 +++++
 app/src/main/res/layout/fragment_qr_scan.xml   | 9 ++++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/app/src/main/res/layout/fragment_qr_result.xml b/app/src/main/res/layout/fragment_qr_result.xml
index 779df20..819c815 100644
--- a/app/src/main/res/layout/fragment_qr_result.xml
+++ b/app/src/main/res/layout/fragment_qr_result.xml
@@ -9,9 +9,14 @@
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_margin="16dp"
+        app:strokeColor="@color/black"
+        app:strokeWidth="1dp"
         android:contentDescription="@string/close_button"
         android:src="@drawable/ic_close"
+        app:backgroundTint="@color/primary"
+        app:tint="@android:color/white"
         app:elevation="0dp"
+        app:cornerRadius="25dp"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintTop_toTopOf="parent" />
 
diff --git a/app/src/main/res/layout/fragment_qr_scan.xml b/app/src/main/res/layout/fragment_qr_scan.xml
index 95ed14b..e9c425e 100644
--- a/app/src/main/res/layout/fragment_qr_scan.xml
+++ b/app/src/main/res/layout/fragment_qr_scan.xml
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent">
 
@@ -14,7 +15,8 @@
         android:letterSpacing="0.05"
         android:textColor="?attr/colorOnBackground"
         android:textSize="24sp"
-        android:visibility="gone" />
+        android:visibility="gone"
+        tools:ignore="MissingConstraints" />
 
     <androidx.camera.view.PreviewView
         android:id="@+id/viewFinder"
@@ -39,9 +41,14 @@
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_margin="16dp"
+        app:strokeColor="@color/black"
+        app:strokeWidth="1dp"
         android:contentDescription="@string/close_button"
         android:src="@drawable/ic_close"
+        app:backgroundTint="@color/primary"
+        app:tint="@android:color/white"
         app:elevation="0dp"
+        app:cornerRadius="25dp"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintTop_toTopOf="parent" />
 </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file