diff --git a/public/css/main.css b/public/css/main.css index 0c06cec..26f76f1 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -285,7 +285,7 @@ body { cursor: pointer; } .ircclient #chat .ircwrapper .chatarea .nicklist .nick:hover { - background-color: #b1ffc2; + background-color: #aeebff; } .ircclient #chat .ircwrapper .chatarea .nicklist .nick .nickname { font-size: 120%; @@ -388,7 +388,7 @@ body { cursor: pointer; } .message.type_simple.mentioned { - background-color: #d4ffd4; + background-color: #aeebff; } .message.type_simple .timestamp { color: #696969; diff --git a/public/js/main.js b/public/js/main.js index 3a662f9..fad200a 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -12,6 +12,7 @@ window.irc = { serverData: {}, serverChatQueue: {}, chatType: "simple", + documentTitle: "TeemantIRC" }; window.clientdom = {connector: {}, settings: {}}; @@ -831,6 +832,8 @@ class Buffer { clientdom.letterbox.scrollTop = this.lastscroll; clientdom.currentNickname.innerHTML = irc.serverData[this.server].my_nick; + + irc.chat.changeTitle("TeemantIRC - "+this.title); } renderMessages() { @@ -1040,6 +1043,7 @@ class Settings extends Buffer { clientdom.topicbar.innerHTML = ""; clientdom.letterbox.innerHTML = ""; clientdom.settings.frame.style.display = "block"; + irc.chat.changeTitle("TeemantIRC - Settings"); } } @@ -1085,6 +1089,12 @@ class IRCConnector { if(value == "true" || value == "1") clientdom.connector.secure.checked = true; break; + case "password": + if(value == "true" || value == "1") { + clientdom.connector.pwtrigger.checked = true; + this.togglePassword(); + } + break; case "server": case "host": if(window.validators.iporhost(value)) @@ -1719,6 +1729,12 @@ class IRCChatWindow { irc.socket.emit("userinput", {command: "join", server: server, message: "", arguments: channel}); } + changeTitle(title) { + // TODO: notify of hot buffers + document.title = title; + irc.documentTitle = title; + } + render(buffer) { let activeNow = this.getActiveBuffer(); this.input_handler.tabCompleteReset(); diff --git a/public/main.styl b/public/main.styl index 6af0f06..cabe842 100644 --- a/public/main.styl +++ b/public/main.styl @@ -250,7 +250,7 @@ body .nick cursor: pointer; &:hover - background-color: #b1ffc2; + background-color: #aeebff; .nickname font-size: 120%; .prefix @@ -339,7 +339,7 @@ body .message &.type_simple &.mentioned - background-color: #d4ffd4; + background-color: #aeebff; .timestamp color: #696969; &:before