From 1ad2a01a223d88d455a20eafde6e905fd8321430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Bo=C4=8Fa?= Date: Wed, 10 Apr 2024 16:43:32 +0200 Subject: [PATCH 1/2] added tooltips for btns in navigator bottom toolbar --- .../FindNavigator/FindNavigatorToolbarBottom.swift | 1 + .../ProjectNavigator/ProjectNavigatorToolbarBottom.swift | 3 +++ .../Views/SourceControlNavigatorToolbarBottom.swift | 1 + 3 files changed, 5 insertions(+) diff --git a/CodeEdit/Features/NavigatorArea/FindNavigator/FindNavigatorToolbarBottom.swift b/CodeEdit/Features/NavigatorArea/FindNavigator/FindNavigatorToolbarBottom.swift index 36d173b30..8a8f5a950 100644 --- a/CodeEdit/Features/NavigatorArea/FindNavigator/FindNavigatorToolbarBottom.swift +++ b/CodeEdit/Features/NavigatorArea/FindNavigator/FindNavigatorToolbarBottom.swift @@ -27,6 +27,7 @@ struct FindNavigatorToolbarBottom: View { : Color(nsColor: .controlAccentColor) ) .padding(.leading, 4) + .help("Show results with mathing text") }, clearable: true ) diff --git a/CodeEdit/Features/NavigatorArea/ProjectNavigator/ProjectNavigatorToolbarBottom.swift b/CodeEdit/Features/NavigatorArea/ProjectNavigator/ProjectNavigatorToolbarBottom.swift index ea6eaf458..5b58a21e7 100644 --- a/CodeEdit/Features/NavigatorArea/ProjectNavigator/ProjectNavigatorToolbarBottom.swift +++ b/CodeEdit/Features/NavigatorArea/ProjectNavigator/ProjectNavigatorToolbarBottom.swift @@ -41,15 +41,18 @@ struct ProjectNavigatorToolbarBottom: View { ? Color(nsColor: .secondaryLabelColor) : Color(nsColor: .controlAccentColor) ) + .help("Show files with matching name") }, trailingAccessories: { HStack(spacing: 0) { Toggle(isOn: $recentsFilter) { Image(systemName: "clock") } + .help("Show only recent files") Toggle(isOn: $sourceControlFilter) { Image(systemName: "plusminus.circle") } + .help("Show only files with source-control status") } .toggleStyle(.icon(font: .system(size: 14), size: CGSize(width: 18, height: 20))) .padding(.trailing, 2.5) diff --git a/CodeEdit/Features/NavigatorArea/SourceControlNavigator/Views/SourceControlNavigatorToolbarBottom.swift b/CodeEdit/Features/NavigatorArea/SourceControlNavigator/Views/SourceControlNavigatorToolbarBottom.swift index 0135cd238..6ecda4dbe 100644 --- a/CodeEdit/Features/NavigatorArea/SourceControlNavigator/Views/SourceControlNavigatorToolbarBottom.swift +++ b/CodeEdit/Features/NavigatorArea/SourceControlNavigator/Views/SourceControlNavigatorToolbarBottom.swift @@ -34,6 +34,7 @@ struct SourceControlNavigatorToolbarBottom: View { : Color(nsColor: .controlAccentColor) ) .padding(.leading, 4) + .help("Filter Changes Navigator") }, clearable: true ) From 28d5e7b5176d47706183225c7bca66f403a602bd Mon Sep 17 00:00:00 2001 From: Wesley de Groot Date: Thu, 11 Apr 2024 09:40:25 +0200 Subject: [PATCH 2/2] Update CodeEdit/Features/NavigatorArea/FindNavigator/FindNavigatorToolbarBottom.swift --- .../FindNavigator/FindNavigatorToolbarBottom.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodeEdit/Features/NavigatorArea/FindNavigator/FindNavigatorToolbarBottom.swift b/CodeEdit/Features/NavigatorArea/FindNavigator/FindNavigatorToolbarBottom.swift index 8a8f5a950..073296f71 100644 --- a/CodeEdit/Features/NavigatorArea/FindNavigator/FindNavigatorToolbarBottom.swift +++ b/CodeEdit/Features/NavigatorArea/FindNavigator/FindNavigatorToolbarBottom.swift @@ -27,7 +27,7 @@ struct FindNavigatorToolbarBottom: View { : Color(nsColor: .controlAccentColor) ) .padding(.leading, 4) - .help("Show results with mathing text") + .help("Show results with matching text") }, clearable: true )