capacitor-extended-dialog 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -297,10 +297,10 @@ public class FullScreenDialogFragment extends DialogFragment {
|
|
|
297
297
|
|
|
298
298
|
// Cancel button (not shown for ALERT type)
|
|
299
299
|
if (type != DialogType.ALERT) {
|
|
300
|
-
MaterialButton cancelBtn = new MaterialButton(
|
|
301
|
-
new ContextThemeWrapper(ctx, com.google.android.material.R.style.Widget_Material3_Button_TextButton),
|
|
302
|
-
null, 0);
|
|
300
|
+
MaterialButton cancelBtn = new MaterialButton(ctx, null, android.R.attr.borderlessButtonStyle);
|
|
303
301
|
cancelBtn.setText(cancelButton);
|
|
302
|
+
cancelBtn.setBackgroundTintList(ColorStateList.valueOf(android.graphics.Color.TRANSPARENT));
|
|
303
|
+
cancelBtn.setRippleColor(ColorStateList.valueOf(primaryColorValue & 0x1FFFFFFF));
|
|
304
304
|
cancelBtn.setOnClickListener((v) -> {
|
|
305
305
|
handleCancel();
|
|
306
306
|
dismiss();
|
|
@@ -317,10 +317,10 @@ public class FullScreenDialogFragment extends DialogFragment {
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
// OK button
|
|
320
|
-
okBtn = new MaterialButton(
|
|
321
|
-
new ContextThemeWrapper(ctx, com.google.android.material.R.style.Widget_Material3_Button_TextButton),
|
|
322
|
-
null, 0);
|
|
320
|
+
okBtn = new MaterialButton(ctx, null, android.R.attr.borderlessButtonStyle);
|
|
323
321
|
okBtn.setText(okButton);
|
|
322
|
+
okBtn.setBackgroundTintList(ColorStateList.valueOf(android.graphics.Color.TRANSPARENT));
|
|
323
|
+
okBtn.setRippleColor(ColorStateList.valueOf(primaryColorValue & 0x1FFFFFFF));
|
|
324
324
|
okBtn.setOnClickListener((v) -> {
|
|
325
325
|
handleConfirm(type);
|
|
326
326
|
dismiss();
|
|
@@ -250,15 +250,15 @@ public class SheetBottomDialogFragment extends BottomSheetDialogFragment {
|
|
|
250
250
|
confirmBtn.setLayoutParams(confirmParams);
|
|
251
251
|
buttonContainer.addView(confirmBtn);
|
|
252
252
|
|
|
253
|
-
// Cancel button
|
|
254
|
-
MaterialButton cancelBtn = new MaterialButton(
|
|
255
|
-
new ContextThemeWrapper(ctx, com.google.android.material.R.style.Widget_Material3_Button_TextButton),
|
|
256
|
-
null, 0);
|
|
253
|
+
// Cancel button (text-only style, no background fill)
|
|
254
|
+
MaterialButton cancelBtn = new MaterialButton(ctx, null, android.R.attr.borderlessButtonStyle);
|
|
257
255
|
cancelBtn.setText(cancelButton);
|
|
258
256
|
cancelBtn.setOnClickListener(v -> {
|
|
259
257
|
handleCancel();
|
|
260
258
|
dismiss();
|
|
261
259
|
});
|
|
260
|
+
cancelBtn.setBackgroundTintList(ColorStateList.valueOf(android.graphics.Color.TRANSPARENT));
|
|
261
|
+
cancelBtn.setRippleColor(ColorStateList.valueOf(MaterialColors.getColor(ctx, com.google.android.material.R.attr.colorPrimary, 0xFF6750A4) & 0x1FFFFFFF));
|
|
262
262
|
if (styleOptions.getCancelButtonColor() != null) {
|
|
263
263
|
cancelBtn.setTextColor(ColorStateList.valueOf(styleOptions.getCancelButtonColor()));
|
|
264
264
|
} else {
|
package/package.json
CHANGED