feat: 完成windows与linux下的Titlebar (#1482)

* feat: 完成windows与linux下的Titlebar

* update

* fix: win titlebar

* 优化部分api命名

* 视觉效果更好的标题间距

* fix: Linux title没有居中

* update

* fix: Main style

* 向renderer公开IpcRenderer.on

* update
This commit is contained in:
memorydream 2022-04-09 00:19:58 +08:00 committed by GitHub
parent 24798a0bf3
commit 1444bbefa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 147 additions and 19 deletions

View file

@ -8,7 +8,13 @@ const Main = () => {
className='relative flex h-screen max-h-screen flex-grow flex-col overflow-y-auto bg-white dark:bg-[#1d1d1d]'
>
<Topbar />
<main id='main' className='mb-24 flex-grow px-8'>
<main
id='main'
className={classNames(
'mb-24 flex-grow px-8',
window.env?.isEnableTitlebar && 'mt-8'
)}
>
<Router />
</main>
</div>