This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
appcat
/
sonist
Archived
1
0
Fork 0

优化标题栏按钮;优化桌面歌词的切换

2.x
宇天 2019-01-20 18:25:53 +08:00
parent e649c8347a
commit 5d51976f49
5 changed files with 22 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -64,20 +64,26 @@ table {overflow:auto;display:table;width:100%;line-height:2.5rem;
&.focus {
.quit {background-image:url(/images/btn-close.svg);}
.min {background-image:url(/images/btn-mini.svg);}
.max {background-image:url(/images/btn-maxi.svg);}
// .max {background-image:url(/images/btn-maxi.svg);}
}
&:hover {
.quit {background-image:url(/images/btn-close_a.svg);}
.min {background-image:url(/images/btn-mini_a.svg);}
.max {background-image:url(/images/btn-maxi_a.svg);}
// .max {background-image:url(/images/btn-maxi_a.svg);}
}
}
.btn-box-win {position:absolute;right:1.2rem;top:0;width:auto;height:4rem;padding:.9rem 0;line-height:1.8rem;
.item,.opt {position:relative;display:inline-block;width:2.2rem;height:2.2rem;margin:0 .2rem;padding:.2rem;font-size:1.6rem;
.item,
.opt {position:relative;display:inline-block;width:2.2rem;height:2.2rem;margin:0 .2rem;padding:.2rem;font-size:1.6rem;
}
.item {text-align:center;
&:hover {background:rgba(0, 0, 0, .05);}
&.quit:hover {color:nth($cr, 1);}
&.disabled {color:nth($cp, 3);background:none}
}
.item:hover {transform:scale(1.1)}
.opt i {font-size:1.8rem;}

View File

@ -48,8 +48,8 @@
</div>
<span :if="theme === 2">
<i class="item do-icon-minimize" :click="minimize"></i>
<i class="item do-icon-maximize" :click="maximize"></i>
<i class="item do-icon-close" :click="quit(false)"></i>
<i class="item do-icon-maximize disabled" :click="maximize"></i>
<i class="item do-icon-close quit" :click="quit(false)"></i>
</span>
</nav>
</div>

View File

@ -223,7 +223,9 @@ Anot({
}
}
},
minimize() {},
minimize() {
WIN.minimize()
},
maximize() {},
activeModule(mod) {
@ -252,7 +254,7 @@ Anot({
if (LRC_WIN.isVisible()) {
LRC_WIN.hide()
} else {
LRC_WIN.show()
LRC_WIN.showInactive()
}
},
toggleModule(mod) {

View File

@ -136,8 +136,13 @@ app.once('ready', () => {
win = new BrowserWindow({
width: 600,
height: 360,
skipTaskbar: true,
maximizable: false,
minimizable: false,
resizable: false,
titleBarStyle: 'hiddenInset'
})
win.setMenuBarVisibility(false)
win.loadURL('app://sonist/depends.html')
}
})