mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 19:31:46 +00:00
Re-order dependencies
This commit is contained in:
@ -1,9 +1,11 @@
|
|||||||
const { injectCSS } = require("../utils");
|
|
||||||
const { Menu } = require("electron");
|
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
|
const { Menu } = require("electron");
|
||||||
const electronLocalshortcut = require("electron-localshortcut");
|
const electronLocalshortcut = require("electron-localshortcut");
|
||||||
|
|
||||||
const config = require("../../config");
|
const config = require("../../config");
|
||||||
var { mainMenuTemplate } = require("../../menu");
|
const { mainMenuTemplate } = require("../../menu");
|
||||||
|
const { injectCSS } = require("../utils");
|
||||||
|
|
||||||
//check that menu doesn't get created twice
|
//check that menu doesn't get created twice
|
||||||
let done = false;
|
let done = false;
|
||||||
@ -11,6 +13,7 @@ let done = false;
|
|||||||
module.exports = (win) => {
|
module.exports = (win) => {
|
||||||
// css for custom scrollbar + disable drag area(was causing bugs)
|
// css for custom scrollbar + disable drag area(was causing bugs)
|
||||||
injectCSS(win.webContents, path.join(__dirname, "style.css"));
|
injectCSS(win.webContents, path.join(__dirname, "style.css"));
|
||||||
|
|
||||||
win.on("ready-to-show", () => {
|
win.on("ready-to-show", () => {
|
||||||
// (apparently ready-to-show is called twice)
|
// (apparently ready-to-show is called twice)
|
||||||
if (done) {
|
if (done) {
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
const customTitlebar = require("custom-electron-titlebar");
|
|
||||||
const { remote, ipcRenderer } = require("electron");
|
const { remote, ipcRenderer } = require("electron");
|
||||||
|
|
||||||
|
const customTitlebar = require("custom-electron-titlebar");
|
||||||
|
|
||||||
module.exports = () => {
|
module.exports = () => {
|
||||||
const myBar = new customTitlebar.Titlebar({
|
const myBar = new customTitlebar.Titlebar({
|
||||||
backgroundColor: customTitlebar.Color.fromHex("#050505"),
|
backgroundColor: customTitlebar.Color.fromHex("#050505"),
|
||||||
|
|||||||
Reference in New Issue
Block a user