Skip to content

Commit

Permalink
Align the completion messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pepicrft committed Feb 21, 2025
1 parent 60b7fd5 commit 1973458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Noora/Components/ProgressStep.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ struct ProgressStep {
}

static func completionMessage(_ message: String, timeString: String? = nil, theme: Theme, terminal: Terminaling) -> String {
"\("✔︎".hexIfColoredTerminal(theme.success, terminal)) \(message)\(" \(timeString ?? "")")"
"\("✔︎".hexIfColoredTerminal(theme.success, terminal)) \(message.hexIfColoredTerminal(theme.primary, terminal))\(" \(timeString ?? "")")"
}

static func errorMessage(_ message: String, timeString: String? = nil, theme: Theme, terminal: Terminaling) -> String {
"\("".hexIfColoredTerminal(theme.danger, terminal)) \(message) \(timeString ?? "")"
"\("".hexIfColoredTerminal(theme.danger, terminal)) \(message.hexIfColoredTerminal(theme.primary, terminal)) \(timeString ?? "")"
}

private func render(message: String, icon: String) {
Expand Down

0 comments on commit 1973458

Please sign in to comment.