功能(ui): 更新窗口创建函数,调整窗口位置和是否置顶

🔧 配置(ui): 更新全局样式,替换背景颜色为深灰色调
🔧 配置(ui): 更新搜索组件样式,调整输入框样式和背景颜色
This commit is contained in:
yuruo
2024-06-04 14:35:06 +08:00
parent 55260d5e58
commit de3c3cdc59
3 changed files with 9 additions and 8 deletions

View File

@@ -10,10 +10,10 @@ function createWindow(): void {
width: 600,
height: 600,
x: width - 600,
y: 0,
y: 50,
show: false,
transparent: true,
// alwaysOnTop: true,
alwaysOnTop: true,
autoHideMenuBar: true,
...(process.platform === 'linux' ? { icon } : {}),
webPreferences: {
@@ -22,7 +22,7 @@ function createWindow(): void {
}
})
// mainWindow.webContents.openDevTools()
mainWindow.webContents.openDevTools()
mainWindow.on('ready-to-show', () => {
mainWindow.show()
})

View File

@@ -1,3 +1,4 @@
body{
// @apply bg-green-50;
}
// @apply bg-slate-50;
}

View File

@@ -1,8 +1,8 @@
export default function Search(): JSX.Element {
return (
<div className="bg-slate-50 p-5 ">
<section className="bg-slate-100 p-3">
<input className="w-full outline-none text-2xl" />
<div className="bg-slate-50 p-3 rounded-lg">
<section className="bg-slate-200 p-3 rounded-lg">
<input className="w-full outline-none text-2xl text-slate-600 bg-slate-200" />
</section>
</div>
)