Skip to content

Commit

Permalink
Quick black color test
Browse files Browse the repository at this point in the history
  • Loading branch information
aonez committed Mar 13, 2018
1 parent d77735a commit 1dc2b63
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified Timer/Assets.xcassets/clock-unfocus.imageset/clock-unfocus.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions Timer/MVMainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ class MVMainView: NSView {
super.draw(dirtyRect)

let windowHasFocus = self.window?.isKeyWindow ?? false
var topColor = NSColor(srgbRed: 0.949, green: 0.9451, blue: 0.949, alpha: 1.0)
var bottomColor = NSColor(srgbRed: 0.8392, green: 0.8314, blue: 0.8392, alpha: 1.0)
var topColor = NSColor(srgbRed: 0.333, green: 0.333, blue: 0.333, alpha: 1.0)
var bottomColor = NSColor(srgbRed: 0, green: 0, blue: 0, alpha: 1.0)
if !windowHasFocus {
topColor = NSColor(srgbRed: 0.9647, green: 0.9647, blue: 0.9647, alpha: 1.0)
bottomColor = NSColor(srgbRed: 0.9647, green: 0.9647, blue: 0.9647, alpha: 1.0)
topColor = NSColor(srgbRed: 0.300, green: 0.300, blue: 0.300, alpha: 1.0)
bottomColor = NSColor(srgbRed: 0, green: 0, blue: 0, alpha: 1.0)
}

let gradient = NSGradient(colors: [topColor, bottomColor])
Expand Down

0 comments on commit 1dc2b63

Please sign in to comment.