mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 19:05:03 +00:00
Fix customize Home button on macOS
This commit is contained in:
@@ -301,6 +301,21 @@ struct HomeView: View {
|
|||||||
|
|
||||||
#if !os(tvOS)
|
#if !os(tvOS)
|
||||||
private var customizeButton: some View {
|
private var customizeButton: some View {
|
||||||
|
#if os(macOS)
|
||||||
|
HStack {
|
||||||
|
Spacer()
|
||||||
|
Button {
|
||||||
|
showingCustomizeHome = true
|
||||||
|
} label: {
|
||||||
|
Label(String(localized: "home.customize"), systemImage: "gear")
|
||||||
|
}
|
||||||
|
.buttonStyle(.bordered)
|
||||||
|
.controlSize(.regular)
|
||||||
|
Spacer()
|
||||||
|
}
|
||||||
|
.padding(.top, 16)
|
||||||
|
.padding(.bottom, 32)
|
||||||
|
#else
|
||||||
Button {
|
Button {
|
||||||
showingCustomizeHome = true
|
showingCustomizeHome = true
|
||||||
} label: {
|
} label: {
|
||||||
@@ -312,9 +327,11 @@ struct HomeView: View {
|
|||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.buttonStyle(.plain)
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
.padding(.top, 16)
|
.padding(.top, 16)
|
||||||
.padding(.bottom, 32)
|
.padding(.bottom, 32)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user