From 287bd25360c03d69532765a81dc41744d7212b93 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 7 May 2023 21:49:54 +0200 Subject: [PATCH] Switch seek duration +/- buttons Fix #438 --- Shared/Settings/PlayerControlsSettings.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Shared/Settings/PlayerControlsSettings.swift b/Shared/Settings/PlayerControlsSettings.swift index e67667bf..8c1579a6 100644 --- a/Shared/Settings/PlayerControlsSettings.swift +++ b/Shared/Settings/PlayerControlsSettings.swift @@ -212,19 +212,20 @@ struct PlayerControlsSettings: View { HStack { #if !os(tvOS) - Label("Plus", systemImage: "plus") + Label("Minus", systemImage: "minus") .imageScale(.large) .labelStyle(.iconOnly) .padding(7) .foregroundColor(.accentColor) .accessibilityAddTraits(.isButton) #if os(iOS) + .frame(minHeight: 35) .background(RoundedRectangle(cornerRadius: 4).strokeBorder(lineWidth: 1).foregroundColor(.accentColor)) #endif .contentShape(Rectangle()) .onTapGesture { var intValue = Int(value.wrappedValue) ?? 10 - intValue += 5 + intValue -= 5 if intValue <= 0 { intValue = 5 } @@ -248,20 +249,19 @@ struct PlayerControlsSettings: View { #endif #if !os(tvOS) - Label("Minus", systemImage: "minus") + Label("Plus", systemImage: "plus") .imageScale(.large) .labelStyle(.iconOnly) .padding(7) .foregroundColor(.accentColor) .accessibilityAddTraits(.isButton) #if os(iOS) - .frame(minHeight: 35) .background(RoundedRectangle(cornerRadius: 4).strokeBorder(lineWidth: 1).foregroundColor(.accentColor)) #endif .contentShape(Rectangle()) .onTapGesture { var intValue = Int(value.wrappedValue) ?? 10 - intValue -= 5 + intValue += 5 if intValue <= 0 { intValue = 5 }