mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-22 08:20:59 +00:00
Various fixes
This commit is contained in:
parent
a0e022b8de
commit
3020d831e4
4 changed files with 18 additions and 11 deletions
|
@ -254,7 +254,11 @@ public struct AccountDetailView: View {
|
|||
StatusRowView(viewModel: .init(status: status, client: client, routerPath: routerPath))
|
||||
}
|
||||
Rectangle()
|
||||
#if os(visionOS)
|
||||
.fill(Color.clear)
|
||||
#else
|
||||
.fill(theme.secondaryBackgroundColor)
|
||||
#endif
|
||||
.frame(height: 12)
|
||||
.listRowInsets(.init())
|
||||
.listRowSeparator(.hidden)
|
||||
|
|
|
@ -52,7 +52,7 @@ import SwiftUI
|
|||
|
||||
@AppStorage("collapse-long-posts") public var collapseLongPosts = true
|
||||
|
||||
@AppStorage("share-button-behavior") public var shareButtonBehavior: PreferredShareButtonBehavior = .linkAndText
|
||||
@AppStorage("share-button-behavior") public var shareButtonBehavior: PreferredShareButtonBehavior = .linkOnly
|
||||
|
||||
@AppStorage("fast_refresh") public var fastRefreshEnabled: Bool = false
|
||||
|
||||
|
|
|
@ -83,6 +83,8 @@ public struct StatusesListView<Fetcher>: View where Fetcher: StatusesFetcher {
|
|||
Spacer()
|
||||
}
|
||||
.padding(.horizontal, .layoutPadding)
|
||||
#if !os(visionOS)
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,6 +143,10 @@ struct StatusRowActionsView: View {
|
|||
case .linkOnly:
|
||||
ShareLink(item: url) {
|
||||
action.image(dataController: statusDataController)
|
||||
.foregroundColor(Color(UIColor.secondaryLabel))
|
||||
.padding(.vertical, 6)
|
||||
.padding(.horizontal, 8)
|
||||
.contentShape(Rectangle())
|
||||
#if targetEnvironment(macCatalyst)
|
||||
.font(.scaledBody)
|
||||
#else
|
||||
|
@ -150,12 +154,8 @@ struct StatusRowActionsView: View {
|
|||
.dynamicTypeSize(.large)
|
||||
#endif
|
||||
}
|
||||
.padding(.vertical, 6)
|
||||
.padding(.horizontal, 8)
|
||||
#if os(visionOS)
|
||||
.buttonStyle(.borderless)
|
||||
#else
|
||||
.buttonStyle(.statusAction())
|
||||
#if !os(visionOS)
|
||||
.offset(x: -8)
|
||||
#endif
|
||||
.accessibilityElement(children: .combine)
|
||||
|
@ -166,6 +166,10 @@ struct StatusRowActionsView: View {
|
|||
message: Text(viewModel.finalStatus.content.asRawText))
|
||||
{
|
||||
action.image(dataController: statusDataController)
|
||||
.foregroundColor(Color(UIColor.secondaryLabel))
|
||||
.padding(.vertical, 6)
|
||||
.padding(.horizontal, 8)
|
||||
.contentShape(Rectangle())
|
||||
#if targetEnvironment(macCatalyst)
|
||||
.font(.scaledBody)
|
||||
#else
|
||||
|
@ -173,12 +177,8 @@ struct StatusRowActionsView: View {
|
|||
.dynamicTypeSize(.large)
|
||||
#endif
|
||||
}
|
||||
.padding(.vertical, 6)
|
||||
.padding(.horizontal, 8)
|
||||
#if os(visionOS)
|
||||
.buttonStyle(.borderless)
|
||||
#else
|
||||
.buttonStyle(.statusAction())
|
||||
#if !os(visionOS)
|
||||
.offset(x: -8)
|
||||
#endif
|
||||
.accessibilityElement(children: .combine)
|
||||
|
@ -270,6 +270,7 @@ struct StatusRowActionsView: View {
|
|||
}
|
||||
#if os(visionOS)
|
||||
.buttonStyle(.borderless)
|
||||
.foregroundColor(Color(UIColor.secondaryLabel))
|
||||
#else
|
||||
.buttonStyle(
|
||||
.statusAction(
|
||||
|
|
Loading…
Reference in a new issue