|
|
@ -37,8 +37,8 @@ class ReadStyleDialog : DialogFragment(), FontSelectDialog.CallBack { |
|
|
|
it.windowManager?.defaultDisplay?.getMetrics(dm) |
|
|
|
it.windowManager?.defaultDisplay?.getMetrics(dm) |
|
|
|
} |
|
|
|
} |
|
|
|
dialog?.window?.let { |
|
|
|
dialog?.window?.let { |
|
|
|
it.setBackgroundDrawableResource(R.color.transparent) |
|
|
|
it.setBackgroundDrawableResource(R.color.background) |
|
|
|
it.decorView.setPadding(0, 0, 0, 0) |
|
|
|
it.decorView.setPadding(0, 5, 0, 0) |
|
|
|
val attr = it.attributes |
|
|
|
val attr = it.attributes |
|
|
|
attr.dimAmount = 0.0f |
|
|
|
attr.dimAmount = 0.0f |
|
|
|
attr.gravity = Gravity.BOTTOM |
|
|
|
attr.gravity = Gravity.BOTTOM |
|
|
|