Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 36bd1cb2f6c947b48d8476913b6f6d931418f770
Author: Zak Cohen <zakcohen@google.com>
Date: Thu May 19 14:34:33 2022
Adds notion of ColorProviders class for colors in Glance.
Adds a Material 3 inspired ColorProviders class.
This CL makes use of it with an implementation of dynamic coloring,
initially used only internally for templates, but will be expanded once
themeing is more fleshed out.
This is part of a bigger effort for full themeing.
The color values need to be in their own files, rather than using the
material 3 theme directly, as the color res ids are resolved in the app
process, not the launcher process.
The binding for day / night needs to happen when launcher switches, not
when the Glance is made.
Bug: 237012816
Test: TemplateTests
RelNote: Adds a ColorProviders class that can be used as part of themes for Glance.
Change-Id: I848b91655b34e5542551e9c581bc72097229f92c
A glance/glance/src/androidMain/res/values/colors.xml
M glance/glance-appwidget/build.gradle
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/template/GlanceAppWidgetTemplates.kt
M glance/glance/src/androidMain/kotlin/androidx/glance/template/CompositionLocals.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/template/SingleEntityTemplateLayouts.kt
A glance/glance/src/androidMain/kotlin/androidx/glance/color/ColorProviders.kt
A glance/glance/src/androidMain/res/values-v31/colors.xml
M glance/glance/api/current.txt
M glance/glance/api/public_plus_experimental_current.txt
M glance/glance/api/restricted_current.txt
A glance/glance/src/androidMain/res/values-night-v31/colors.xml
A glance/glance/src/androidMain/res/values-night/colors.xml
M glance/glance/build.gradle
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/template/GlanceTemplateAppWidget.kt
M glance/glance-wear-tiles/src/test/kotlin/androidx/glance/wear/tiles/GlanceTileServiceTest.kt
https://android-review.googlesource.com/2112724
Branch: androidx-main
commit 36bd1cb2f6c947b48d8476913b6f6d931418f770
Author: Zak Cohen <zakcohen@google.com>
Date: Thu May 19 14:34:33 2022
Adds notion of ColorProviders class for colors in Glance.
Adds a Material 3 inspired ColorProviders class.
This CL makes use of it with an implementation of dynamic coloring,
initially used only internally for templates, but will be expanded once
themeing is more fleshed out.
This is part of a bigger effort for full themeing.
The color values need to be in their own files, rather than using the
material 3 theme directly, as the color res ids are resolved in the app
process, not the launcher process.
The binding for day / night needs to happen when launcher switches, not
when the Glance is made.
Bug: 237012816
Test: TemplateTests
RelNote: Adds a ColorProviders class that can be used as part of themes for Glance.
Change-Id: I848b91655b34e5542551e9c581bc72097229f92c
A glance/glance/src/androidMain/res/values/colors.xml
M glance/glance-appwidget/build.gradle
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/template/GlanceAppWidgetTemplates.kt
M glance/glance/src/androidMain/kotlin/androidx/glance/template/CompositionLocals.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/template/SingleEntityTemplateLayouts.kt
A glance/glance/src/androidMain/kotlin/androidx/glance/color/ColorProviders.kt
A glance/glance/src/androidMain/res/values-v31/colors.xml
M glance/glance/api/current.txt
M glance/glance/api/public_plus_experimental_current.txt
M glance/glance/api/restricted_current.txt
A glance/glance/src/androidMain/res/values-night-v31/colors.xml
A glance/glance/src/androidMain/res/values-night/colors.xml
M glance/glance/build.gradle
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/template/GlanceTemplateAppWidget.kt
M glance/glance-wear-tiles/src/test/kotlin/androidx/glance/wear/tiles/GlanceTileServiceTest.kt
za...@google.com <za...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit 940388711a71240951ecf98041591fc7a89d8b59
Author: brenton.bade <bbade@google.com>
Date: Tue Sep 27 21:17:12 2022
[glance] Make DynamicThemeColorProviders an object
Bug: 237012816
Test: automated builds
Relnote: "Making dynamic theme ColorProviders its own object. Making
ResourceColorProvider internal to the module."
Change-Id: Id0e2db07ff278b7e4e64b23f8870b1ab6ea80391
M glance/glance/src/androidMain/kotlin/androidx/glance/color/ColorProviders.kt
M glance/glance/api/current.txt
M glance/glance/api/public_plus_experimental_current.txt
M glance/glance/api/restricted_current.txt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/template/GlanceTemplateAppWidget.kt
M glance/glance/src/test/kotlin/androidx/glance/color/ColorProvidersTest.kt
https://android-review.googlesource.com/2237333
Branch: androidx-main
commit 940388711a71240951ecf98041591fc7a89d8b59
Author: brenton.bade <bbade@google.com>
Date: Tue Sep 27 21:17:12 2022
[glance] Make DynamicThemeColorProviders an object
Bug: 237012816
Test: automated builds
Relnote: "Making dynamic theme ColorProviders its own object. Making
ResourceColorProvider internal to the module."
Change-Id: Id0e2db07ff278b7e4e64b23f8870b1ab6ea80391
M glance/glance/src/androidMain/kotlin/androidx/glance/color/ColorProviders.kt
M glance/glance/api/current.txt
M glance/glance/api/public_plus_experimental_current.txt
M glance/glance/api/restricted_current.txt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/template/GlanceTemplateAppWidget.kt
M glance/glance/src/test/kotlin/androidx/glance/color/ColorProvidersTest.kt
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
commit 39e8db05f0dd2f0fab705171abf8bf440ef69ec9
Author: brenton.bade <bbade@google.com>
Date: Wed Oct 05 00:40:17 2022
[glance] Set default text style to black.
Bug: 237012816
Test: presubmits
Relnote: Default text color to black. remove nullability
Change-Id: I3072ce2d5d6fcf98a6323e5d7f018bbf6bbac27e
M glance/glance-appwidget/src/androidAndroidTest/kotlin/androidx/glance/appwidget/GlanceAppWidgetReceiverScreenshotTest.kt
M glance/glance-appwidget/src/androidAndroidTest/kotlin/androidx/glance/appwidget/GlanceAppWidgetReceiverTest.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/translators/TextTranslator.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/GlanceAppWidgetTest.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/GlanceRemoteViewsTest.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/RemoteViewsTranslatorKtTest.kt
M glance/glance-wear-tiles/src/androidAndroidTest/kotlin/androidx/glance/wear/tiles/ScreenshotTests.kt
M glance/glance-wear-tiles/src/androidMain/kotlin/androidx/glance/wear/tiles/WearCompositionTranslator.kt
M glance/glance/api/current.txt
M glance/glance/api/public_plus_experimental_current.txt
M glance/glance/api/restricted_current.txt
M glance/glance/src/androidMain/kotlin/androidx/glance/text/Text.kt
M glance/glance/src/androidMain/kotlin/androidx/glance/text/TextStyle.kt
https://android-review.googlesource.com/2238002
Branch: androidx-main
commit 39e8db05f0dd2f0fab705171abf8bf440ef69ec9
Author: brenton.bade <bbade@google.com>
Date: Wed Oct 05 00:40:17 2022
[glance] Set default text style to black.
Bug: 237012816
Test: presubmits
Relnote: Default text color to black. remove nullability
Change-Id: I3072ce2d5d6fcf98a6323e5d7f018bbf6bbac27e
M glance/glance-appwidget/src/androidAndroidTest/kotlin/androidx/glance/appwidget/GlanceAppWidgetReceiverScreenshotTest.kt
M glance/glance-appwidget/src/androidAndroidTest/kotlin/androidx/glance/appwidget/GlanceAppWidgetReceiverTest.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/translators/TextTranslator.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/GlanceAppWidgetTest.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/GlanceRemoteViewsTest.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/RemoteViewsTranslatorKtTest.kt
M glance/glance-wear-tiles/src/androidAndroidTest/kotlin/androidx/glance/wear/tiles/ScreenshotTests.kt
M glance/glance-wear-tiles/src/androidMain/kotlin/androidx/glance/wear/tiles/WearCompositionTranslator.kt
M glance/glance/api/current.txt
M glance/glance/api/public_plus_experimental_current.txt
M glance/glance/api/restricted_current.txt
M glance/glance/src/androidMain/kotlin/androidx/glance/text/Text.kt
M glance/glance/src/androidMain/kotlin/androidx/glance/text/TextStyle.kt
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support-golden
Branch: androidx-main
commit ed3f23bc5d5080a1cd1cc1e836b9919693734be7
Author: brenton.bade <bbade@google.com>
Date: Wed Sep 07 22:31:57 2022
Fix golden screenshot to match new default text style (black)
Bug: 237012816
Test: Presubmits
Change-Id: I87b2ae333ee1a25edb354e17adf68fba75e9f87d
M glance/glance-appwidget/alignment_cuttlefish.png
M glance/glance-appwidget/backgroundColor_cuttlefish.png
M glance/glance-appwidget/button_text_align_cuttlefish.png
M glance/glance-appwidget/fixed_top_level_size_cuttlefish.png
M glance/glance-appwidget/rowWidget_cuttlefish.png
M glance/glance-appwidget/rowWidget_rtl_cuttlefish.png
M glance/glance-appwidget/simpleAppWidget_cuttlefish.png
M glance/glance-appwidget/textAlignment_cuttlefish.png
M glance/glance-appwidget/textAlignment_rtl_cuttlefish.png
M glance/glance-appwidget/wrap_top_level_size_cuttlefish.png
https://android-review.googlesource.com/2210158
Branch: androidx-main
commit ed3f23bc5d5080a1cd1cc1e836b9919693734be7
Author: brenton.bade <bbade@google.com>
Date: Wed Sep 07 22:31:57 2022
Fix golden screenshot to match new default text style (black)
Bug: 237012816
Test: Presubmits
Change-Id: I87b2ae333ee1a25edb354e17adf68fba75e9f87d
M glance/glance-appwidget/alignment_cuttlefish.png
M glance/glance-appwidget/backgroundColor_cuttlefish.png
M glance/glance-appwidget/button_text_align_cuttlefish.png
M glance/glance-appwidget/fixed_top_level_size_cuttlefish.png
M glance/glance-appwidget/rowWidget_cuttlefish.png
M glance/glance-appwidget/rowWidget_rtl_cuttlefish.png
M glance/glance-appwidget/simpleAppWidget_cuttlefish.png
M glance/glance-appwidget/textAlignment_cuttlefish.png
M glance/glance-appwidget/textAlignment_rtl_cuttlefish.png
M glance/glance-appwidget/wrap_top_level_size_cuttlefish.png
ap...@google.com <ap...@google.com> #6
Project: platform/frameworks/support
Branch: androidx-main
commit 34dfad0e5d373ac078f09982ccab00d4a313b8ba
Author: brenton.bade <bbade@google.com>
Date: Fri Sep 02 20:34:06 2022
[Glance Theme pt2] Apply glance theme to compound buttons
Test: Done manually on the final CL of this stack
Relnote: Apis related to color have changed.
Change-Id: I081aa7ffe1955570935fe04621b0ccad0a33fa95
Bug: 237012816
M glance/glance-appwidget/api/current.txt
M glance/glance-appwidget/api/public_plus_experimental_current.txt
M glance/glance-appwidget/api/restricted_current.txt
M glance/glance-appwidget/integration-tests/demos/src/main/java/androidx/glance/appwidget/demos/CompoundButtonAppWidget.kt
M glance/glance-appwidget/src/androidAndroidTest/kotlin/androidx/glance/appwidget/GlanceAppWidgetReceiverScreenshotTest.kt
M glance/glance-appwidget/src/androidAndroidTest/kotlin/androidx/glance/appwidget/GlanceAppWidgetReceiverTest.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/CheckBox.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/RadioButton.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/Switch.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/translators/CheckBoxTranslator.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/translators/CompoundButtonTranslator.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/translators/RadioButtonTranslator.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/translators/SwitchTranslator.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/unit/ColorProvider.kt
M glance/glance-appwidget/src/androidMain/res/color/glance_default_check_box.xml
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/translators/CheckBoxTranslatorTest.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/translators/CompoundButtonTranslatorTest.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/translators/RadioButtonTranslatorTest.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/translators/SwitchTranslatorTest.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/unit/ColorProviderTest.kt
https://android-review.googlesource.com/2205840
Branch: androidx-main
commit 34dfad0e5d373ac078f09982ccab00d4a313b8ba
Author: brenton.bade <bbade@google.com>
Date: Fri Sep 02 20:34:06 2022
[Glance Theme pt2] Apply glance theme to compound buttons
Test: Done manually on the final CL of this stack
Relnote: Apis related to color have changed.
Change-Id: I081aa7ffe1955570935fe04621b0ccad0a33fa95
Bug: 237012816
M glance/glance-appwidget/api/current.txt
M glance/glance-appwidget/api/public_plus_experimental_current.txt
M glance/glance-appwidget/api/restricted_current.txt
M glance/glance-appwidget/integration-tests/demos/src/main/java/androidx/glance/appwidget/demos/CompoundButtonAppWidget.kt
M glance/glance-appwidget/src/androidAndroidTest/kotlin/androidx/glance/appwidget/GlanceAppWidgetReceiverScreenshotTest.kt
M glance/glance-appwidget/src/androidAndroidTest/kotlin/androidx/glance/appwidget/GlanceAppWidgetReceiverTest.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/CheckBox.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/RadioButton.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/Switch.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/translators/CheckBoxTranslator.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/translators/CompoundButtonTranslator.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/translators/RadioButtonTranslator.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/translators/SwitchTranslator.kt
M glance/glance-appwidget/src/androidMain/kotlin/androidx/glance/appwidget/unit/ColorProvider.kt
M glance/glance-appwidget/src/androidMain/res/color/glance_default_check_box.xml
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/translators/CheckBoxTranslatorTest.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/translators/CompoundButtonTranslatorTest.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/translators/RadioButtonTranslatorTest.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/translators/SwitchTranslatorTest.kt
M glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/unit/ColorProviderTest.kt
ap...@google.com <ap...@google.com> #7
Project: platform/frameworks/support
Branch: androidx-main
commit 2ac7e5f0d51f48ea267ec93e099c947869e7b98b
Author: brenton.bade <bbade@google.com>
Date: Fri Sep 02 20:28:10 2022
[Glance Theme pt1] Add GlanceTheme and read its attributes in Button & Text
Bug: 237012816
Test: Manually ran all code in the stack, verified that the widget
closely matches a comparable layout in compose
Relnote: Removed nullability from Text(style: TextStyle)
Change-Id: I7123b0342ac50051847f3b88de905839593ad5db
M glance/glance-appwidget/src/androidAndroidTest/kotlin/androidx/glance/appwidget/GlanceAppWidgetReceiverTest.kt
M glance/glance/api/current.txt
M glance/glance/api/public_plus_experimental_current.txt
M glance/glance/api/restricted_current.txt
M glance/glance/src/androidMain/kotlin/androidx/glance/Button.kt
M glance/glance/src/androidMain/kotlin/androidx/glance/CompositionLocals.kt
A glance/glance/src/androidMain/kotlin/androidx/glance/GlanceTheme.kt
https://android-review.googlesource.com/2205839
Branch: androidx-main
commit 2ac7e5f0d51f48ea267ec93e099c947869e7b98b
Author: brenton.bade <bbade@google.com>
Date: Fri Sep 02 20:28:10 2022
[Glance Theme pt1] Add GlanceTheme and read its attributes in Button & Text
Bug: 237012816
Test: Manually ran all code in the stack, verified that the widget
closely matches a comparable layout in compose
Relnote: Removed nullability from Text(style: TextStyle)
Change-Id: I7123b0342ac50051847f3b88de905839593ad5db
M glance/glance-appwidget/src/androidAndroidTest/kotlin/androidx/glance/appwidget/GlanceAppWidgetReceiverTest.kt
M glance/glance/api/current.txt
M glance/glance/api/public_plus_experimental_current.txt
M glance/glance/api/restricted_current.txt
M glance/glance/src/androidMain/kotlin/androidx/glance/Button.kt
M glance/glance/src/androidMain/kotlin/androidx/glance/CompositionLocals.kt
A glance/glance/src/androidMain/kotlin/androidx/glance/GlanceTheme.kt
ap...@google.com <ap...@google.com> #8
Project: platform/frameworks/support
Branch: androidx-main
commit 266e2ab15aece3b893a1557da22579f44f7fb1ff
Author: brenton.bade <bbade@google.com>
Date: Fri Sep 02 20:39:07 2022
[Glance Theme pt4] Add demo widget for themes
Bug: 237012816
Test: Manually ran all code in the stack
Change-Id: I41b4b35269d8a3fa7dada9af282f7a26a500f586
M glance/glance-appwidget/integration-tests/demos/src/main/AndroidManifest.xml
A glance/glance-appwidget/integration-tests/demos/src/main/java/androidx/glance/appwidget/demos/DefaultColorsAppWidget.kt
M glance/glance-appwidget/integration-tests/demos/src/main/res/values/strings.xml
M glance/glance-appwidget/integration-tests/demos/src/main/res/values/styles.xml
https://android-review.googlesource.com/2205842
Branch: androidx-main
commit 266e2ab15aece3b893a1557da22579f44f7fb1ff
Author: brenton.bade <bbade@google.com>
Date: Fri Sep 02 20:39:07 2022
[Glance Theme pt4] Add demo widget for themes
Bug: 237012816
Test: Manually ran all code in the stack
Change-Id: I41b4b35269d8a3fa7dada9af282f7a26a500f586
M glance/glance-appwidget/integration-tests/demos/src/main/AndroidManifest.xml
A glance/glance-appwidget/integration-tests/demos/src/main/java/androidx/glance/appwidget/demos/DefaultColorsAppWidget.kt
M glance/glance-appwidget/integration-tests/demos/src/main/res/values/strings.xml
M glance/glance-appwidget/integration-tests/demos/src/main/res/values/styles.xml
za...@google.com <za...@google.com>
na...@google.com <na...@google.com> #9
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.glance:glance:1.0.0-beta01
Description
Glance should support themeing that closely matches Material 3 style.