diff --git a/.gitignore b/.gitignore index 0072ddc..644bbb8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ + +.DS_Store # Xcode # # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore diff --git a/MTMR/AppleScriptTouchBarItem.swift b/MTMR/AppleScriptTouchBarItem.swift index 352ec8d..bbd214a 100644 --- a/MTMR/AppleScriptTouchBarItem.swift +++ b/MTMR/AppleScriptTouchBarItem.swift @@ -49,7 +49,7 @@ class AppleScriptTouchBarItem: CustomButtonTouchBarItem { let output = script.executeAndReturnError(&error) if let error = error { print(error) - return "" + return "error" } return output.stringValue ?? "" } diff --git a/MTMR/CustomButtonTouchBarItem.swift b/MTMR/CustomButtonTouchBarItem.swift index d40c966..e85fa44 100644 --- a/MTMR/CustomButtonTouchBarItem.swift +++ b/MTMR/CustomButtonTouchBarItem.swift @@ -16,11 +16,10 @@ class CustomButtonTouchBarItem: NSCustomTouchBarItem { self.tapClosure = callback super.init(identifier: identifier) button = NSButton(title: title, target: self, action: #selector(didTapped)) - button.font = .systemFont(ofSize: CGFloat(13.0)) button.title = title self.view = button } - + required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } diff --git a/MTMR/Info.plist b/MTMR/Info.plist index f0fae0d..20be9f0 100644 --- a/MTMR/Info.plist +++ b/MTMR/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.8.1 + 0.9 CFBundleVersion 1 LSMinimumSystemVersion diff --git a/README.md b/README.md index 8d6d1d4..4225998 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![GitHub release](https://img.shields.io/github/release/toxblh/MTMR.svg)](https://github.com/Toxblh/MTMR/releases)

- +

My the idea is to create the program like a platform for plugins for customization TouchBar. I very like BTT and a full custom TouchBar (my [BTT preset](https://github.com/Toxblh/btt-touchbar-preset)). And I want to create it. And it's my the first Swift project for MacOS :) @@ -62,6 +62,7 @@ File for customize your preset for MTMR: `open ~/Library/Application\ Support/MT - brightnessDown - volumeDown - volumeUp +- dock > Media Keys - previous diff --git a/Resources/TouchBar-v0.8.1.png b/Resources/TouchBar-v0.8.1.png new file mode 100644 index 0000000..f489184 Binary files /dev/null and b/Resources/TouchBar-v0.8.1.png differ