From 91290d473696183bf23e18b6f62aeb4ba4289043 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Wed, 7 Jun 2023 23:19:10 +0200 Subject: [PATCH] Fix #486 --- Shared/Home/HomeView.swift | 45 +++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/Shared/Home/HomeView.swift b/Shared/Home/HomeView.swift index a61ab316..308b58e7 100644 --- a/Shared/Home/HomeView.swift +++ b/Shared/Home/HomeView.swift @@ -32,23 +32,8 @@ struct HomeView: View { var body: some View { ScrollView(.vertical, showsIndicators: false) { VStack { - HStack { - #if os(tvOS) - Group { - if showOpenActionsInHome { - AccentButton(text: "Open Video", imageSystemName: "globe") { - NavigationModel.shared.presentingOpenVideos = true - } - } - AccentButton(text: "Locations", imageSystemName: "globe") { - NavigationModel.shared.presentingAccounts = true - } - - AccentButton(text: "Settings", imageSystemName: "gear") { - NavigationModel.shared.presentingSettings = true - } - } - #else + #if !os(tvOS) + HStack { if showOpenActionsInHome { AccentButton(text: "Files", imageSystemName: "folder") { NavigationModel.shared.presentingFileImporter = true @@ -61,16 +46,36 @@ struct HomeView: View { } .frame(maxWidth: 40) } - #endif - } + } + #endif #if os(tvOS) HStack { + if showOpenActionsInHome { + Button { + NavigationModel.shared.presentingOpenVideos = true + } label: { + Label("Open Video", systemImage: "globe") + } + } + Button { + NavigationModel.shared.presentingAccounts = true + } label: { + Label("Locations", systemImage: "globe") + } Spacer() HideWatchedButtons() HideShortsButtons() - HomeSettingsButton() + Button { + NavigationModel.shared.presentingSettings = true + } label: { + Label("Settings", systemImage: "gear") + } } + #if os(tvOS) + .font(.caption) + .imageScale(.small) + #endif #endif } .padding(.top, 15)