| FirefoxTheme.kt |
The theme for Mozilla Firefox for Android (Fenix).
@param theme The current [Theme] that is displayed.
@param content The children composables to be laid out.
|
3806 |
- |
| PreviewThemeProvider.kt |
This class can be used in compose previews to generate previews for each theme type.
Example:
```
@Preview
@Composable
private fun PreviewText(
@PreviewParameter(PreviewThemeProvider::class) theme: Theme,
) = FirefoxTheme(theme) {
Surface {
Text("hello")
}
}
```
|
3644 |
- |
| StatusBarColorManager.kt |
Uses the [ThemeManager] to set the status bar color based on the current fragment.
@param themeManager The [ThemeManager] to use for setting the status bar color.
@param activity The [Activity] to set the status bar color on.
@param appStore The [AppStore] used to observe the wallpaper state.
@param settings The [Settings] used to read whether the tab strip is enabled.
@param tabStripStatusBarView View class that sets the status bar background with the tab strip gradient when the tab
strip is visible.
@param mainDispatcher The [CoroutineDispatcher] used to observe wallpaper changes.
|
5017 |
- |
| TabGroupColors.kt |
Represents the complete palette of colors available for tab groups. |
7110 |
- |
| TabStripStatusBarView.kt |
View class that sets the status bar background with the tab strip gradient by overlaying a [ComposeView] on the given
[rootView].
@param rootView The [ViewGroup] container to embed the gradient overlay. This should be the window's decor view.
@param lifecycle The [Lifecycle] of the activity hosting [rootView].
|
2951 |
- |
| Theme.kt |
Enum class representing the current [Theme] that is displayed. |
364 |
- |
| ThemeManager.kt |
Returns the style resource corresponding to the [currentTheme]. |
5890 |
- |
| ThemeProvider.kt |
Abstraction for providing the current [Theme] that is to be displayed. |
1310 |
- |