mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-02-01 06:52:17 +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
|
||||
|
||||
- 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
|
||||
|
||||
|
@ -49,7 +49,10 @@ function setFlags() {
|
||||
*
|
||||
*/
|
||||
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),
|
||||
icon,
|
||||
backgroundColor: options.backgroundColor,
|
||||
autoHideMenuBar: true,
|
||||
webPreferences: {
|
||||
preload: path.join(__dirname, "preload.js"),
|
||||
plugins: true,
|
||||
|
@ -68,8 +68,8 @@
|
||||
<p class="group__title">UI</p>
|
||||
<div class="group__option">
|
||||
<div class="group__description">
|
||||
<h4>Menubar</h4>
|
||||
<p>Show TIDAL Hi-Fi's menu bar.</p>
|
||||
<h4>Fixed menubar</h4>
|
||||
<p>Always show TIDAL Hi-Fi's menu bar.</p>
|
||||
</div>
|
||||
<label class="switch">
|
||||
<input id="menuBar" type="checkbox">
|
||||
|
@ -345,11 +345,8 @@ setInterval(function () {
|
||||
"app-name": appName,
|
||||
};
|
||||
|
||||
|
||||
|
||||
const titleOrArtistChanged = currentSong !== songDashArtistTitle;
|
||||
|
||||
|
||||
// update title, url and play info with new info
|
||||
setTitle(songDashArtistTitle);
|
||||
getTrackURL();
|
||||
|
Loading…
Reference in New Issue
Block a user