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; cursor: pointer;
} }
.ircclient #chat .ircwrapper .chatarea .nicklist .nick:hover { .ircclient #chat .ircwrapper .chatarea .nicklist .nick:hover {
background-color: #b1ffc2; background-color: #aeebff;
} }
.ircclient #chat .ircwrapper .chatarea .nicklist .nick .nickname { .ircclient #chat .ircwrapper .chatarea .nicklist .nick .nickname {
font-size: 120%; font-size: 120%;
@ -388,7 +388,7 @@ body {
cursor: pointer; cursor: pointer;
} }
.message.type_simple.mentioned { .message.type_simple.mentioned {
background-color: #d4ffd4; background-color: #aeebff;
} }
.message.type_simple .timestamp { .message.type_simple .timestamp {
color: #696969; color: #696969;

View File

@ -12,6 +12,7 @@ window.irc = {
serverData: {}, serverData: {},
serverChatQueue: {}, serverChatQueue: {},
chatType: "simple", chatType: "simple",
documentTitle: "TeemantIRC"
}; };
window.clientdom = {connector: {}, settings: {}}; window.clientdom = {connector: {}, settings: {}};
@ -831,6 +832,8 @@ class Buffer {
clientdom.letterbox.scrollTop = this.lastscroll; clientdom.letterbox.scrollTop = this.lastscroll;
clientdom.currentNickname.innerHTML = irc.serverData[this.server].my_nick; clientdom.currentNickname.innerHTML = irc.serverData[this.server].my_nick;
irc.chat.changeTitle("TeemantIRC - "+this.title);
} }
renderMessages() { renderMessages() {
@ -1040,6 +1043,7 @@ class Settings extends Buffer {
clientdom.topicbar.innerHTML = ""; clientdom.topicbar.innerHTML = "";
clientdom.letterbox.innerHTML = ""; clientdom.letterbox.innerHTML = "";
clientdom.settings.frame.style.display = "block"; clientdom.settings.frame.style.display = "block";
irc.chat.changeTitle("TeemantIRC - Settings");
} }
} }
@ -1085,6 +1089,12 @@ class IRCConnector {
if(value == "true" || value == "1") if(value == "true" || value == "1")
clientdom.connector.secure.checked = true; clientdom.connector.secure.checked = true;
break; break;
case "password":
if(value == "true" || value == "1") {
clientdom.connector.pwtrigger.checked = true;
this.togglePassword();
}
break;
case "server": case "server":
case "host": case "host":
if(window.validators.iporhost(value)) if(window.validators.iporhost(value))
@ -1719,6 +1729,12 @@ class IRCChatWindow {
irc.socket.emit("userinput", {command: "join", server: server, message: "", arguments: channel}); 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) { render(buffer) {
let activeNow = this.getActiveBuffer(); let activeNow = this.getActiveBuffer();
this.input_handler.tabCompleteReset(); this.input_handler.tabCompleteReset();

View File

@ -250,7 +250,7 @@ body
.nick .nick
cursor: pointer; cursor: pointer;
&:hover &:hover
background-color: #b1ffc2; background-color: #aeebff;
.nickname .nickname
font-size: 120%; font-size: 120%;
.prefix .prefix
@ -339,7 +339,7 @@ body
.message .message
&.type_simple &.type_simple
&.mentioned &.mentioned
background-color: #d4ffd4; background-color: #aeebff;
.timestamp .timestamp
color: #696969; color: #696969;
&:before &:before