Home
last modified time | relevance | path

Searched refs:colorScheme (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/animation/
DColorSchemeTransitionTest.kt58 @Mock private lateinit var colorScheme: ColorScheme in <lambda>() variable in com.android.systemui.media.controls.ui.animation.ColorSchemeTransitionTest
74 whenever(extractColor.invoke(colorScheme)).thenReturn(TARGET_COLOR) in <lambda>()
106 colorTransition.updateColorScheme(colorScheme) in <lambda>()
115 whenever(extractColor.invoke(colorScheme)).thenReturn(DEFAULT_COLOR) in <lambda>()
116 colorTransition.updateColorScheme(colorScheme) in <lambda>()
126 colorTransition.updateColorScheme(colorScheme) in <lambda>()
138 colorTransition.updateColorScheme(colorScheme) in <lambda>()
150 colorTransition.updateColorScheme(colorScheme) in <lambda>()
159 colorSchemeTransition.updateColorScheme(colorScheme) in <lambda>()
160 verify(mockAnimatingTransition, times(8)).updateColorScheme(colorScheme) in <lambda>()
[all …]
/frameworks/libs/systemui/monet/tests/com/android/systemui/monet/
DColorSchemeTest.kt110 val colorScheme = ColorScheme(sourceColor.toInt(), false, styleValue) in generateThemeStyles() constant
115 colorScheme.accent1, in generateThemeStyles()
116 colorScheme.accent2, in generateThemeStyles()
117 colorScheme.accent3, in generateThemeStyles()
118 colorScheme.neutral1, in generateThemeStyles()
119 colorScheme.neutral2 in generateThemeStyles()
142 val colorScheme = ColorScheme(GOOGLE_BLUE, false) in generateDefaultValues() constant
144 Triple("accent1", "Primary", colorScheme.accent1), in generateDefaultValues()
145 Triple("accent2", "Secondary", colorScheme.accent2), in generateDefaultValues()
146 Triple("accent3", "Tertiary", colorScheme.accent3), in generateDefaultValues()
[all …]
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/chart/
DBarChart.kt122 val colorScheme = MaterialTheme.colorScheme in BarChart() constant
123 val labelTextColor = colorScheme.onSurfaceVariant.toArgb() in BarChart()
171 gridColor = colorScheme.divider.toArgb() in BarChart()
189 colorScheme = colorScheme, in BarChart()
202 colorScheme: ColorScheme in updateBarChartWithData()
212 highLightColor = colorScheme.primary.toArgb() in updateBarChartWithData()
DLineChart.kt134 val colorScheme = MaterialTheme.colorScheme in LineChart() constant
135 val labelTextColor = colorScheme.onSurfaceVariant.toArgb() in LineChart()
162 this.axisRight.gridColor = colorScheme.divider.toArgb() in LineChart()
182 updateLineChartWithData(it, lineChartData, colorScheme, showSmoothLine) in LineChart()
192 colorScheme: ColorScheme, in updateLineChartWithData()
202 ds.colors = arrayListOf(colorScheme.primary.toArgb()) in updateLineChartWithData()
210 ds.fillColor = colorScheme.primary.toArgb() in updateLineChartWithData()
DPieChart.kt101 val colorScheme = MaterialTheme.colorScheme in PieChart() constant
102 val labelTextColor = colorScheme.onSurfaceVariant.toArgb() in PieChart()
124 this.setCenterTextColor(colorScheme.onSurface.toArgb()) in PieChart()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/animation/
DColorSchemeTransition.kt161 { colorScheme: ColorScheme -> in colorScheme() method
167 colorScheme.accent1.s100 in colorScheme()
168 else colorScheme.accent1.s200 in colorScheme()
235 fun updateColorScheme(colorScheme: ColorScheme?): Boolean { in updateColorScheme()
238 val isChanged = it.updateColorScheme(colorScheme) in updateColorScheme()
245 colorScheme?.let { mediaViewHolder.gutsViewHolder.colorScheme = colorScheme } in updateColorScheme()
/frameworks/native/libs/bufferstreams/examples/app/java/com/android/graphics/bufferstreamsdemoapp/ui/
DTheme.kt37 val colorScheme = when { in JetpackTheme() constant
50 window.statusBarColor = colorScheme.primary.toArgb() in JetpackTheme()
56 colorScheme = colorScheme, in JetpackTheme()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
DSettingsTab.kt54 start = MaterialTheme.colorScheme.primaryContainer, in SettingsTab()
55 stop = MaterialTheme.colorScheme.surface, in SettingsTab()
64 start = MaterialTheme.colorScheme.onPrimaryContainer, in SettingsTab()
65 stop = MaterialTheme.colorScheme.onSurface, in SettingsTab()
DHomeScaffold.kt38 .background(color = MaterialTheme.colorScheme.settingsBackground) in HomeScaffold()
45 color = MaterialTheme.colorScheme.onSurface, in HomeScaffold()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/
DText.kt58 color = MaterialTheme.colorScheme.onSurface, in SettingsTitleSmall()
68 color = MaterialTheme.colorScheme.onSurface, in SettingsDialogItem()
81 color = MaterialTheme.colorScheme.onSurface, in SettingsListItem()
97 color = MaterialTheme.colorScheme.onSurfaceVariant, in SettingsBody()
115 color = MaterialTheme.colorScheme.onSurface, in PlaceholderTitle()
DSpinner.kt78 containerColor = MaterialTheme.colorScheme.primaryContainer, in Spinner()
79 contentColor = MaterialTheme.colorScheme.onPrimaryContainer, in Spinner()
89 modifier = Modifier.background(MaterialTheme.colorScheme.secondaryContainer), in Spinner()
97 color = MaterialTheme.colorScheme.onSecondaryContainer, in Spinner()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/ui/compose/
DTile.kt504 background = MaterialTheme.colorScheme.surfaceVariant, in activeTileColors()
505 iconBackground = MaterialTheme.colorScheme.primary, in activeTileColors()
506 label = MaterialTheme.colorScheme.onSurfaceVariant, in activeTileColors()
507 secondaryLabel = MaterialTheme.colorScheme.onSurfaceVariant, in activeTileColors()
508 icon = MaterialTheme.colorScheme.onPrimary, in activeTileColors()
514 background = MaterialTheme.colorScheme.surfaceVariant, in activeTileColors()
515 iconBackground = MaterialTheme.colorScheme.surfaceVariant, in activeTileColors()
516 label = MaterialTheme.colorScheme.onSurfaceVariant, in activeTileColors()
517 secondaryLabel = MaterialTheme.colorScheme.onSurfaceVariant, in activeTileColors()
518 icon = MaterialTheme.colorScheme.onSurfaceVariant, in activeTileColors()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DMaximizeMenu.kt422 val colorScheme = decorThemeUtil.getColorScheme(taskInfo) in calculateMenuStyle() constant
423 val menuBackgroundColor = colorScheme.surfaceContainerLow.toArgb() in calculateMenuStyle()
426 textColor = colorScheme.onSurface.toArgb(), in calculateMenuStyle()
428 drawable = createMaximizeDrawable(menuBackgroundColor, colorScheme) in calculateMenuStyle()
431 inactiveSnapSideColor = colorScheme.outlineVariant.toArgb(), in calculateMenuStyle()
432 semiActiveSnapSideColor = colorScheme.primary.toArgb().withAlpha(OPACITY_40), in calculateMenuStyle()
433 activeSnapSideColor = colorScheme.primary.toArgb(), in calculateMenuStyle()
434 inactiveStrokeColor = colorScheme.outlineVariant.toArgb(), in calculateMenuStyle()
435 activeStrokeColor = colorScheme.primary.toArgb(), in calculateMenuStyle()
437 activeBackgroundColor = colorScheme.primary.toArgb().withAlpha(OPACITY_12) in calculateMenuStyle()
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/keyboard/stickykeys/ui/view/
DStickyKeysIndicator.kt49 val defaultContentColor = MaterialTheme.colorScheme.onSurfaceVariant in <lambda>()
67 color = MaterialTheme.colorScheme.inverseSurface, in StickyKeysIndicator()
89 MaterialTheme.colorScheme.inverseOnSurface in StickyKeyText()
91 MaterialTheme.colorScheme.outlineVariant in StickyKeyText()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/ui/
DHeadlineIcon.kt44 tint = tint ?: MaterialTheme.colorScheme.primary, in HeadlineIcon()
60 tint = MaterialTheme.colorScheme.primary, in HeadlineIcon()
76 tint = MaterialTheme.colorScheme.primary, in HeadlineIcon()
DConfirmButton.kt35 containerColor = MaterialTheme.colorScheme.primary, in ConfirmButton()
36 contentColor = MaterialTheme.colorScheme.onPrimary, in ConfirmButton()
/frameworks/base/packages/SystemUI/src/com/android/systemui/touchpad/tutorial/ui/view/
DTutorialSelectionScreen.kt51 color = MaterialTheme.colorScheme.surfaceContainer, in TutorialSelectionScreen()
83 color = MaterialTheme.colorScheme.primary, in TutorialSelectionButtons()
89 color = MaterialTheme.colorScheme.secondary, in TutorialSelectionButtons()
95 color = MaterialTheme.colorScheme.tertiary, in TutorialSelectionButtons()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/
DPinBouncer.kt161 backgroundColor = MaterialTheme.colorScheme.surfaceVariant, in DigitButton()
162 foregroundColor = MaterialTheme.colorScheme.onSurfaceVariant, in DigitButton()
195 ActionButtonAppearance.Shown -> MaterialTheme.colorScheme.onSecondaryContainer in ActionButton()
196 else -> MaterialTheme.colorScheme.onSurface in ActionButton()
200 ActionButtonAppearance.Shown -> MaterialTheme.colorScheme.secondaryContainer in ActionButton()
201 else -> MaterialTheme.colorScheme.surface in ActionButton()
268 isAnimationEnabled && isPressed -> MaterialTheme.colorScheme.primary in PinPadButton()
277 isAnimationEnabled && isPressed -> MaterialTheme.colorScheme.onPrimary in PinPadButton()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/theme/
DSettingsTheme.kt33 colorScheme = materialColorScheme(isDarkTheme), in SettingsTheme()
37 LocalContentColor provides MaterialTheme.colorScheme.onSurface, in SettingsTheme()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/
DButtonComponent.kt87 MaterialTheme.colorScheme.tertiaryContainer in Content()
89 MaterialTheme.colorScheme.surface in Content()
94 MaterialTheme.colorScheme.onTertiaryContainer in Content()
96 MaterialTheme.colorScheme.onSurface in Content()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/button/
DActionButtons.kt91 containerColor = MaterialTheme.colorScheme.surface, in ActionButton()
92 contentColor = MaterialTheme.colorScheme.primary, in ActionButton()
93 disabledContainerColor = MaterialTheme.colorScheme.surface, in ActionButton()
124 .background(color = MaterialTheme.colorScheme.divider) in ButtonDivider()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/
DPlatformSlider.kt460 trackColor = MaterialTheme.colorScheme.secondaryContainer, in defaultPlatformSliderColors()
461 indicatorColor = MaterialTheme.colorScheme.primary, in defaultPlatformSliderColors()
462 iconColor = MaterialTheme.colorScheme.onPrimary, in defaultPlatformSliderColors()
463 labelColorOnIndicator = MaterialTheme.colorScheme.onPrimary, in defaultPlatformSliderColors()
464 labelColorOnTrack = MaterialTheme.colorScheme.onSecondaryContainer, in defaultPlatformSliderColors()
465 disabledTrackColor = MaterialTheme.colorScheme.surfaceContainerHighest, in defaultPlatformSliderColors()
466 disabledIndicatorColor = MaterialTheme.colorScheme.surfaceContainerHighest, in defaultPlatformSliderColors()
467 disabledIconColor = MaterialTheme.colorScheme.outline, in defaultPlatformSliderColors()
468 disabledLabelColor = MaterialTheme.colorScheme.onSurfaceVariant, in defaultPlatformSliderColors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DGutsViewHolder.kt47 var colorScheme: ColorScheme? = null variable
64 colorScheme?.let { setColors(it) } in setDismissible()
69 colorScheme = scheme in setColors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/shortcut/ui/composable/
DShortcutHelper.kt171 color = MaterialTheme.colorScheme.surfaceBright, in CategoryItemSinglePane()
206 color = MaterialTheme.colorScheme.surfaceContainerHigh, in RotatingExpandCollapseIcon()
217 tint = MaterialTheme.colorScheme.onSurface in RotatingExpandCollapseIcon()
290 color = MaterialTheme.colorScheme.surfaceBright in SubCategoryContainerDualPane()
310 color = MaterialTheme.colorScheme.primary, in SubCategoryTitle()
367 color = MaterialTheme.colorScheme.surfaceContainer, in ShortcutKeyContainer()
414 color = MaterialTheme.colorScheme.onSurface, in ShortcutDescriptionText()
497 color = MaterialTheme.colorScheme.onSurface, in TitleBar()
510 colors = SearchBarDefaults.colors(containerColor = MaterialTheme.colorScheme.surfaceBright), in ShortcutsSearchBar()
536 color = MaterialTheme.colorScheme.onSurfaceVariant, in KeyboardSettings()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/util/
DMediaArtworkHelper.kt88 colorScheme: ColorScheme, in <lambda>()
94 getColorWithAlpha(backgroundStartFromScheme(colorScheme), startAlpha), in <lambda>()
95 getColorWithAlpha(backgroundEndFromScheme(colorScheme), endAlpha) in <lambda>()

1234