Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Compose] - Add Gauges #289

Merged
merged 5 commits into from
Nov 24, 2023
Merged

[Compose] - Add Gauges #289

merged 5 commits into from
Nov 24, 2023

Conversation

Scythe14
Copy link
Collaborator

@Scythe14 Scythe14 commented Oct 30, 2023

Screenshot 2023-11-02 at 19 17 04

@Scythe14 Scythe14 marked this pull request as ready for review October 30, 2023 15:55
@Composable
fun GrapesGauge(
progress: Float,
color: Color,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proposal:
a single GrapesGauge that takes a color: GaugeColor

GaugeColor is a sealed class :

sealed class GaugeColor {
    data class Solid(val color: Color): GaugeColor
    data class Stripped(stripeColor: Color,  stripeColorSecondary: Color, stripSpacing: Dp): GaugeColor
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is to provide potentially multiple Gauges, so maybe in that case a List ?

Base automatically changed from task/compose-create-selectors to develop November 2, 2023 14:06
- Add GrapesGauge that displays a list of gauges
- Make private all other gauges for clarity
@Scythe14 Scythe14 merged commit 5a12b90 into develop Nov 24, 2023
3 checks passed
@Scythe14 Scythe14 deleted the task/compose-gauges branch November 24, 2023 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants