mirror of
https://github.com/yuruotong1/autoMate.git
synced 2026-03-22 13:07:17 +08:00
✨ 功能(ui): 更新窗口创建函数,调整窗口位置和是否置顶
🔧 配置(ui): 更新全局样式,替换背景颜色为深灰色调 🔧 配置(ui): 更新搜索组件样式,调整输入框样式和背景颜色
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
body{
|
||||
// @apply bg-green-50;
|
||||
}
|
||||
// @apply bg-slate-50;
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user