1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-11 17:38:38 +00:00

Merge remote-tracking branch 'upstream/master'

This commit is contained in:
ad 2018-04-18 16:20:36 +03:00
commit adaed36fbd
6 changed files with 7 additions and 5 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
.DS_Store
# Xcode # Xcode
# #
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

View File

@ -49,7 +49,7 @@ class AppleScriptTouchBarItem: CustomButtonTouchBarItem {
let output = script.executeAndReturnError(&error) let output = script.executeAndReturnError(&error)
if let error = error { if let error = error {
print(error) print(error)
return "" return "error"
} }
return output.stringValue ?? "" return output.stringValue ?? ""
} }

View File

@ -16,7 +16,6 @@ class CustomButtonTouchBarItem: NSCustomTouchBarItem {
self.tapClosure = callback self.tapClosure = callback
super.init(identifier: identifier) super.init(identifier: identifier)
button = NSButton(title: title, target: self, action: #selector(didTapped)) button = NSButton(title: title, target: self, action: #selector(didTapped))
button.font = .systemFont(ofSize: CGFloat(13.0))
button.title = title button.title = title
self.view = button self.view = button
} }

View File

@ -17,7 +17,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>0.8.1</string> <string>0.9</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1</string> <string>1</string>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>

View File

@ -7,7 +7,7 @@
[![GitHub release](https://img.shields.io/github/release/toxblh/MTMR.svg)](https://github.com/Toxblh/MTMR/releases) [![GitHub release](https://img.shields.io/github/release/toxblh/MTMR.svg)](https://github.com/Toxblh/MTMR/releases)
<p align="center"> <p align="center">
<img src="Resources/TouchBar-v0.6.png"> <img src="Resources/TouchBar-v0.8.1.png">
</p> </p>
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 :) 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 - brightnessDown
- volumeDown - volumeDown
- volumeUp - volumeUp
- dock
> Media Keys > Media Keys
- previous - previous

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB