Skip to content

Commit bbd724a

Browse files
committed
chore(android): getRippleColor fix
1 parent 6a5bdc8 commit bbd724a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/index.android.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ export const themer = new Themer();
197197

198198
export function install() {}
199199

200-
export function getRippleColor(color: string | Color, alpha = 61.5) {
200+
export function getRippleColor(color: string | Color, alpha = 0) {
201201
if (color) {
202202
const temp = color instanceof Color ? color : new Color(color);
203-
if (temp.a !== 255) {
203+
if (temp.a !== 255 && alpha === 0) {
204204
return temp.android;
205205
}
206-
return temp.setAlpha(alpha).android;
206+
return temp.setAlpha(alpha || 61.5).android;
207207
}
208208
return null;
209209
}

0 commit comments

Comments
 (0)