Skip to content

Commit 6509eed

Browse files
authored
FIX: Source Navigator Icon Symbols affected by accent color (#1589)
Replaced accent color with foreground style on file icons
1 parent f031ca6 commit 6509eed

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CodeEdit/Features/NavigatorArea/SourceControlNavigator/Changes/Views/SourceControlNavigatorChangedFileView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ struct SourceControlNavigatorChangedFileView: View {
5353
.truncationMode(.middle)
5454
}, icon: {
5555
Image(systemName: changedFile.systemImage)
56+
.foregroundStyle(changedFile.iconColor)
5657
})
57-
.accentColor(changedFile.iconColor)
58+
5859
Spacer()
5960
Text(changedFile.gitStatus?.description ?? "")
6061
.font(.system(size: 11, weight: .bold))

CodeEdit/Features/NavigatorArea/SourceControlNavigator/History/Views/CommitChangedFileListItemView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ struct CommitChangedFileListItemView: View {
3434
.truncationMode(.middle)
3535
}, icon: {
3636
Image(systemName: changedFile.systemImage)
37+
.foregroundStyle(changedFile.iconColor)
3738
})
38-
.accentColor(changedFile.iconColor)
39+
3940
Spacer()
4041
Text(changedFile.gitStatus?.description ?? "")
4142
.font(.system(size: 11, weight: .bold))

CodeEdit/Features/NavigatorArea/SourceControlNavigator/Repository/Views/SourceControlNavigatorRepositoryItem.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ struct SourceControlNavigatorRepositoryItem: View {
2929
if item.symbolImage != nil {
3030
Image(symbol: item.symbolImage ?? "")
3131
.opacity(controlActiveState == .inactive ? 0.5 : 1)
32+
.foregroundStyle(item.imageColor ?? .accentColor)
3233
} else {
3334
Image(systemName: item.systemImage ?? "")
3435
.opacity(controlActiveState == .inactive ? 0.5 : 1)
36+
.foregroundStyle(item.imageColor ?? .accentColor)
3537
}
3638
})
37-
.accentColor(item.imageColor ?? .accentColor)
3839
.padding(.leading, 1)
3940
.padding(.vertical, -1)
4041
} else {

0 commit comments

Comments
 (0)