-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from dwarvesf/develop
[Release] v1.2.0
- Loading branch information
Showing
13 changed files
with
328 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// String+Extension.swift | ||
// Blurred | ||
// | ||
// Created by Peter Luo on 2020/6/16. | ||
// Copyright © 2020 Dwarves Foundation. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
extension String { | ||
var localized: String { | ||
return NSLocalizedString(self, comment: "") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// MySwipeStatusBar.swift | ||
// Blurred | ||
// | ||
// Created by Trung Phan on 5/19/20. | ||
// Copyright © 2020 Dwarves Foundation. All rights reserved. | ||
// | ||
|
||
import Cocoa | ||
|
||
class StatusBarSwipeToSetAlphaView: NSView { | ||
override func wantsScrollEventsForSwipeTracking(on axis: NSEvent.GestureAxis) -> Bool { | ||
if axis == .vertical { | ||
return true | ||
} | ||
return false | ||
} | ||
|
||
override func scrollWheel(with event: NSEvent) { | ||
|
||
if event.deltaY > 0 { if (DimManager.sharedInstance.setting.alpha > 10.0) { DimManager.sharedInstance.setting.alpha -= 1.0}} | ||
if event.deltaY < 0 { if (DimManager.sharedInstance.setting.alpha < 100) { DimManager.sharedInstance.setting.alpha += 1 }} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
Localizable.strings | ||
Blurred | ||
|
||
Created by Peter Luo on 2020/6/16. | ||
Copyright © 2020 Dwarves Foundation. All rights reserved. | ||
*/ |
Oops, something went wrong.