Skip to content

Commit

Permalink
FIX: Source Navigator Icon Symbols affected by accent color (#1589)
Browse files Browse the repository at this point in the history
Replaced accent color with foreground style on file icons
  • Loading branch information
tom-ludwig authored Feb 6, 2024
1 parent f031ca6 commit 6509eed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ struct SourceControlNavigatorChangedFileView: View {
.truncationMode(.middle)
}, icon: {
Image(systemName: changedFile.systemImage)
.foregroundStyle(changedFile.iconColor)
})
.accentColor(changedFile.iconColor)

Spacer()
Text(changedFile.gitStatus?.description ?? "")
.font(.system(size: 11, weight: .bold))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ struct CommitChangedFileListItemView: View {
.truncationMode(.middle)
}, icon: {
Image(systemName: changedFile.systemImage)
.foregroundStyle(changedFile.iconColor)
})
.accentColor(changedFile.iconColor)

Spacer()
Text(changedFile.gitStatus?.description ?? "")
.font(.system(size: 11, weight: .bold))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ struct SourceControlNavigatorRepositoryItem: View {
if item.symbolImage != nil {
Image(symbol: item.symbolImage ?? "")
.opacity(controlActiveState == .inactive ? 0.5 : 1)
.foregroundStyle(item.imageColor ?? .accentColor)
} else {
Image(systemName: item.systemImage ?? "")
.opacity(controlActiveState == .inactive ? 0.5 : 1)
.foregroundStyle(item.imageColor ?? .accentColor)
}
})
.accentColor(item.imageColor ?? .accentColor)
.padding(.leading, 1)
.padding(.vertical, -1)
} else {
Expand Down

0 comments on commit 6509eed

Please sign in to comment.