Skip to content

Commit

Permalink
♻️ Displaying color names in output
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkulman committed Jan 21, 2021
1 parent d3df21e commit e9c7d2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Sources/ChangeMenuBarColor/Commands/Gradient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Igor Kulman on 19.11.2020.
//

import Accessibility
import ArgumentParser
import Foundation
import Cocoa
Expand Down Expand Up @@ -51,7 +52,7 @@ final class Gradient: Command, ParsableCommand {
return nil
}

Log.debug("Generating gradient image")
Log.debug("Generating gradient image from \(AXNameFromColor(startColor.cgColor)) to \(AXNameFromColor(endColor.cgColor))")
guard let topImage = createGradientImage(startColor: startColor, endColor: endColor, width: screen.size.width, height: screen.menuBarHeight) else {
return nil
}
Expand Down
3 changes: 2 additions & 1 deletion Sources/ChangeMenuBarColor/Commands/SolidColor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Igor Kulman on 19.11.2020.
//

import Accessibility
import ArgumentParser
import Foundation
import Cocoa
Expand Down Expand Up @@ -44,7 +45,7 @@ final class SolidColor: Command, ParsableCommand {
return nil
}

Log.debug("Generating solid color image")
Log.debug("Generating \(AXNameFromColor(color.cgColor)) solid color image")
guard let topImage = createSolidImage(color: color, width: screen.size.width, height: screen.menuBarHeight) else {
return nil
}
Expand Down

0 comments on commit e9c7d2c

Please sign in to comment.