Skip to content

Commit 8b8ba75

Browse files
committed
chore: update gallery icon and vertical arrangement
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 8ee7d0d commit 8b8ba75

3 files changed

Lines changed: 22 additions & 10 deletions

File tree

app/src/main/java/com/getcode/view/main/home/DecorView.kt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,32 +119,26 @@ internal fun DecorView(
119119
.padding(horizontal = CodeTheme.dimens.grid.x3)
120120
.align(Alignment.TopEnd),
121121
horizontalAlignment = Alignment.End,
122-
verticalArrangement = Arrangement.spacedBy(CodeTheme.dimens.grid.x6)
122+
verticalArrangement = Arrangement.spacedBy(CodeTheme.dimens.inset)
123123
) {
124124
Image(
125125
modifier = Modifier
126126
.clip(CircleShape)
127127
.unboundedClickable {
128128
onAction(HomeAction.ACCOUNT)
129129
},
130-
painter = painterResource(
131-
R.drawable.ic_home_options
132-
),
130+
painter = painterResource(R.drawable.ic_home_options),
133131
contentDescription = "",
134132
)
135133

136134
if (dataState.gallery.enabled) {
137135
Image(
138136
modifier = Modifier
139-
.size(CodeTheme.dimens.grid.x8)
140-
.border(CodeTheme.dimens.border, Color.White.copy(0.50f), CircleShape)
141137
.clip(CircleShape)
142-
.padding(CodeTheme.dimens.grid.x2)
143138
.unboundedClickable {
144139
onAction(HomeAction.GALLERY)
145140
},
146-
imageVector = Icons.Default.PhotoLibrary,
147-
colorFilter = ColorFilter.tint(Color.White),
141+
painter = painterResource(R.drawable.ic_gallery),
148142
contentDescription = "",
149143
)
150144
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="40dp"
3+
android:height="40dp"
4+
android:viewportWidth="40"
5+
android:viewportHeight="40">
6+
<path
7+
android:strokeWidth="1"
8+
android:pathData="M20,20m-19.5,0a19.5,19.5 0,1 1,39 0a19.5,19.5 0,1 1,-39 0"
9+
android:strokeAlpha="0.2"
10+
android:fillColor="#00000000"
11+
android:strokeColor="#ffffff"/>
12+
<path
13+
android:pathData="M21.875,18.75C22.246,18.75 22.608,18.64 22.917,18.434C23.225,18.228 23.465,17.935 23.607,17.593C23.749,17.25 23.786,16.873 23.714,16.509C23.642,16.146 23.463,15.811 23.201,15.549C22.939,15.287 22.604,15.108 22.241,15.036C21.877,14.964 21.5,15.001 21.157,15.143C20.815,15.285 20.522,15.525 20.316,15.833C20.11,16.142 20,16.504 20,16.875C20,17.372 20.198,17.849 20.549,18.201C20.901,18.552 21.378,18.75 21.875,18.75ZM21.875,16.25C21.999,16.25 22.119,16.287 22.222,16.355C22.325,16.424 22.405,16.522 22.452,16.636C22.5,16.75 22.512,16.876 22.488,16.997C22.464,17.118 22.404,17.229 22.317,17.317C22.229,17.404 22.118,17.464 21.997,17.488C21.876,17.512 21.75,17.5 21.636,17.452C21.522,17.405 21.424,17.325 21.355,17.222C21.287,17.119 21.25,16.999 21.25,16.875C21.25,16.709 21.316,16.55 21.433,16.433C21.55,16.316 21.709,16.25 21.875,16.25Z"
14+
android:fillColor="#ffffff"/>
15+
<path
16+
android:pathData="M26.25,12.5H13.75C13.418,12.5 13.101,12.632 12.866,12.866C12.632,13.101 12.5,13.418 12.5,13.75V26.25C12.5,26.581 12.632,26.899 12.866,27.134C13.101,27.368 13.418,27.5 13.75,27.5H26.25C26.581,27.5 26.899,27.368 27.134,27.134C27.368,26.899 27.5,26.581 27.5,26.25V13.75C27.5,13.418 27.368,13.101 27.134,12.866C26.899,12.632 26.581,12.5 26.25,12.5ZM26.25,26.25H13.75V22.5L16.875,19.375L20.369,22.869C20.603,23.102 20.92,23.232 21.25,23.232C21.58,23.232 21.897,23.102 22.131,22.869L23.125,21.875L26.25,25V26.25ZM26.25,23.231L24.006,20.987C23.772,20.755 23.455,20.624 23.125,20.624C22.795,20.624 22.478,20.755 22.244,20.987L21.25,21.981L17.756,18.487C17.522,18.255 17.205,18.124 16.875,18.124C16.545,18.124 16.228,18.255 15.994,18.487L13.75,20.731V13.75H26.25V23.231Z"
17+
android:fillColor="#ffffff"/>
18+
</vector>

app/src/main/res/drawable/ic_home_options.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<path
77
android:strokeWidth="1"
88
android:pathData="M20,20m-19.5,0a19.5,19.5 0,1 1,39 0a19.5,19.5 0,1 1,-39 0"
9-
android:strokeAlpha="0.5"
9+
android:strokeAlpha="0.2"
1010
android:fillColor="#00000000"
1111
android:strokeColor="#ffffff"/>
1212
<path

0 commit comments

Comments
 (0)