xtras/mathuaerknedam 151:8d8b05da14d3: Add placeholder icon to c...
commits at adium.im
commits at adium.im
Sun Nov 1 22:50:42 UTC 2009
details: http://hg.adium.im/xtras/mathuaerknedam/rev/8d8b05da14d3
revision: 151:8d8b05da14d3
author: mathuaerknedam
date: Sun Nov 01 16:50:27 2009 -0600
Add placeholder icon to classic variant when icons are enabled but the icon is missing. The placeholder icon is a sendercolor-hued Adiumy.
diffs (66 lines):
diff -r 7eac54e53e1e -r 8d8b05da14d3 Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Content.html
--- a/Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Content.html Fri Oct 30 23:06:16 2009 -0500
+++ b/Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Content.html Sun Nov 01 16:50:27 2009 -0600
@@ -1,7 +1,7 @@
<div class="%messageClasses% %service% %userIcons% xx-%senderScreenName%" style="background-color: %senderColor%;">
<img class="x-icon" src="%userIconPath%" />
<span class="x-iconmask" style="-webkit-mask-box-image: url(%userIconPath%);"></span>
- <span class="x-color" style="background-color: %senderColor%;"></span>
+ <span class="x-color" style="background-color: %senderColor%;" src="%userIconPath%"></span>
<span class="x-wrap">
<span class="x-sender" title="%senderPrefix% %senderScreenName%">%sender% </span>
<span class="x-rtime" title="%time{dd MMM yyyy}%">%time% </span>
diff -r 7eac54e53e1e -r 8d8b05da14d3 Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Mockup-SpecialCases.html
--- a/Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Mockup-SpecialCases.html Fri Oct 30 23:06:16 2009 -0500
+++ b/Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Mockup-SpecialCases.html Sun Nov 01 16:50:27 2009 -0600
@@ -7,7 +7,7 @@
</title>
<style type="text/css">
- @import url( "./Variants/Alternating.css" );
+ @import url( "./Variants/Classic.css" );
body
{
@@ -330,7 +330,7 @@
<div class="outgoing message SERVICE showIcons xx-TekJew" style="background-color: seagreen;">
<img class="x-icon" src="./buddy_icon.png" />
<span class="x-iconmask" style="-webkit-mask-box-image: url(./buddy_icon.png);"></span>
- <span class="x-color" style="background-color: seagreen"></span>
+ <span class="x-color" style="background-color: lime" src="buddy_icon.png"></span>
<span class="x-wrap">
<span class="x-sender" title="TekJew">Evan </span>
<span class="x-rtime" title="19 Apr 2004">12:48:02 </span>
diff -r 7eac54e53e1e -r 8d8b05da14d3 Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Variants/Classic.css
--- a/Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Variants/Classic.css Fri Oct 30 23:06:16 2009 -0500
+++ b/Smooth Operator ☿.AdiumMessageStyle/Contents/Resources/Variants/Classic.css Sun Nov 01 16:50:27 2009 -0600
@@ -108,7 +108,6 @@
background: rgba(240, 240, 240, .5);
}
-img[src*="buddy_icon.png"],
.message.hideIcons img.x-icon,
.IRC.message img.x-icon,
.consecutive.message img.x-icon,
@@ -390,6 +389,21 @@
display: none !important;
}
+.message.showIcons .x-color[src*="buddy_icon.png"]
+{
+ display: block;
+ width: 32px;
+ height: 32px;
+ -webkit-border-radius: 5px;
+ position: absolute;
+ left: 12px;
+ z-index: 99;
+ margin-top: -2px;
+ //background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, .75)), to(rgba(255, 255, 255, .25)));
+ -webkit-mask-box-image: url(../adiumy-mask.png);
+ //background-image: url(../billeyes.png);
+}
+
.message
{
background: none !important;
More information about the commits
mailing list