Skip to content

Commit

Permalink
Make text editor scrim overlay less dim
Browse files Browse the repository at this point in the history
  • Loading branch information
aforcier committed Aug 14, 2020
1 parent 385ce38 commit 347bff8
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ class TextEditorDialogFragment : DialogFragment() {

override fun onStart() {
super.onStart()
dialog?.apply {
window?.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
window?.setBackgroundDrawable(ColorDrawable(android.graphics.Color.TRANSPARENT))
window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
dialog?.window?.apply {
setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
setBackgroundDrawable(ColorDrawable(android.graphics.Color.TRANSPARENT))
setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)

attributes = attributes.apply { dimAmount = 0.5f } // The default dimAmount is 0.6
}
}

Expand Down

0 comments on commit 347bff8

Please sign in to comment.