Made Navigation Bar transparent and added some MD3 themes
This commit is contained in:
parent
9f17bf6378
commit
3722347305
29 changed files with 76 additions and 127 deletions
|
@ -29,6 +29,7 @@ import androidx.fragment.app.Fragment
|
|||
import androidx.fragment.app.FragmentManager
|
||||
import androidx.navigation.fragment.NavHostFragment
|
||||
import code.name.monkey.retromusic.util.PreferenceUtil
|
||||
import com.google.android.material.appbar.MaterialToolbar
|
||||
|
||||
fun Fragment.getIntRes(@IntegerRes int: Int): Int {
|
||||
return resources.getInteger(int)
|
||||
|
@ -97,3 +98,7 @@ fun Context.getDrawableCompat(@DrawableRes drawableRes: Int): Drawable {
|
|||
fun Fragment.getDrawableCompat(@DrawableRes drawableRes: Int): Drawable {
|
||||
return AppCompatResources.getDrawable(requireContext(), drawableRes)!!
|
||||
}
|
||||
|
||||
fun Fragment.applyToolbar(toolbar: MaterialToolbar) {
|
||||
(requireActivity() as AppCompatActivity).applyToolbar(toolbar)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue