Skip to content

Commit

Permalink
ANDROID-14711 Allow setting colors from outside now that copy method …
Browse files Browse the repository at this point in the history
…has been deleted from MisticaColors and MisticaBrushes (#357)

* ANDROID-14711 Allow setting colors from outside now that copy method has been deleted from MisticaColors and MisticaBrushes

* ANDROID-14711 Update pull request template
  • Loading branch information
dpastor authored May 24, 2024
1 parent 7554604 commit b1dcc54
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 142 deletions.
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ _Provide a description of the implementation. A list of steps would be ideal._
* _Step 3_

### ☑️ Checks
- [ ] I updated the documentation, including readmes and wikis. If this is a breaking change, update [UPGRADING.md](../UPGRADING.md) to inform users how to proceed. If no updates are necessary, indicate so.
- [ ] I updated the documentation, including readmes and wikis. If this is a breaking change, tag the PR with "Breaking Change" label and remember to include breaking change migration guide in release notes where this version is released.
- [ ] Tested with dark mode.
- [ ] Tested with API 21.
- [ ] Tested with API 24.

### :test_tube: How can I test this?
_If it cannot be tested explain why._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@ import androidx.compose.ui.graphics.SolidColor
public class MisticaBrushes {
public var cardContentOverlay: Brush by mutableStateOf(SolidColor(Color.Unspecified),
structuralEqualityPolicy())
internal set

public var backgroundBrand: Brush by mutableStateOf(SolidColor(Color.Unspecified),
structuralEqualityPolicy())
internal set

public var backgroundContainerBrand: Brush by mutableStateOf(SolidColor(Color.Unspecified),
structuralEqualityPolicy())
internal set

public fun updateBrushesFrom(other: MisticaBrushes) {
cardContentOverlay = other.cardContentOverlay
Expand Down
Loading

0 comments on commit b1dcc54

Please sign in to comment.