Refactor views

This commit is contained in:
Arkadiusz Fal
2026-02-09 01:13:02 +01:00
parent 8464464199
commit 612dce6b9f
43 changed files with 143 additions and 125 deletions

View File

@@ -12,6 +12,8 @@ import SwiftUI
/// A floating pin button that appears on the divider edge between player and panel.
/// Features auto-hide behavior with 3s timer, reappearing on drag handle interaction.
struct PanelPinButton: View {
@Environment(\.appEnvironment) private var appEnvironment
let isPinned: Bool
let panelSide: FloatingPanelSide
let onPinToggle: () -> Void
@@ -19,8 +21,6 @@ struct PanelPinButton: View {
/// Whether the drag handle is currently active (being dragged or hovered).
@Binding var isDragHandleActive: Bool
@Environment(\.appEnvironment) private var appEnvironment
/// Button diameter
private static let buttonSize: CGFloat = 36