mirror of https://github.com/NekoX-Dev/NekoX.git
35 lines
792 B
Java
35 lines
792 B
Java
package org.telegram.ui.ActionBar;
|
|
|
|
import android.content.Context;
|
|
|
|
public class DarkAlertDialog extends AlertDialog {
|
|
|
|
public DarkAlertDialog(Context context, int progressStyle) {
|
|
super(context, progressStyle);
|
|
}
|
|
|
|
@Override
|
|
protected int getThemedColor(String key) {
|
|
switch (key) {
|
|
case Theme.key_dialogBackground:
|
|
return 0xFF262626;
|
|
case Theme.key_dialogTextBlack:
|
|
case Theme.key_dialogButton:
|
|
case Theme.key_dialogScrollGlow:
|
|
return 0xFFFFFFFF;
|
|
}
|
|
return super.getThemedColor(key);
|
|
}
|
|
|
|
public static class Builder extends AlertDialog.Builder {
|
|
|
|
public Builder(Context context) {
|
|
super(new DarkAlertDialog(context, 0));
|
|
}
|
|
|
|
public Builder(Context context, int progressViewStyle) {
|
|
super(new DarkAlertDialog(context, progressViewStyle));
|
|
}
|
|
}
|
|
}
|