pull/600/head
Jeff Boek 4 years ago
parent 3ee43c330a
commit d1c4255c77

@ -1,4 +1,4 @@
/* This Source Code Form is subject to the terms of the Mozilla Public /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

@ -5,9 +5,12 @@
package org.mozilla.fenix.tabtray package org.mozilla.fenix.tabtray
import android.content.Context import android.content.Context
import android.graphics.drawable.ColorDrawable
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import androidx.cardview.widget.CardView
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible import androidx.core.view.isVisible
import com.google.android.material.bottomsheet.BottomSheetBehavior import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.google.android.material.tabs.TabLayout import com.google.android.material.tabs.TabLayout
@ -143,6 +146,12 @@ class TabTrayView(
tabTrayItemMenu.menuBuilder tabTrayItemMenu.menuBuilder
.build(view.context) .build(view.context)
.show(anchor = it) .show(anchor = it)
.also { pu ->
(pu.contentView as? CardView)?.setCardBackgroundColor(ContextCompat.getColor(
view.context,
R.color.foundation_normal_theme
))
}
} }
fabView.new_tab_button.setOnClickListener { fabView.new_tab_button.setOnClickListener {

Loading…
Cancel
Save