#' + tag + 'TLToot '+
- ''+lang.lang_tags_realtime+''+lang.lang_del+' ';
+ if(nowPT!=tag){
+ console.log(nowPT+"/"+tag);
+ var ptt=lang.lang_tags_realtime;
+ var nowon="";
+ }else{
+ var ptt=lang.lang_tags_unrealtime;
+ var nowon="("+lang.lang_tags_realtime+")";
+ }
+ tags = tags + '#' + tag + ''+nowon+'TLToot '+
+ ''+ptt+''+lang.lang_del+' ';
});
if(obj.length>0){
$("#taglist").append("My Tags:" + tags);
@@ -106,6 +115,14 @@ function tagTL(a,b,c,d){
tl(a,b,acct_id,d);
}
function autoToot(tag){
- localStorage.setItem("stable",tag);
- Materialize.toast(lang.lang_tags_tagwarn +replace("{{tag}}" ,tag).replace("{{tag}}" ,tag),3000);
+ var nowPT=localStorage.getItem("stable")
+ if(nowPT==tag){
+ localStorage.removeItem("stable");
+ Materialize.toast(lang.lang_tags_unrealtime,3000);
+ }else{
+ localStorage.setItem("stable",tag);
+ Materialize.toast(lang.lang_tags_tagwarn.replace("{{tag}}" ,tag).replace("{{tag}}" ,tag),3000);
+ brInsert('#' + tag+" ")
+ }
+ favTag();
}
\ No newline at end of file
diff --git a/app/js/ui/menubar.js b/app/js/ui/menubar.js
new file mode 100644
index 00000000..74cffc58
--- /dev/null
+++ b/app/js/ui/menubar.js
@@ -0,0 +1,18 @@
+function quit(){
+ console.log("quit")
+ var electron = require("electron");
+ var ipc = electron.ipcRenderer;
+ ipc.send('quit', 'go');
+}
+function minimize(){
+ console.log("mini")
+ var electron = require("electron");
+ var ipc = electron.ipcRenderer;
+ ipc.send('minimize', 'go');
+}
+function maxToggle(){
+ console.log("max")
+ var electron = require("electron");
+ var ipc = electron.ipcRenderer;
+ ipc.send('maximize', 'go');
+}
\ No newline at end of file
diff --git a/app/js/ui/post-box.js b/app/js/ui/post-box.js
index e9fc1d50..05ce2081 100644
--- a/app/js/ui/post-box.js
+++ b/app/js/ui/post-box.js
@@ -1,6 +1,7 @@
/*ささやきボックス(Cr民並感)*/
//✕隠す
function hide() {
+ $("#right-side").hide()
$('#post-box').fadeOut()
$("#post-box").removeClass("appear")
$("#emoji").addClass("hide")
diff --git a/app/main.js b/app/main.js
index 2c34e679..38ab0479 100644
--- a/app/main.js
+++ b/app/main.js
@@ -83,7 +83,9 @@ function createWindow() {
var bit=process.arch;
if(platform=="linux"){
var arg={width:window_size.width,height:window_size.height,x:window_size.x,y:window_size.y,icon: __dirname + '/desk.png'}
- }else{
+ }else if(platform=="win32"){
+ var arg={width:window_size.width,height:window_size.height,x:window_size.x,y:window_size.y,simpleFullscreen:true}
+ }else if(platform=="darwin"){
var arg={width:window_size.width,height:window_size.height,x:window_size.x,y:window_size.y,simpleFullscreen:true}
}
mainWindow = new BrowserWindow(arg);
@@ -143,8 +145,13 @@ app.on('ready', createWindow);
var onError = function(err,response){
console.error(err,response);
};
-
var ipc = electron.ipcMain;
+ipc.on('minimize', function(e, args) {
+ mainWindow.minimize();
+});
+ipc.on('maximize', function(e, args) {
+ mainWindow.isMaximized() ? mainWindow.unmaximize() : mainWindow.maximize();
+});
ipc.on('native-notf', function(e, args) {
var platform=process.platform;
var bit=process.arch;
@@ -543,7 +550,7 @@ ipc.on('nano', function (e, x, y) {
window_pos = [0,0]; // デフォルトバリュー
}
var nanowindow = new BrowserWindow({width: 350, height: 200,
- "transparent": false, // ウィンドウの背景を透過
+ "transparent": false, // ウィンドウの背景を透過
"frame": false, // 枠の無いウィンドウ
"resizable": false });
nanowindow.loadURL('file://' + __dirname + '/nano.html');
diff --git a/app/view/en/index.html b/app/view/en/index.html
index 9b9f6d75..d5b89896 100644
--- a/app/view/en/index.html
+++ b/app/view/en/index.html
@@ -125,7 +125,6 @@ var tlid=0;
Markdownエディタを表示
-
visibility_off
@@ -202,6 +201,7 @@ var tlid=0;
+
@@ -879,4 +879,5 @@ var tlid=0;
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/app/view/en/setting.html b/app/view/en/setting.html
index d9de06a8..187176fe 100644
--- a/app/view/en/setting.html
+++ b/app/view/en/setting.html
@@ -255,6 +255,11 @@
+
+
{{actionBtns}}
+
+ {{actionBtnsDesc}}
+ {{alltoots}}{{icons}}
@@ -320,8 +325,9 @@
-
+
+
+
Default accounts of actions
Main account can be set on Account Manager.
@@ -462,6 +468,7 @@
X:Toggle toot box
Ctrl+Enter:Post
Ctrl+Enter+Shift:Post(secondary toot)
+
Alt+Enter:Secondary Toot Button
Ctrl+E:Make all notifications read
Esc:Hide toot box
F5:Super Reload
diff --git a/app/view/ja/index.html b/app/view/ja/index.html
index c896460a..0dd12cd5 100644
--- a/app/view/ja/index.html
+++ b/app/view/ja/index.html
@@ -125,7 +125,6 @@ var tlid=0;
Markdownエディタを表示
-
visibility_off
@@ -202,6 +201,7 @@ var tlid=0;
+
サーバーによって実装が異なります。
@@ -879,4 +879,5 @@ var tlid=0;
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/app/view/ja/setting.html b/app/view/ja/setting.html
index 750ac349..157658f6 100644
--- a/app/view/ja/setting.html
+++ b/app/view/ja/setting.html
@@ -255,6 +255,11 @@
+
+
@@ -879,4 +880,5 @@ var tlid=0;
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/app/view/make/language/setting.en.json b/app/view/make/language/setting.en.json
index 36629b9b..c6fa7b4f 100644
--- a/app/view/make/language/setting.en.json
+++ b/app/view/make/language/setting.en.json
@@ -104,6 +104,7 @@
"simple":"Only URL",
"mention":"URL and acct(mention to the user)",
"full":"URL, text and acct(mention to the user)",
+ "notqt":"Disabled(Hide buttons on TLs)",
"main":"Default accounts of actions",
"mainwarn":"Main account can be set on Account Manager.",
"lastacct":"Account you used recently",
diff --git a/app/view/make/language/setting.ja.json b/app/view/make/language/setting.ja.json
index 866fd2d5..f197cf22 100644
--- a/app/view/make/language/setting.ja.json
+++ b/app/view/make/language/setting.ja.json
@@ -104,6 +104,7 @@
"simple":"URLのみ",
"mention":"URLとアカウント名(相手に通知)",
"full":"本文・URL・アカウント名",
+ "notqt":"使わない(TL上にボタンも表示されません)",
"main":"投稿後や起動時のアカウント",
"mainwarn":"メインアカウントはアカウント設定で指定できます。投稿以外のアカウント選択にも影響します。",
"lastacct":"最後に使用したアカウント",
diff --git a/app/view/make/setting.sample.html b/app/view/make/setting.sample.html
index d8241e27..4cfb114f 100644
--- a/app/view/make/setting.sample.html
+++ b/app/view/make/setting.sample.html
@@ -255,6 +255,11 @@
+
+