-
Notifications
You must be signed in to change notification settings - Fork 849
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PM-16622 PM-16623 and PM-16624 Add the first three coach marks to the…
… generator tour (#4613)
- Loading branch information
1 parent
3c7262d
commit a681402
Showing
16 changed files
with
413 additions
and
113 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
15 changes: 11 additions & 4 deletions
15
...ava/com/x8bit/bitwarden/ui/platform/components/coachmark/model/CoachMarkHighlightShape.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
package com.x8bit.bitwarden.ui.platform.components.coachmark.model | ||
|
||
private const val ROUNDED_RECT_DEFAULT_RADIUS = 8f | ||
|
||
/** | ||
* Defines the available shapes for a coach mark highlight. | ||
*/ | ||
enum class CoachMarkHighlightShape { | ||
sealed class CoachMarkHighlightShape { | ||
/** | ||
* A square-shaped highlight. | ||
* A rounded rectangle shape which has a radius to round the corners by. | ||
* | ||
* @property radius the radius to use to round the corners of the rectangle shape. | ||
* Defaults to [ROUNDED_RECT_DEFAULT_RADIUS] | ||
*/ | ||
SQUARE, | ||
data class RoundedRectangle( | ||
val radius: Float = ROUNDED_RECT_DEFAULT_RADIUS, | ||
) : CoachMarkHighlightShape() | ||
|
||
/** | ||
* An oval-shaped highlight. | ||
*/ | ||
OVAL, | ||
data object Oval : CoachMarkHighlightShape() | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.