xtras/mathuaerknedam 96:9f990b10dcd4: Experimental changes to fo...

commits at adium.im commits at adium.im
Thu Jul 30 21:13:30 UTC 2009


details:	http://hg.adium.im/xtras/mathuaerknedam/rev/9f990b10dcd4
revision:	96:9f990b10dcd4
author:		mathuaerknedam
date:		Thu Jul 30 16:12:07 2009 -0500

Experimental changes to focus mention indicators
Subject: xtras/mathuaerknedam 97:167629767efe: Improvements to all-by-sender javascript

details:	http://hg.adium.im/xtras/mathuaerknedam/rev/167629767efe
revision:	97:167629767efe
author:		mathuaerknedam
date:		Thu Jul 30 16:12:42 2009 -0500

Improvements to all-by-sender javascript

diffs (89 lines):

diff -r 524d5a055308 -r 167629767efe Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Footer.html
--- a/Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Footer.html	Wed Jul 29 11:47:18 2009 -0500
+++ b/Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Footer.html	Thu Jul 30 16:12:42 2009 -0500
@@ -8,7 +8,7 @@
 	var senderName = null;
 	while (!senderName) {
 		var nodeClass = node.className;
-		if (nodeClass.indexOf("message") >= 0 && nodeClass.indexOf("x-message") == -1) {
+		if (/(^|[\s])message/.test(nodeClass)) {
 			var parts = nodeClass.split(" ");
 			senderName = parts[parts.length - 1];
 		}
diff -r 524d5a055308 -r 167629767efe Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Mockup-SpecialCases.html
--- a/Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Mockup-SpecialCases.html	Wed Jul 29 11:47:18 2009 -0500
+++ b/Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Mockup-SpecialCases.html	Thu Jul 30 16:12:42 2009 -0500
@@ -7,7 +7,7 @@
 	</title>
 
 	<style type="text/css">
-		@import url( "./Variants/Classic.css" );
+		@import url( "./Variants/Icon-Time1.css" );
 
 		body
 		{
@@ -334,6 +334,8 @@
 	<span id="insert"></span>
 </div>
 
+<hr id="focus" style="position: absolute; top: 109px;">
+
 </div>
 <script type="text/javascript">
 var highlightActive = false;
@@ -345,7 +347,7 @@
 	var senderName = null;
 	while (!senderName) {
 		var nodeClass = node.className;
-		if (nodeClass.indexOf("message") >= 0 && nodeClass.indexOf("x-message") == -1) {
+		if (/(^|[\s])message/.test(nodeClass)) {
 			var parts = nodeClass.split(" ");
 			senderName = parts[parts.length - 1];
 		}
diff -r 524d5a055308 -r 167629767efe Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Variants/Icon-Time1.css
--- a/Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Variants/Icon-Time1.css	Wed Jul 29 11:47:18 2009 -0500
+++ b/Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Variants/Icon-Time1.css	Thu Jul 30 16:12:42 2009 -0500
@@ -37,8 +37,20 @@
 	//right: 18px;
 	left: 0px;
 	right: 0px;
-	border-bottom: 2em solid red;
-	opacity: .25;
+	border: 0px;
+	border-bottom: none;
+	//width: 18px;
+}
+
+hr#focus:before
+{
+	position: absolute;
+	right: 5px;
+	font-family: Lucida Grande;
+	font-size: 10px;
+	content: "\25c0";
+	color: rgba(255, 0, 0, 1);
+	text-shadow: 0px 1px 1px rgba(255, 255, 255, 1);
 }
 
 .message:not(.consecutive),
@@ -64,8 +76,10 @@
 {
 	position: absolute;
 	right: 5px;
+	font-family: Lucida Grande;
 	font-size: 10px;
-	content: "\2605";
+	//content: "\2605";
+	content: "\25c0";
 	color: rgba(64, 64, 64, 1);
 	text-shadow: 0px 1px 1px rgba(255, 255, 255, 1);
 }
@@ -543,7 +557,7 @@
 	padding-right: 4px;
 }
 
-.x-hover + .x-hover
+.history.x-hover + .history.x-hover
 {
 	-webkit-box-shadow: 0px 2px 2px rgba(255, 255, 255, 1) !important;
 }


More information about the commits mailing list