Skip to content

Commit

Permalink
Flash: Update Pro button icon from GCam
Browse files Browse the repository at this point in the history
Change-Id: I251f1dbf4bde69878f13b357b475ccb2734b6722
Signed-off-by: Leonardo Ledda <[email protected]>
  • Loading branch information
LeddaZ committed Apr 14, 2024
1 parent 50e2aa0 commit 24289b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
20 changes: 8 additions & 12 deletions app/src/main/res/drawable/ic_pro_button.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="36"
android:viewportHeight="36">
<vector android:width="30.0dip"
android:height="30.0dip"
android:tint="?attr/colorSecondaryContainer"
android:viewportWidth="960.0"
android:viewportHeight="960.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path
android:fillColor="#ffffff"
android:fillType="evenOdd"
android:pathData="M22,9H26V13V15V19V21V25H22H20H16H14H10V21V19V15V13V9H14H16H20H22ZM8,9C8,7.895 8.895,7 10,7H26C27.105,7 28,7.895 28,9V25C28,26.105 27.105,27 26,27H10C8.895,27 8,26.105 8,25V9ZM17,16H19C19.552,16 20,16.448 20,17C20,17.552 19.552,18 19,18H17C16.448,18 16,17.552 16,17C16,16.448 16.448,16 17,16ZM17,20C15.343,20 14,18.657 14,17C14,15.343 15.343,14 17,14H19C20.657,14 22,15.343 22,17C22,18.657 20.657,20 19,20H17Z" />
android:fillColor="?attr/colorSecondaryContainer"
android:pathData="M580,880q-25,0 -42.5,-17.5T520,820v-200q0,-25 17.5,-42.5T580,560h60l40,-40h80l40,40h60q25,0 42.5,17.5T920,620v200q0,25 -17.5,42.5T860,880L580,880ZM720,800q33,0 56.5,-23.5T800,720q0,-33 -23.5,-56.5T720,640q-33,0 -56.5,23.5T640,720q0,33 23.5,56.5T720,800ZM480,480ZM482,340q-58,0 -99,41t-41,99q0,48 27,84t71,50v-90q-8,-8 -13,-20.5t-5,-23.5q0,-25 17.5,-42.5T482,420q14,0 25,5.5t19,14.5h90q-13,-44 -49.5,-72T482,340ZM370,880l-16,-128q-13,-5 -24.5,-12T307,725l-119,50L78,585l103,-78q-1,-7 -1,-13.5v-27q0,-6.5 1,-13.5L78,375l110,-190 119,50q11,-8 23,-15t24,-12l16,-128h220l16,128q13,5 24.5,12t22.5,15l119,-50 110,190 -85,65L696,440q-1,-5 -2,-10.5t-3,-10.5l86,-65 -39,-68 -99,42q-22,-23 -48.5,-38.5T533,266l-13,-106h-79l-14,106q-31,8 -57.5,23.5T321,327l-99,-41 -39,68 86,64q-5,15 -7,30t-2,32q0,16 2,31t7,30l-86,65 39,68 99,-42q24,25 54,42t65,22v184h-70Z" />
</vector>
6 changes: 3 additions & 3 deletions app/src/main/res/layout/activity_camera.xml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
style="@style/Theme.Aperture.Camera.SecondaryBottomBarButton"
android:layout_marginStart="40dp"
android:contentDescription="@string/pro_button_description"
android:scaleType="fitXY"
android:scaleType="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
Expand Down Expand Up @@ -370,14 +370,14 @@
android:id="@+id/googleLensButton"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_marginEnd="32dp"
android:background="@null"
android:contentDescription="@string/google_lens_button_description"
android:scaleType="center"
android:src="@drawable/ic_google_lens"
android:visibility="gone"
app:layout_constraintBottom_toTopOf="@+id/cameraModeSelectorLayout"
app:layout_constraintEnd_toEndOf="parent" />
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

<org.lineageos.aperture.ui.CameraModeSelectorLayout
android:id="@+id/cameraModeSelectorLayout"
Expand Down

0 comments on commit 24289b0

Please sign in to comment.