mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
Bug 1820897 - Disable the private theme from being used in the Composified Tabs Tray
This commit is contained in:
parent
f884503a34
commit
9b1f3bdd97
@ -27,7 +27,6 @@ import mozilla.components.lib.state.ext.observeAsComposableState
|
|||||||
import org.mozilla.fenix.compose.Divider
|
import org.mozilla.fenix.compose.Divider
|
||||||
import org.mozilla.fenix.compose.annotation.LightDarkPreview
|
import org.mozilla.fenix.compose.annotation.LightDarkPreview
|
||||||
import org.mozilla.fenix.theme.FirefoxTheme
|
import org.mozilla.fenix.theme.FirefoxTheme
|
||||||
import org.mozilla.fenix.theme.Theme
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Top-level UI for displaying the Tabs Tray feature.
|
* Top-level UI for displaying the Tabs Tray feature.
|
||||||
@ -76,16 +75,14 @@ fun TabsTray(
|
|||||||
) { position ->
|
) { position ->
|
||||||
when (Page.positionToPage(position)) {
|
when (Page.positionToPage(position)) {
|
||||||
Page.NormalTabs -> {
|
Page.NormalTabs -> {
|
||||||
FirefoxTheme(theme = Theme.getTheme(allowPrivateTheme = false)) {
|
if (displayTabsInGrid) {
|
||||||
if (displayTabsInGrid) {
|
TabGrid(
|
||||||
TabGrid(
|
tabs = normalTabs,
|
||||||
tabs = normalTabs,
|
)
|
||||||
)
|
} else {
|
||||||
} else {
|
TabList(
|
||||||
TabList(
|
tabs = normalTabs,
|
||||||
tabs = normalTabs,
|
)
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Page.PrivateTabs -> {
|
Page.PrivateTabs -> {
|
||||||
|
@ -61,6 +61,7 @@ import org.mozilla.fenix.tabstray.ext.make
|
|||||||
import org.mozilla.fenix.tabstray.ext.showWithTheme
|
import org.mozilla.fenix.tabstray.ext.showWithTheme
|
||||||
import org.mozilla.fenix.tabstray.syncedtabs.SyncedTabsIntegration
|
import org.mozilla.fenix.tabstray.syncedtabs.SyncedTabsIntegration
|
||||||
import org.mozilla.fenix.theme.FirefoxTheme
|
import org.mozilla.fenix.theme.FirefoxTheme
|
||||||
|
import org.mozilla.fenix.theme.Theme
|
||||||
import org.mozilla.fenix.theme.ThemeManager
|
import org.mozilla.fenix.theme.ThemeManager
|
||||||
import org.mozilla.fenix.utils.allowUndo
|
import org.mozilla.fenix.utils.allowUndo
|
||||||
import kotlin.math.max
|
import kotlin.math.max
|
||||||
@ -205,7 +206,7 @@ class TabsTrayFragment : AppCompatDialogFragment() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
tabsTrayComposeBinding.root.setContent {
|
tabsTrayComposeBinding.root.setContent {
|
||||||
FirefoxTheme {
|
FirefoxTheme(theme = Theme.getTheme(allowPrivateTheme = false)) {
|
||||||
TabsTray(
|
TabsTray(
|
||||||
tabsTrayStore = tabsTrayStore,
|
tabsTrayStore = tabsTrayStore,
|
||||||
displayTabsInGrid = requireContext().settings().gridTabView,
|
displayTabsInGrid = requireContext().settings().gridTabView,
|
||||||
|
Loading…
Reference in New Issue
Block a user