Comparing version 0.9.1 to 0.9.2
@@ -227,7 +227,7 @@ 'use strict'; | ||
function toggleSideBar() { | ||
// Make side bar visible & adjust left margin | ||
document.documentElement.classList.toggle('side-bar-visible', config.get('sideBarVisible')); | ||
// Hide side bar & adjust left margin | ||
document.documentElement.classList.toggle('side-bar-hidden', config.get('sideBarHidden')); | ||
if (process.platform === 'darwin') { | ||
// Macos visual tweak | ||
document.documentElement.classList.toggle('side-bar-visible-macos', !config.get('sideBarVisible')); | ||
document.documentElement.classList.toggle('side-bar-hidden-macos', config.get('sideBarHidden')); | ||
} | ||
@@ -238,3 +238,3 @@ } | ||
// Toggle on and off the side bar | ||
config.set('sideBarVisible', !config.get('sideBarVisible')); | ||
config.set('sideBarHidden', !config.get('sideBarHidden')); | ||
toggleSideBar(); | ||
@@ -250,3 +250,3 @@ }); | ||
// Toggle on and off the menu bar | ||
config.set('menuBarVisible', !config.get('menuBarVisible')); | ||
config.set('menuBarHidden', !config.get('menuBarHidden')); | ||
toggleMenuBar(); | ||
@@ -253,0 +253,0 @@ }); |
@@ -11,4 +11,4 @@ 'use strict'; | ||
}, | ||
menuBarVisible: true, | ||
sideBarVisible: true, | ||
menuBarHidden: false, | ||
sideBarHidden: false, | ||
launchMinimized: false, | ||
@@ -15,0 +15,0 @@ autoNightMode: false, |
{ | ||
"name": "Tusk v0.9.1", | ||
"name": "Tusk v0.9.2", | ||
"url": "https://github.com/klauscfhq/tusk/releases/latest", | ||
"version": "0.9.1" | ||
"version": "0.9.2" | ||
} |
12
index.js
@@ -171,3 +171,8 @@ 'use strict'; | ||
// Check if the menu bar was activated | ||
if (config.get('menuBarVisible')) { | ||
if (config.get('menuBarHidden')) { | ||
// Hide the menu bar | ||
mainWindow.setMenuBarVisibility(false); | ||
// Restore ALT key toggling | ||
mainWindow.setAutoHideMenuBar(true); | ||
} else { | ||
// Make the menu bar persistently visible | ||
@@ -177,7 +182,2 @@ mainWindow.setMenuBarVisibility(true); | ||
mainWindow.setAutoHideMenuBar(false); | ||
} else { | ||
// Hide the menu bar | ||
mainWindow.setMenuBarVisibility(false); | ||
// Restore ALT key toggling | ||
mainWindow.setAutoHideMenuBar(true); | ||
} | ||
@@ -184,0 +184,0 @@ }); |
15
menu.js
@@ -31,5 +31,8 @@ 'use strict'; | ||
function activate(command) { | ||
const appWindow = BrowserWindow.getAllWindows()[0]; | ||
// Extra measure in order to be shown | ||
appWindow.show(); | ||
const [appWindow] = BrowserWindow.getAllWindows(); | ||
if (process.platform === 'darwin') { | ||
appWindow.restore(); | ||
} | ||
appWindow.webContents.send(command); | ||
@@ -458,3 +461,3 @@ } | ||
type: 'checkbox', | ||
checked: config.get('sideBarVisible'), | ||
checked: !config.get('sideBarHidden'), | ||
click() { | ||
@@ -938,3 +941,3 @@ activate('toggle-side-bar'); | ||
type: 'checkbox', | ||
checked: config.get('sideBarVisible'), | ||
checked: !config.get('sideBarHidden'), | ||
click() { | ||
@@ -946,3 +949,3 @@ activate('toggle-side-bar'); | ||
type: 'checkbox', | ||
checked: config.get('menuBarVisible'), | ||
checked: !config.get('menuBarHidden'), | ||
click() { | ||
@@ -949,0 +952,0 @@ activate('toggle-menu-bar'); |
{ | ||
"name": "tusk-app", | ||
"productName": "Tusk", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "🐘Refined Evernote desktop app", | ||
@@ -47,3 +47,3 @@ "license": "MIT", | ||
"devDependencies": { | ||
"electron": "1.7.10", | ||
"electron": "1.7.11", | ||
"electron-builder": "19.33.0", | ||
@@ -94,2 +94,8 @@ "electron-builder-squirrel-windows": "19.33.0", | ||
] | ||
}, | ||
{ | ||
"target": "snap", | ||
"arch": [ | ||
"x64" | ||
] | ||
} | ||
@@ -96,0 +102,0 @@ ] |
@@ -25,3 +25,3 @@ <h1 align="center"> | ||
## Features | ||
## Highlights | ||
@@ -57,4 +57,5 @@ - [Vibrant Themes](#vibrant-themes) 🍎 | ||
- [Description](#description) | ||
- [Highlights](#highlights) | ||
- [Install](#install) | ||
- [Features](#features) | ||
- [Install](#install) | ||
- [Related Apps](#related-apps) | ||
@@ -69,6 +70,10 @@ - [Team](#team) | ||
Macos users can directly install through [homebrew-cask](https://caskroom.github.io/) `brew cask install tusk` | ||
Macos users can directly install through [Homebrew Cask](https://caskroom.github.io/) `brew cask install tusk` | ||
Arch Linux users can directly install through [AUR](https://aur.archlinux.org/packages/tusk/) `yaourt tusk` | ||
#### Note | ||
The version available on `Homebrew Cask` or `AUR` may not be the latest. If that is the case, please consider downloading directly from the [Github releases](https://github.com/klauscfhq/tusk/releases/latest) page. | ||
## Features | ||
@@ -295,5 +300,5 @@ | ||
[![Klaus Sinani](https://avatars.githubusercontent.com/u/12670537?s=130)](https://github.com/klauscfhq) | [![Mario Sinani](https://avatars.githubusercontent.com/u/29512262?s=130)](https://github.com/mariocfhq) | [![Thanasis Gkanos](https://avatars1.githubusercontent.com/u/18072542?s=130)](https://github.com/ThanasisGkanos) | ||
--- | --- | --- | ||
[Klaus Sinani](https://github.com/klauscfhq) | [Mario Sinani](https://github.com/mariocfhq) | [Thanasis Gkanos](https://github.com/ThanasisGkanos) | ||
- Klaus Sinani [(@klauscfhq)](https://github.com/klauscfhq) | ||
- Mario Sinani [(@mariocfhq)](https://github.com/mariocfhq) | ||
- Thanasis Gkanos [(@ThanasisGkanos)](https://github.com/ThanasisGkanos) | ||
@@ -300,0 +305,0 @@ ## Disclaimer |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6464912
308
66
3176