TheDesk Mio (15.6.0)
This commit is contained in:
@@ -54,8 +54,8 @@ function xpand() {
|
||||
$("#x-btn").text("keyboard_arrow_right");
|
||||
localStorage.removeItem("xed");
|
||||
} else {
|
||||
$("#sidebar").css('width', '24px');
|
||||
$("#sidebar").css('min-width', '24px');
|
||||
$("#sidebar").css('width', '29px');
|
||||
$("#sidebar").css('min-width', '29px');
|
||||
$("#post-box").css('right', '27px');
|
||||
$("#sidebar").addClass("xed");
|
||||
$("#sidebar .big-menu i").removeClass('big-icon');
|
||||
|
@@ -293,6 +293,7 @@ climute();
|
||||
wordmute();
|
||||
wordemp();
|
||||
checkSpotify();
|
||||
oksload();
|
||||
function climute(){
|
||||
//クライアントミュート
|
||||
var cli = localStorage.getItem("client_mute");
|
||||
@@ -364,4 +365,14 @@ function notftest(){
|
||||
ipc.send('native-notf', ['TheDesk通知テスト','通知テスト(画像はあなたのアカウントのアイコンです)',localStorage.getItem('prof_0')]);
|
||||
}
|
||||
|
||||
}
|
||||
function oks(no){
|
||||
var txt=$("#oks-"+no).val();
|
||||
localStorage.setItem("oks-"+no, txt);
|
||||
Materialize.toast("キーボードショートカットを更新しました。", 3000);
|
||||
}
|
||||
function oksload(){
|
||||
if(localStorage.getItem("oks-1")){$("#oks-1").val(localStorage.getItem("oks-1"))}
|
||||
if(localStorage.getItem("oks-2")){$("#oks-2").val(localStorage.getItem("oks-2"))}
|
||||
if(localStorage.getItem("oks-3")){$("#oks-3").val(localStorage.getItem("oks-3"))}
|
||||
}
|
@@ -46,6 +46,22 @@ function checkSpotify(){
|
||||
var content="#NowPlaying {song} / {album} / {artist}\n{url} #SpotifyWithTheDesk";
|
||||
}
|
||||
$("#np-temp").val(content);
|
||||
var flag=localStorage.getItem("artwork");
|
||||
if(flag){
|
||||
$("#awk_yes").prop("checked", true);
|
||||
}else{
|
||||
$("#awk_no").prop("checked", true);
|
||||
}
|
||||
}
|
||||
function spotifyFlagSave(){
|
||||
var awk = $("[name=awk]:checked").val();
|
||||
if(awk=="yes"){
|
||||
localStorage.setItem("artwork","yes");
|
||||
Materialize.toast("アルバムアートワークを添付します。", 3000);
|
||||
}else{
|
||||
localStorage.removeItem("artwork");
|
||||
Materialize.toast("アルバムアートワークを添付しません。", 3000);
|
||||
}
|
||||
}
|
||||
function nowplaying(mode){
|
||||
if(mode=="spotify"){
|
||||
@@ -68,7 +84,10 @@ function nowplaying(mode){
|
||||
var img=item.album.images[0].url;
|
||||
var electron = require("electron");
|
||||
var ipc = electron.ipcRenderer;
|
||||
ipc.send('bmp-image', [img,0]);
|
||||
var flag=localStorage.getItem("artwork");
|
||||
if(flag){
|
||||
ipc.send('bmp-image', [img,0]);
|
||||
}
|
||||
var content=localStorage.getItem("np-temp");
|
||||
if(!content || content==""){
|
||||
var content="#NowPlaying {song} / {album} / {artist}\n{url}";
|
||||
|
Reference in New Issue
Block a user