chore: improve readability

This commit is contained in:
Su-Yong
2025-10-12 14:28:29 +09:00
parent 4f716d8e0b
commit ffa61687bf
137 changed files with 2625 additions and 2626 deletions

View File

@ -54,7 +54,7 @@ export const onMainLoad = ({
return target;
};
ipcMain.handle('ytmd:menu-event', (event, commandId: number) => {
ipcMain.handle('peard:menu-event', (event, commandId: number) => {
const target = getMenuItemById(commandId);
if (target)
(

View File

@ -25,7 +25,7 @@ export const onRendererLoad = async ({
}: RendererContext<InAppMenuConfig>) => {
setConfig(await getConfig());
document.title = 'YouTube Music';
document.title = 'Pear Desktop';
const stylesheet = new CSSStyleSheet();
stylesheet.replaceSync(scrollStyle);
document.adoptedStyleSheets = [...document.adoptedStyleSheets, stylesheet];

View File

@ -278,7 +278,7 @@ export const PanelItem = (props: PanelItemProps) => {
};
const handleClick = async () => {
await window.ipcRenderer.invoke('ytmd:menu-event', props.commandId);
await window.ipcRenderer.invoke('peard:menu-event', props.commandId);
if (props.type === 'radio') {
props.onChange?.(!props.checked);
} else if (props.type === 'checkbox') {

View File

@ -3,7 +3,7 @@
--menu-bar-height: 32px;
}
/* youtube-music style */
/* original style */
ytmusic-app-layout {
overflow: auto scroll;
height: calc(100vh - var(--menu-bar-height, 36px));
@ -73,7 +73,7 @@ ytmusic-app-layout ytmusic-player-page[is-mweb-modernization-enabled] .side-pane
transform: translate(0, calc(var(--ytmusic-player-page-inner-height) - var(--ytmusic-player-page-tabs-header-height) - var(--ytmusic-player-page-player-bar-height) - var(--menu-bar-height, 32px) ));
}
/* ytm-bugs: see https://github.com/th-ch/youtube-music/issues/1737 */
/* ytm-bugs: see https://github.com/pear-devs/pear-desktop/issues/1737 */
html {
scrollbar-color: unset;
}