Skip to content

Commit

Permalink
commit before v1.0 (beta)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellorin committed Jul 10, 2017
1 parent b14011c commit 229c3b0
Show file tree
Hide file tree
Showing 31 changed files with 85 additions and 11 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README-images/touchbaremojis-close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README-images/touchbaremojis-emojiicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README-images/touchbaremojis-emojis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README-images/touchbaremojis-f-keys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README-images/touchbaremojis-gif.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README-images/touchbaremojis-gif4.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README-images/touchbaremojis-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 74 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Touch Bar Emojis app 👆

![](README-images/touchbaremojis-gif4.gif)

*Touch Bar Emojis* is a small app (written in Swift) which displays a permanent emoji input view for any app (see below for more info), providing a faster access to emojis, including in apps that don't have an emoji button.

## Download

1. Make sure you have a Mac with a Touch Bar (or a virtual Touch Bar)

2. [Download the app here]()

## Features

* Display your most frequently used emojis (on 10.12: the most recently used emojis — MacOS 10.12 doesn't keep track on how many times an emoji is used — and starting in 10.13 your most frequently used emojis)

![](README-images/touchbaremojis-gif.gif)

* Add/remove apps that should show the permanent emoji view (for example apps such as Spotify shouldn't display the emoji view):

![](README-images/touchbaremojis-screenshot.png)

<img align="right" width="200px" src="README-images/touchbaremojis-character-viewer.gif">

* A button <img width="88px" src="README-images/touchbaremojis-emojis.png"> to display the emoji picker (it feels more natural than using the keyboard shortcut control + command + space)

* A close button <img width="64px" src="README-images/touchbaremojis-close.png"> to temporarily display an app's original Touch Bar view

* (to display the esc key in an app that displays the permanent emoji view, you can use the fn key (which displays the F keys as well as the esc key))

![](README-images/touchbaremojis-f-keys.png)

## How the App works

The app uses a private API for the Touch Bar (discovered by Alexsander Akers: [https://github.com/a2/touch-baer](https://github.com/a2/touch-baer)), which allows us to show/hide a custom view in top of the regular Touch Bar view.

```
+ (void)dismissSystemModalFunctionBar:(id)arg1;
+ (void)presentSystemModalFunctionBar:(id)arg1 systemTrayItemIdentifier:(id)arg2;
```

The view we show/hide consists of your most frequently used emojis. This list is retrieved from a preferences file. In 10.12, from:
```
~/Library/Preferences/com.apple.CharacterPicker.plist
```

and starting in 10.13, from:
```
~/Library/Preferences/com.apple.EmojiPreferences.plist
```

(From 10.13, MacOS will start keeping track of how often we use emojis, unlike 10.12 and prior which was only keeping track on the latest emojis used)

When switching app, *TBE* gets a notification and automatically show/hide the view depending on the apps you've added to the list.


## Installing

The app is a regular app — not a Menu Bar app or a system preference pane. It needs to stay open for the emoji custom view to be displayed (this is a beta version).

![MacDown logo](README-images/touchbaremojis-emojiicon.png)

## Emoji shortcuts

I also created another app, to create emoji shortcuts (faster than using the Touch Bar): [Momoji.io](https://momoji.io)

## Author

Gabriel Lorin

## License

This project is licensed under the MIT License

20 changes: 10 additions & 10 deletions TouchBarEmojis/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,61 +3,61 @@
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "icon-16.png",
"filename" : "icon-emoji2-16.png",
"scale" : "1x"
},
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "icon-33.png",
"filename" : "icon-emoji2-33.png",
"scale" : "2x"
},
{
"size" : "32x32",
"idiom" : "mac",
"filename" : "icon-32.png",
"filename" : "icon-emoji2-32.png",
"scale" : "1x"
},
{
"size" : "32x32",
"idiom" : "mac",
"filename" : "icon-64.png",
"filename" : "icon-emoji2-64.png",
"scale" : "2x"
},
{
"size" : "128x128",
"idiom" : "mac",
"filename" : "icon-128.png",
"filename" : "icon-emoji2-128.png",
"scale" : "1x"
},
{
"size" : "128x128",
"idiom" : "mac",
"filename" : "icon-257.png",
"filename" : "icon-emoji2-257.png",
"scale" : "2x"
},
{
"size" : "256x256",
"idiom" : "mac",
"filename" : "icon-256.png",
"filename" : "icon-emoji2-256.png",
"scale" : "1x"
},
{
"size" : "256x256",
"idiom" : "mac",
"filename" : "icon-513.png",
"filename" : "icon-emoji2-513.png",
"scale" : "2x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "icon-512.png",
"filename" : "icon-emoji2-512.png",
"scale" : "1x"
},
{
"size" : "512x512",
"idiom" : "mac",
"filename" : "icon.png",
"filename" : "icon-emoji2-1024.png",
"scale" : "2x"
}
],
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
2 changes: 1 addition & 1 deletion TouchBarEmojis/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@
<scene sceneID="R2V-B0-nI4">
<objects>
<windowController id="B8D-0N-5wS" customClass="WindowController" customModule="TouchBarEmojis" customModuleProvider="target" sceneMemberID="viewController">
<window key="window" title="🌴" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" visibleAtLaunch="NO" animationBehavior="default" id="IQv-IB-iLA">
<window key="window" title="👆" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" visibleAtLaunch="NO" animationBehavior="default" id="IQv-IB-iLA">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES" unifiedTitleAndToolbar="YES"/>
<rect key="contentRect" x="604" y="379" width="480" height="309"/>
<rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
Expand Down

0 comments on commit 229c3b0

Please sign in to comment.