提交 9f37caf7 编写于 作者: 米司特包's avatar 米司特包

feat: set borderless and optimize the interface

上级 f71243ba
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
} }
const onclickQuit = () => { const onclickQuit = () => {
window.go.main.App.Quit() window.runtime.Quit()
} }
...@@ -88,22 +88,28 @@ export default { ...@@ -88,22 +88,28 @@ export default {
@import url("./assets/css/reset.css"); @import url("./assets/css/reset.css");
@import url("./assets/css/font.css"); @import url("./assets/css/font.css");
html, html {
width: 100%;
height: 100%;
}
body { body {
width: 100%; width: 100%;
height: 100%; height: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
font-family: "JetBrainsMono"; font-family: "JetBrainsMono";
background-color: transparent;
} }
#app { #app {
position: relative; position: relative;
// width: 900px; // width: 900px;
// height: 520px; // height: 520px;
width: 100%;
height: 100%; height: 100%;
margin-right: 1px;
border-radius: 6px;
background-color: #dbbcef; background-color: #dbbcef;
overflow: hidden;
} }
.header { .header {
display: flex; display: flex;
......
...@@ -30,14 +30,14 @@ func main() { ...@@ -30,14 +30,14 @@ func main() {
MaxHeight: 1200, MaxHeight: 1200,
DisableResize: false, DisableResize: false,
Fullscreen: false, Fullscreen: false,
Frameless: false, Frameless: true,
StartHidden: false, StartHidden: false,
HideWindowOnClose: false, HideWindowOnClose: false,
RGBA: &options.RGBA{255,255,255,0}, RGBA: &options.RGBA{255,255,255,0},
Assets: assets, Assets: assets,
Windows: &windows.Options{ Windows: &windows.Options{
WebviewIsTransparent: true, WebviewIsTransparent: true,
WindowIsTranslucent: false, WindowIsTranslucent: true,
DisableWindowIcon: false, DisableWindowIcon: false,
}, },
// Mac: &mac.Options{ // Mac: &mac.Options{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册