feat: apply rollup 🚀 (#20)

Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
JellyBrick
2023-10-04 17:51:39 +09:00
committed by GitHub
parent 2c337953eb
commit 40745d3946
42 changed files with 1752 additions and 1339 deletions

View File

@ -1,10 +1,8 @@
import path from 'node:path';
import { ipcRenderer, Menu } from 'electron';
import { createPanel } from './menu/panel';
import { ElementFromFile } from '../utils';
import logo from '../../assets/youtube-music.svg';
import { isEnabled } from '../../config/plugins';
function $<E extends Element = Element>(selector: string) {
@ -18,7 +16,6 @@ export default () => {
const navBar = document.querySelector<HTMLDivElement>('#nav-bar-background');
if (isMacOS) titleBar.style.setProperty('--offset-left', '70px');
const logo = ElementFromFile(path.join(__dirname, '..' , '..' , 'assets', 'youtube-music.svg'));
logo.classList.add('title-bar-icon');
if (!isMacOS) titleBar.appendChild(logo);