Revision 0a9adc31
Added by Leszek Koltunski about 2 months ago
src/main/java/org/distorted/dialogs/RubikDialogAbstract.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
import android.app.Dialog; |
13 | 13 |
import android.content.DialogInterface; |
14 |
import android.content.res.ColorStateList; |
|
15 |
import android.graphics.Color; |
|
16 |
import android.graphics.drawable.ColorDrawable; |
|
14 | 17 |
import android.os.Bundle; |
15 | 18 |
import android.util.DisplayMetrics; |
16 | 19 |
import android.util.TypedValue; |
... | ... | |
25 | 28 |
import androidx.appcompat.app.AppCompatDialogFragment; |
26 | 29 |
import androidx.fragment.app.FragmentActivity; |
27 | 30 |
|
31 |
import org.distorted.helpers.BaseActivity; |
|
28 | 32 |
import org.distorted.main.MainActivity; |
29 | 33 |
import org.distorted.main.R; |
30 | 34 |
|
... | ... | |
147 | 151 |
|
148 | 152 |
if( window!=null ) |
149 | 153 |
{ |
154 |
BaseActivity bact = (BaseActivity) act; |
|
155 |
int m = bact.getMediumColor(); |
|
156 |
window.setBackgroundDrawableResource(m); |
|
150 | 157 |
window.getDecorView().setSystemUiVisibility(MainActivity.FLAGS); |
151 | 158 |
} |
152 | 159 |
|
Also available in: Unified diff
Themes almost finished.