ui: context menu tweaks
This commit is contained in:
parent
3919bad8bf
commit
dde3a732f7
2 changed files with 6 additions and 4 deletions
|
|
@ -112,7 +112,7 @@ class Toolbar {
|
|||
start.visible = !serverStarted
|
||||
stop.visible = !!serverStarted
|
||||
newWindow.visible = !!serverStarted
|
||||
menu.popup({window: remote.getCurrentWindow(), x: parseInt(PXSCALE), y: parseInt(40 * PXSCALE)})
|
||||
menu.popup({window: remote.getCurrentWindow(), x: parseInt(PXSCALE), y: parseInt(39 * PXSCALE)})
|
||||
})
|
||||
|
||||
menu.on('menu-will-close', ()=>{
|
||||
|
|
|
|||
|
|
@ -16,11 +16,13 @@ $line-height: 30rem;
|
|||
line-height: $line-height;
|
||||
font-family: $font-menu;
|
||||
letter-spacing: normal;
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
|
||||
.context-menu {
|
||||
position: absolute;
|
||||
left:100%;
|
||||
top:0;
|
||||
top:-3rem;
|
||||
opacity:0;
|
||||
pointer-events: none;
|
||||
margin-left: -1rem;
|
||||
|
|
@ -106,7 +108,7 @@ $line-height: 30rem;
|
|||
.separator{
|
||||
margin: 2rem 1rem;
|
||||
height: 1rem;
|
||||
background-color: var(--color-text);
|
||||
opacity: 0.1;
|
||||
background-color: var(--color-context-menu-text);
|
||||
opacity: 0.15;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue