Minor controls changes

This commit is contained in:
Arkadiusz Fal
2022-12-03 15:33:32 +01:00
parent 779bf190f4
commit 909f035399
3 changed files with 8 additions and 5 deletions

View File

@@ -453,7 +453,7 @@ struct PlayerControls: View {
width _: Double? = nil,
height _: Double? = nil,
cornerRadius: Double = 3,
background: Bool = true,
background: Bool = false,
foregroundColor: Color? = nil,
active: Bool = false,
action: @escaping () -> Void = {}
@@ -486,6 +486,7 @@ struct PlayerControls: View {
.frame(width: size ?? playerControlsLayout.buttonSize, height: size ?? playerControlsLayout.buttonSize)
.modifier(ControlBackgroundModifier(enabled: useBackground))
.clipShape(RoundedRectangle(cornerRadius: cornerRadius))
.environment(\.colorScheme, .dark)
}
}