feat: redesign price widget v61#914
Open
jvsena42 wants to merge 23 commits intofeat/system-widgets-foundationfrom
Open
feat: redesign price widget v61#914jvsena42 wants to merge 23 commits intofeat/system-widgets-foundationfrom
jvsena42 wants to merge 23 commits intofeat/system-widgets-foundationfrom
Conversation
This comment has been minimized.
This comment has been minimized.
…into feat/price-widget-v61 # Conflicts: # app/src/main/java/to/bitkit/appwidget/config/AppWidgetConfigScreen.kt # app/src/main/java/to/bitkit/appwidget/ui/price/PriceGlanceContent.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FIGMA
This PR:
Description
The price widget has been redesigned to match Figma v61. The Glance widget now picks between two layouts based on its rendered size: a Wide layout (343×152dp) with a 34sp headline price and a thin chart, and a Compact layout (163×192dp) with a stacked title price, change % and a taller chart. The chart bitmap drops its previous gradient fill in favor of a line-only stroke, and the period overlay is removed from the chart since the timeframe label now lives in the header.
Currency selection moves from a multi-toggle list to single-select. The Glance widget always renders the first enabled pair; the in-app PriceCard does the same. Both edit screens (AppWidgetConfigScreen for the system widget, PriceEditScreen for the in-app feed) are restructured into two sections — CURRENCY and TIMEFRAME — with selectable rows that highlight the active option in white with a Brand-colored checkmark and dim the rest.
The preview screen drops the headline + chart icon header in favor of a centered Bitcoin Price top bar, a description block, a Widget Settings row, and a horizontal pager that swipes between the small and wide widget previews with a size label and dot indicator below. The widget metadata XML now allows a 2×2 placement (lower minWidth/minHeight) and defaults to a 4×2 cell target so the widget lands on the Wide layout out of the box.
Preview
os-widget.webm
app-widget.webm
QA Notes
System widget
In-app price widget