mirror of
https://github.com/yattee/yattee.git
synced 2025-12-07 08:38:14 +00:00
Fix button styling and safe area handling on iOS
Added plain button style for rate increase/decrease buttons on iOS. Fixed safe area insets in VerticalCells to respect sidebar navigation style on iOS.
This commit is contained in:
@@ -262,6 +262,8 @@ struct PlaybackSettings: View {
|
|||||||
.controlSize(.large)
|
.controlSize(.large)
|
||||||
.frame(minWidth: 32, minHeight: 28)
|
.frame(minWidth: 32, minHeight: 28)
|
||||||
.fixedSize()
|
.fixedSize()
|
||||||
|
#elseif os(iOS)
|
||||||
|
.buttonStyle(.plain)
|
||||||
#else
|
#else
|
||||||
.buttonStyle(.bordered)
|
.buttonStyle(.bordered)
|
||||||
.controlSize(.large)
|
.controlSize(.large)
|
||||||
@@ -297,6 +299,8 @@ struct PlaybackSettings: View {
|
|||||||
.controlSize(.large)
|
.controlSize(.large)
|
||||||
.frame(minWidth: 32, minHeight: 28)
|
.frame(minWidth: 32, minHeight: 28)
|
||||||
.fixedSize()
|
.fixedSize()
|
||||||
|
#elseif os(iOS)
|
||||||
|
.buttonStyle(.plain)
|
||||||
#else
|
#else
|
||||||
.buttonStyle(.bordered)
|
.buttonStyle(.bordered)
|
||||||
.controlSize(.large)
|
.controlSize(.large)
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ struct VerticalCells<Header: View>: View {
|
|||||||
|
|
||||||
@Environment(\.loadMoreContentHandler) private var loadMoreContentHandler
|
@Environment(\.loadMoreContentHandler) private var loadMoreContentHandler
|
||||||
@Environment(\.listingStyle) private var listingStyle
|
@Environment(\.listingStyle) private var listingStyle
|
||||||
|
@Environment(\.navigationStyle) private var navigationStyle
|
||||||
|
|
||||||
var items = [ContentItem]()
|
var items = [ContentItem]()
|
||||||
var allowEmpty = false
|
var allowEmpty = false
|
||||||
@@ -50,7 +51,7 @@ struct VerticalCells<Header: View>: View {
|
|||||||
}
|
}
|
||||||
.animation(nil)
|
.animation(nil)
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
.edgesIgnoringSafeArea(edgesIgnoringSafeArea)
|
.edgesIgnoringSafeArea(navigationStyle == .sidebar ? [] : edgesIgnoringSafeArea)
|
||||||
#endif
|
#endif
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
.background(Color.secondaryBackground)
|
.background(Color.secondaryBackground)
|
||||||
|
|||||||
Reference in New Issue
Block a user