From 9622b563b34db85095f7676abae357509972bd3a Mon Sep 17 00:00:00 2001 From: Daniel Chick Date: Tue, 5 Dec 2023 17:20:41 -0600 Subject: [PATCH] Move button styling to not affect the info pane --- Xcodes/Backend/XcodeCommands.swift | 3 +-- Xcodes/Frontend/XcodeList/XcodeListViewRow.swift | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Xcodes/Backend/XcodeCommands.swift b/Xcodes/Backend/XcodeCommands.swift index 5071f30..75773bb 100644 --- a/Xcodes/Backend/XcodeCommands.swift +++ b/Xcodes/Backend/XcodeCommands.swift @@ -43,9 +43,8 @@ struct InstallButton: View { install() } label: { Text("Install") - .textCase(.uppercase) .help("InstallDescription") - }.buttonStyle(AppStoreButtonStyle(primary: false, highlighted: false)) + } } private func install() { diff --git a/Xcodes/Frontend/XcodeList/XcodeListViewRow.swift b/Xcodes/Frontend/XcodeList/XcodeListViewRow.swift index 4757977..55f431c 100644 --- a/Xcodes/Frontend/XcodeList/XcodeListViewRow.swift +++ b/Xcodes/Frontend/XcodeList/XcodeListViewRow.swift @@ -111,6 +111,8 @@ struct XcodeListViewRow: View { .help("OpenDescription") case .notInstalled: InstallButton(xcode: xcode) + .textCase(.uppercase) + .buttonStyle(AppStoreButtonStyle(primary: false, highlighted: false)) case let .installing(installationStep): InstallationStepRowView( installationStep: installationStep,