Skip to content

Commit

Permalink
Adjust disabled label color
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Dec 17, 2024
1 parent 2d844c1 commit 4bb380c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ private extension AttributedString {
init(_ label: String, value: String?) {

self = Self(label, attributes: AttributeContainer.foregroundColor(.secondary))
+ Self(value ?? "", attributes: AttributeContainer.foregroundColor((value == nil) ? .disabledControlTextColor : .labelColor))
+ Self(value ?? "", attributes: AttributeContainer.foregroundColor((value == nil) ? .tertiaryLabelColor : .labelColor))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ extension FileBrowserViewController: NSOutlineViewDelegate {
cellView.isAlias = node.isAlias

cellView.textField!.stringValue = node.name
cellView.textField!.textColor = node.isHidden ? .disabledControlTextColor : .labelColor
cellView.textField!.textColor = node.isHidden ? .tertiaryLabelColor : .labelColor

return cellView
}
Expand Down

0 comments on commit 4bb380c

Please sign in to comment.