nothing at all ._.

This commit is contained in:
Evert Prants 2016-09-27 21:27:18 +03:00
parent 9884007a98
commit 1ed371ec0d
3 changed files with 20 additions and 4 deletions

View File

@ -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;

View File

@ -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();

View File

@ -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