@@ -21,6 +21,7 @@ import android.os.Build
21
21
import androidx.compose.animation.core.LinearEasing
22
22
import androidx.compose.animation.core.animateFloatAsState
23
23
import androidx.compose.animation.core.tween
24
+ import androidx.compose.foundation.Image
24
25
import androidx.compose.foundation.background
25
26
import androidx.compose.foundation.clickable
26
27
import androidx.compose.foundation.layout.Box
@@ -29,9 +30,15 @@ import androidx.compose.foundation.layout.Row
29
30
import androidx.compose.foundation.layout.Spacer
30
31
import androidx.compose.foundation.layout.fillMaxWidth
31
32
import androidx.compose.foundation.layout.height
33
+ import androidx.compose.foundation.layout.padding
32
34
import androidx.compose.foundation.layout.size
33
35
import androidx.compose.foundation.shape.CircleShape
36
+ import androidx.compose.material.icons.Icons
37
+ import androidx.compose.material.icons.automirrored.filled.ArrowForward
38
+ import androidx.compose.material.icons.automirrored.filled.ArrowRight
39
+ import androidx.compose.material.icons.filled.ArrowForward
34
40
import androidx.compose.material3.AlertDialog
41
+ import androidx.compose.material3.Icon
35
42
import androidx.compose.material3.MaterialTheme
36
43
import androidx.compose.material3.Switch
37
44
import androidx.compose.material3.Text
@@ -125,22 +132,25 @@ fun AccentColorPrefDialog(
125
132
126
133
Column (
127
134
horizontalAlignment = Alignment .CenterHorizontally ,
128
- modifier = Modifier .height(250 .dp).alpha(imageAlpha).let {
129
- if (isColorPickerEnabled) {
130
- it
131
- } else {
132
- // disable input
133
- it.pointerInput(Unit ){
134
- awaitPointerEventScope {
135
- while (true ) {
136
- awaitPointerEvent(pass = PointerEventPass .Initial )
137
- .changes
138
- .forEach(PointerInputChange ::consume)
135
+ modifier = Modifier
136
+ .height(250 .dp)
137
+ .alpha(imageAlpha)
138
+ .let {
139
+ if (isColorPickerEnabled) {
140
+ it
141
+ } else {
142
+ // disable input
143
+ it.pointerInput(Unit ) {
144
+ awaitPointerEventScope {
145
+ while (true ) {
146
+ awaitPointerEvent(pass = PointerEventPass .Initial )
147
+ .changes
148
+ .forEach(PointerInputChange ::consume)
149
+ }
139
150
}
140
151
}
141
152
}
142
153
}
143
- }
144
154
) {
145
155
listOf (" R" , " G" , " B" ).forEachIndexed { index, c ->
146
156
val startIndex = index * 2
@@ -169,7 +179,12 @@ fun AccentColorPrefDialog(
169
179
CircleShape
170
180
)
171
181
)
172
- Text (text = " => " , fontSize = 27 .sp)
182
+ Icon (
183
+ modifier = Modifier .padding(horizontal = 10 .dp),
184
+ imageVector = Icons .AutoMirrored .Default .ArrowForward ,
185
+ tint = MaterialTheme .colorScheme.onBackground,
186
+ contentDescription = null
187
+ )
173
188
Box (
174
189
modifier = Modifier
175
190
.size(50 .dp)
0 commit comments