mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Refactor views
This commit is contained in:
@@ -12,6 +12,8 @@ import SwiftUI
|
||||
/// Automatically handles DeArrow integration.
|
||||
/// Supports optional queue context for auto-play functionality.
|
||||
struct BookmarkRowView: View {
|
||||
@Environment(\.appEnvironment) private var appEnvironment
|
||||
|
||||
let bookmark: Bookmark
|
||||
var style: VideoRowStyle = .regular
|
||||
var watchProgress: Double? = nil
|
||||
@@ -24,8 +26,6 @@ struct BookmarkRowView: View {
|
||||
var videoIndex: Int? = nil
|
||||
var loadMoreVideos: LoadMoreVideosCallback? = nil
|
||||
|
||||
@Environment(\.appEnvironment) private var appEnvironment
|
||||
|
||||
private var accentColor: Color {
|
||||
appEnvironment?.settingsManager.accentColor.color ?? .accentColor
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user