mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-07-08 22:11:34 +08:00
@@ -28,7 +28,7 @@ const getDefaultWindowSizes = (): { width: number; height: number } => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setMiniWindowShape(win: BrowserWindow) {
|
export function setMiniWindowShape(win: BrowserWindow) {
|
||||||
const radius = 32
|
const radius = 32
|
||||||
const shape: Rectangle[] = []
|
const shape: Rectangle[] = []
|
||||||
|
|
||||||
@@ -226,7 +226,6 @@ windowList.set(IWindowList.MINI_WINDOW, {
|
|||||||
hash: 'mini-page'
|
hash: 'mini-page'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
setMiniWindowShape(window)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -203,8 +203,12 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus">
|
<style lang="stylus">
|
||||||
|
html, body, #app
|
||||||
|
background: transparent
|
||||||
#mini-page
|
#mini-page
|
||||||
background #409EFF
|
background: #409EFF;
|
||||||
|
border-radius: 32px;
|
||||||
|
overflow: hidden;
|
||||||
color #FFF
|
color #FFF
|
||||||
height 100vh
|
height 100vh
|
||||||
width 100vw
|
width 100vw
|
||||||
@@ -219,6 +223,7 @@ export default {
|
|||||||
border 4px solid #fff
|
border 4px solid #fff
|
||||||
box-sizing border-box
|
box-sizing border-box
|
||||||
cursor pointer
|
cursor pointer
|
||||||
|
|
||||||
&.linux
|
&.linux
|
||||||
border-radius 0
|
border-radius 0
|
||||||
background-size 100vh 100vw
|
background-size 100vh 100vw
|
||||||
@@ -238,4 +243,10 @@ export default {
|
|||||||
background rgba(0,0,0,0.3)
|
background rgba(0,0,0,0.3)
|
||||||
#file-uploader
|
#file-uploader
|
||||||
display none
|
display none
|
||||||
|
#mini-page img
|
||||||
|
width 100%
|
||||||
|
height 100%
|
||||||
|
border-radius 50%
|
||||||
|
display block
|
||||||
|
image-rendering: -webkit-optimize-contrast
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user