mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2024-11-22 05:23:09 +01:00
parent
aa17d80450
commit
a0c73596e4
@ -4,9 +4,10 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [next]
|
## [5.6.0]
|
||||||
|
|
||||||
- Made it clear in the readme that this tidal-hifi client supports High & Max audio settings. fixes #261
|
- Added support for Wayland (on by default) fixes [#262](https://github.com/Mastermindzh/tidal-hifi/issues/262) and [#157](https://github.com/Mastermindzh/tidal-hifi/issues/157)
|
||||||
|
- Made it clear in the readme that this tidal-hifi client supports High & Max audio settings. fixes [#261](https://github.com/Mastermindzh/tidal-hifi/issues/261)
|
||||||
- Fixed bug with theme files from user directory trying to load: "an error occurred reading the theme file"
|
- Fixed bug with theme files from user directory trying to load: "an error occurred reading the theme file"
|
||||||
- Fixed: config flags not being set correctly
|
- Fixed: config flags not being set correctly
|
||||||
- [DEV]:
|
- [DEV]:
|
||||||
@ -30,7 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- SPKChaosPhoenix updated the beautiful Tokyo Night theme:
|
- SPKChaosPhoenix updated the beautiful Tokyo Night theme:
|
||||||
|
|
||||||
![](./docs/images/tokyo-night.png)
|
![tidal with the tokyo night theme applied](./docs/images/tokyo-night.png)
|
||||||
|
|
||||||
## 5.2.0
|
## 5.2.0
|
||||||
|
|
||||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "tidal-hifi",
|
"name": "tidal-hifi",
|
||||||
"version": "5.5.0",
|
"version": "5.6.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "tidal-hifi",
|
"name": "tidal-hifi",
|
||||||
"version": "5.5.0",
|
"version": "5.6.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@electron/remote": "^2.0.10",
|
"@electron/remote": "^2.0.10",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tidal-hifi",
|
"name": "tidal-hifi",
|
||||||
"version": "5.5.0",
|
"version": "5.6.0",
|
||||||
"description": "Tidal on Electron with widevine(hifi) support",
|
"description": "Tidal on Electron with widevine(hifi) support",
|
||||||
"main": "ts-dist/main.js",
|
"main": "ts-dist/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
export const flags: { [key: string]: { flag: string; value?: string } } = {
|
export const flags: { [key: string]: { flag: string; value?: string }[] } = {
|
||||||
gpuRasterization: { flag: "enable-gpu-rasterization", value: undefined },
|
gpuRasterization: [{ flag: "enable-gpu-rasterization", value: undefined }],
|
||||||
disableHardwareMediaKeys: { flag: "disable-features", value: "HardwareMediaKeyHandling" },
|
disableHardwareMediaKeys: [{ flag: "disable-features", value: "HardwareMediaKeyHandling" }],
|
||||||
|
enableWaylandSupport: [
|
||||||
|
{ flag: "enable-features", value: "UseOzonePlatform" },
|
||||||
|
{ flag: "ozone-platform-hint", value: "auto" },
|
||||||
|
{ flag: "enable-features", value: "WaylandWindowDecorations" },
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
@ -30,6 +30,7 @@ export const settings = {
|
|||||||
root: "flags",
|
root: "flags",
|
||||||
disableHardwareMediaKeys: "flags.disableHardwareMediaKeys",
|
disableHardwareMediaKeys: "flags.disableHardwareMediaKeys",
|
||||||
gpuRasterization: "flags.gpuRasterization",
|
gpuRasterization: "flags.gpuRasterization",
|
||||||
|
enableWaylandSupport: "flags.enableWaylandSupport",
|
||||||
},
|
},
|
||||||
menuBar: "menuBar",
|
menuBar: "menuBar",
|
||||||
minimizeOnClose: "minimizeOnClose",
|
minimizeOnClose: "minimizeOnClose",
|
||||||
|
@ -20,10 +20,10 @@ export function setManagedFlagsFromSettings(app: App) {
|
|||||||
if (flagsFromSettings) {
|
if (flagsFromSettings) {
|
||||||
for (const [key, value] of Object.entries(flagsFromSettings)) {
|
for (const [key, value] of Object.entries(flagsFromSettings)) {
|
||||||
if (value) {
|
if (value) {
|
||||||
const { flag, value } = flags[key];
|
flags[key].forEach((flag) => {
|
||||||
|
Logger.log(`enabling command line option ${flag.flag} with value ${flag.value}`);
|
||||||
Logger.log(`enabling command line option ${flag} with value ${value}`);
|
setFlag(app, flag.flag, flag.value);
|
||||||
setFlag(app, flag, value);
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ import { ipcRenderer, shell } from "electron";
|
|||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import { globalEvents } from "../../constants/globalEvents";
|
import { globalEvents } from "../../constants/globalEvents";
|
||||||
import { settings } from "../../constants/settings";
|
import { settings } from "../../constants/settings";
|
||||||
|
import { Logger } from "../../features/logger";
|
||||||
import { settingsStore } from "./../../scripts/settings";
|
import { settingsStore } from "./../../scripts/settings";
|
||||||
import { getOptions, getOptionsHeader, getThemeListFromDirectory } from "./theming";
|
import { getOptions, getOptionsHeader, getThemeListFromDirectory } from "./theming";
|
||||||
|
|
||||||
@ -28,7 +29,8 @@ let adBlock: HTMLInputElement,
|
|||||||
updateFrequency: HTMLInputElement,
|
updateFrequency: HTMLInputElement,
|
||||||
enableListenBrainz: HTMLInputElement,
|
enableListenBrainz: HTMLInputElement,
|
||||||
ListenBrainzAPI: HTMLInputElement,
|
ListenBrainzAPI: HTMLInputElement,
|
||||||
ListenBrainzToken: HTMLInputElement;
|
ListenBrainzToken: HTMLInputElement,
|
||||||
|
enableWaylandSupport: HTMLInputElement;
|
||||||
|
|
||||||
function getThemeFiles() {
|
function getThemeFiles() {
|
||||||
const selectElement = document.getElementById("themesList") as HTMLSelectElement;
|
const selectElement = document.getElementById("themesList") as HTMLSelectElement;
|
||||||
@ -71,6 +73,7 @@ function handleFileUploads() {
|
|||||||
* Sync the UI forms with the current settings
|
* Sync the UI forms with the current settings
|
||||||
*/
|
*/
|
||||||
function refreshSettings() {
|
function refreshSettings() {
|
||||||
|
try {
|
||||||
adBlock.checked = settingsStore.get(settings.adBlock);
|
adBlock.checked = settingsStore.get(settings.adBlock);
|
||||||
api.checked = settingsStore.get(settings.api);
|
api.checked = settingsStore.get(settings.api);
|
||||||
customCSS.value = settingsStore.get<string, string[]>(settings.customCSS).join("\n");
|
customCSS.value = settingsStore.get<string, string[]>(settings.customCSS).join("\n");
|
||||||
@ -78,6 +81,7 @@ function refreshSettings() {
|
|||||||
disableHardwareMediaKeys.checked = settingsStore.get(settings.flags.disableHardwareMediaKeys);
|
disableHardwareMediaKeys.checked = settingsStore.get(settings.flags.disableHardwareMediaKeys);
|
||||||
enableCustomHotkeys.checked = settingsStore.get(settings.enableCustomHotkeys);
|
enableCustomHotkeys.checked = settingsStore.get(settings.enableCustomHotkeys);
|
||||||
enableDiscord.checked = settingsStore.get(settings.enableDiscord);
|
enableDiscord.checked = settingsStore.get(settings.enableDiscord);
|
||||||
|
enableWaylandSupport.checked = settingsStore.get(settings.flags.enableWaylandSupport);
|
||||||
gpuRasterization.checked = settingsStore.get(settings.flags.gpuRasterization);
|
gpuRasterization.checked = settingsStore.get(settings.flags.gpuRasterization);
|
||||||
menuBar.checked = settingsStore.get(settings.menuBar);
|
menuBar.checked = settingsStore.get(settings.menuBar);
|
||||||
minimizeOnClose.checked = settingsStore.get(settings.minimizeOnClose);
|
minimizeOnClose.checked = settingsStore.get(settings.minimizeOnClose);
|
||||||
@ -94,6 +98,9 @@ function refreshSettings() {
|
|||||||
enableListenBrainz.checked = settingsStore.get(settings.ListenBrainz.enabled);
|
enableListenBrainz.checked = settingsStore.get(settings.ListenBrainz.enabled);
|
||||||
ListenBrainzAPI.value = settingsStore.get(settings.ListenBrainz.api);
|
ListenBrainzAPI.value = settingsStore.get(settings.ListenBrainz.api);
|
||||||
ListenBrainzToken.value = settingsStore.get(settings.ListenBrainz.token);
|
ListenBrainzToken.value = settingsStore.get(settings.ListenBrainz.token);
|
||||||
|
} catch (error) {
|
||||||
|
Logger.log("Refreshing settings failed.", error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -146,7 +153,9 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
}
|
}
|
||||||
// Live update the view for ListenBrainz input, hide if disabled/show if enabled
|
// Live update the view for ListenBrainz input, hide if disabled/show if enabled
|
||||||
if (source.value === "on" && source.id === "enableListenBrainz") {
|
if (source.value === "on" && source.id === "enableListenBrainz") {
|
||||||
source.checked ? document.getElementById("listenbrainz__options").removeAttribute("hidden") : document.getElementById("listenbrainz__options").setAttribute("hidden", "true");
|
source.checked
|
||||||
|
? document.getElementById("listenbrainz__options").removeAttribute("hidden")
|
||||||
|
: document.getElementById("listenbrainz__options").setAttribute("hidden", "true");
|
||||||
}
|
}
|
||||||
ipcRenderer.send(globalEvents.storeChanged);
|
ipcRenderer.send(globalEvents.storeChanged);
|
||||||
});
|
});
|
||||||
@ -181,6 +190,7 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
disableHardwareMediaKeys = get("disableHardwareMediaKeys");
|
disableHardwareMediaKeys = get("disableHardwareMediaKeys");
|
||||||
enableCustomHotkeys = get("enableCustomHotkeys");
|
enableCustomHotkeys = get("enableCustomHotkeys");
|
||||||
enableDiscord = get("enableDiscord");
|
enableDiscord = get("enableDiscord");
|
||||||
|
enableWaylandSupport = get("enableWaylandSupport");
|
||||||
gpuRasterization = get("gpuRasterization");
|
gpuRasterization = get("gpuRasterization");
|
||||||
menuBar = get("menuBar");
|
menuBar = get("menuBar");
|
||||||
minimizeOnClose = get("minimizeOnClose");
|
minimizeOnClose = get("minimizeOnClose");
|
||||||
@ -199,7 +209,9 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
ListenBrainzToken = get("ListenBrainzToken");
|
ListenBrainzToken = get("ListenBrainzToken");
|
||||||
|
|
||||||
refreshSettings();
|
refreshSettings();
|
||||||
enableListenBrainz.checked ? document.getElementById("listenbrainz__options").removeAttribute("hidden") : document.getElementById("listenbrainz__options").setAttribute("hidden", "true");
|
enableListenBrainz.checked
|
||||||
|
? document.getElementById("listenbrainz__options").removeAttribute("hidden")
|
||||||
|
: document.getElementById("listenbrainz__options").setAttribute("hidden", "true");
|
||||||
|
|
||||||
addInputListener(adBlock, settings.adBlock);
|
addInputListener(adBlock, settings.adBlock);
|
||||||
addInputListener(api, settings.api);
|
addInputListener(api, settings.api);
|
||||||
@ -208,6 +220,7 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
addInputListener(disableHardwareMediaKeys, settings.flags.disableHardwareMediaKeys);
|
addInputListener(disableHardwareMediaKeys, settings.flags.disableHardwareMediaKeys);
|
||||||
addInputListener(enableCustomHotkeys, settings.enableCustomHotkeys);
|
addInputListener(enableCustomHotkeys, settings.enableCustomHotkeys);
|
||||||
addInputListener(enableDiscord, settings.enableDiscord);
|
addInputListener(enableDiscord, settings.enableDiscord);
|
||||||
|
addInputListener(enableWaylandSupport, settings.flags.enableWaylandSupport);
|
||||||
addInputListener(gpuRasterization, settings.flags.gpuRasterization);
|
addInputListener(gpuRasterization, settings.flags.gpuRasterization);
|
||||||
addInputListener(menuBar, settings.menuBar);
|
addInputListener(menuBar, settings.menuBar);
|
||||||
addInputListener(minimizeOnClose, settings.minimizeOnClose);
|
addInputListener(minimizeOnClose, settings.minimizeOnClose);
|
||||||
|
@ -258,6 +258,7 @@
|
|||||||
<input id="updateFrequency" type="number" class="text-input" name="updateFrequency" />
|
<input id="updateFrequency" type="number" class="text-input" name="updateFrequency" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="group">
|
<div class="group">
|
||||||
<p class="group__title">Flags</p>
|
<p class="group__title">Flags</p>
|
||||||
<div class="group__option">
|
<div class="group__option">
|
||||||
@ -295,6 +296,18 @@
|
|||||||
<span class="switch__slider"></span>
|
<span class="switch__slider"></span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="group__option">
|
||||||
|
<div class="group__description">
|
||||||
|
<h4>Wayland support</h4>
|
||||||
|
<p>
|
||||||
|
Adds a couple of Electron flags to help Tidal-hifi run smoothly on the Wayland window system.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<label class="switch">
|
||||||
|
<input id="enableWaylandSupport" type="checkbox" />
|
||||||
|
<span class="switch__slider"></span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -24,8 +24,9 @@ export const settingsStore = new Store({
|
|||||||
token: "",
|
token: "",
|
||||||
},
|
},
|
||||||
flags: {
|
flags: {
|
||||||
gpuRasterization: true,
|
|
||||||
disableHardwareMediaKeys: false,
|
disableHardwareMediaKeys: false,
|
||||||
|
enableWaylandSupport: true,
|
||||||
|
gpuRasterization: true,
|
||||||
},
|
},
|
||||||
menuBar: true,
|
menuBar: true,
|
||||||
minimizeOnClose: false,
|
minimizeOnClose: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user