mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-02-01 15:02:16 +01:00
feature: Add support to autoHide the menubar and showing it with the key. fixes #188
This commit is contained in:
parent
3a4d23738f
commit
63ccff97ea
@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
## 4.4.0
|
## 4.4.0
|
||||||
|
|
||||||
- Updated shortcut hint on the menubar to reflect the new `ctrl+=` shortcut.
|
- Updated shortcut hint on the menubar to reflect the new `ctrl+=` shortcut.
|
||||||
- Reverted icon path to `icon.png` instead of the hardcoded linux path
|
- Reverted icon path to `icon.png` instead of the hardcoded linux path.
|
||||||
|
- Add support to autoHide the menubar and showing it with the `alt` key.
|
||||||
|
|
||||||
## 4.3.1
|
## 4.3.1
|
||||||
|
|
||||||
|
@ -49,7 +49,10 @@ function setFlags() {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function syncMenuBarWithStore() {
|
function syncMenuBarWithStore() {
|
||||||
mainWindow.setMenuBarVisibility(store.get(settings.menuBar));
|
const fixedMenuBar = store.get(settings.menuBar);
|
||||||
|
|
||||||
|
mainWindow.autoHideMenuBar = !fixedMenuBar;
|
||||||
|
mainWindow.setMenuBarVisibility(fixedMenuBar);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -78,6 +81,7 @@ function createWindow(options = {}) {
|
|||||||
height: store && store.get(settings.windowBounds.height),
|
height: store && store.get(settings.windowBounds.height),
|
||||||
icon,
|
icon,
|
||||||
backgroundColor: options.backgroundColor,
|
backgroundColor: options.backgroundColor,
|
||||||
|
autoHideMenuBar: true,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload: path.join(__dirname, "preload.js"),
|
preload: path.join(__dirname, "preload.js"),
|
||||||
plugins: true,
|
plugins: true,
|
||||||
|
@ -68,8 +68,8 @@
|
|||||||
<p class="group__title">UI</p>
|
<p class="group__title">UI</p>
|
||||||
<div class="group__option">
|
<div class="group__option">
|
||||||
<div class="group__description">
|
<div class="group__description">
|
||||||
<h4>Menubar</h4>
|
<h4>Fixed menubar</h4>
|
||||||
<p>Show TIDAL Hi-Fi's menu bar.</p>
|
<p>Always show TIDAL Hi-Fi's menu bar.</p>
|
||||||
</div>
|
</div>
|
||||||
<label class="switch">
|
<label class="switch">
|
||||||
<input id="menuBar" type="checkbox">
|
<input id="menuBar" type="checkbox">
|
||||||
|
@ -345,11 +345,8 @@ setInterval(function () {
|
|||||||
"app-name": appName,
|
"app-name": appName,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const titleOrArtistChanged = currentSong !== songDashArtistTitle;
|
const titleOrArtistChanged = currentSong !== songDashArtistTitle;
|
||||||
|
|
||||||
|
|
||||||
// update title, url and play info with new info
|
// update title, url and play info with new info
|
||||||
setTitle(songDashArtistTitle);
|
setTitle(songDashArtistTitle);
|
||||||
getTrackURL();
|
getTrackURL();
|
||||||
|
Loading…
Reference in New Issue
Block a user