mirror of
https://github.com/yattee/yattee.git
synced 2025-04-29 00:10:34 +05:30
parent
7c45f3286b
commit
287bd25360
@ -212,19 +212,20 @@ struct PlayerControlsSettings: View {
|
|||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
#if !os(tvOS)
|
#if !os(tvOS)
|
||||||
Label("Plus", systemImage: "plus")
|
Label("Minus", systemImage: "minus")
|
||||||
.imageScale(.large)
|
.imageScale(.large)
|
||||||
.labelStyle(.iconOnly)
|
.labelStyle(.iconOnly)
|
||||||
.padding(7)
|
.padding(7)
|
||||||
.foregroundColor(.accentColor)
|
.foregroundColor(.accentColor)
|
||||||
.accessibilityAddTraits(.isButton)
|
.accessibilityAddTraits(.isButton)
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
|
.frame(minHeight: 35)
|
||||||
.background(RoundedRectangle(cornerRadius: 4).strokeBorder(lineWidth: 1).foregroundColor(.accentColor))
|
.background(RoundedRectangle(cornerRadius: 4).strokeBorder(lineWidth: 1).foregroundColor(.accentColor))
|
||||||
#endif
|
#endif
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
var intValue = Int(value.wrappedValue) ?? 10
|
var intValue = Int(value.wrappedValue) ?? 10
|
||||||
intValue += 5
|
intValue -= 5
|
||||||
if intValue <= 0 {
|
if intValue <= 0 {
|
||||||
intValue = 5
|
intValue = 5
|
||||||
}
|
}
|
||||||
@ -248,20 +249,19 @@ struct PlayerControlsSettings: View {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !os(tvOS)
|
#if !os(tvOS)
|
||||||
Label("Minus", systemImage: "minus")
|
Label("Plus", systemImage: "plus")
|
||||||
.imageScale(.large)
|
.imageScale(.large)
|
||||||
.labelStyle(.iconOnly)
|
.labelStyle(.iconOnly)
|
||||||
.padding(7)
|
.padding(7)
|
||||||
.foregroundColor(.accentColor)
|
.foregroundColor(.accentColor)
|
||||||
.accessibilityAddTraits(.isButton)
|
.accessibilityAddTraits(.isButton)
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
.frame(minHeight: 35)
|
|
||||||
.background(RoundedRectangle(cornerRadius: 4).strokeBorder(lineWidth: 1).foregroundColor(.accentColor))
|
.background(RoundedRectangle(cornerRadius: 4).strokeBorder(lineWidth: 1).foregroundColor(.accentColor))
|
||||||
#endif
|
#endif
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
var intValue = Int(value.wrappedValue) ?? 10
|
var intValue = Int(value.wrappedValue) ?? 10
|
||||||
intValue -= 5
|
intValue += 5
|
||||||
if intValue <= 0 {
|
if intValue <= 0 {
|
||||||
intValue = 5
|
intValue = 5
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user