[empathy/wip/ui-refresh: 1/6] add timestamp to classic style
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/wip/ui-refresh: 1/6] add timestamp to classic style
- Date: Sun, 9 Oct 2016 13:53:22 +0000 (UTC)
commit 4030edb7fd8f180cb9e65f9d9fca5c1d425cf536
Author: Frédéric Péters <fpeters 0d be>
Date: Fri May 1 16:08:37 2015 +0200
add timestamp to classic style
.../Contents/Resources/Content.html | 1 +
.../Contents/Resources/main.css | 17 +++++++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/data/themes/Classic.AdiumMessageStyle/Contents/Resources/Content.html
b/data/themes/Classic.AdiumMessageStyle/Contents/Resources/Content.html
index 3eaa3ef..aeb0caa 100644
--- a/data/themes/Classic.AdiumMessageStyle/Contents/Resources/Content.html
+++ b/data/themes/Classic.AdiumMessageStyle/Contents/Resources/Content.html
@@ -1,5 +1,6 @@
<div id="prepend"></div>
<div class="%messageClasses%" dir="%messageDirection%">
+ <span class="timestamp">[%time{H:m}%]</span>
<span class="sender">%sender%:</span>
<span class="message">%message%</span>
</div>
diff --git a/data/themes/Classic.AdiumMessageStyle/Contents/Resources/main.css
b/data/themes/Classic.AdiumMessageStyle/Contents/Resources/main.css
index 1950408..0f07433 100644
--- a/data/themes/Classic.AdiumMessageStyle/Contents/Resources/main.css
+++ b/data/themes/Classic.AdiumMessageStyle/Contents/Resources/main.css
@@ -65,3 +65,20 @@ div.message {
padding: 0.3ex 0;
line-height: 130%;
}
+
+span.timestamp {
+ color: black;
+ opacity: 0.2;
+ position: absolute;
+ right: 2px;
+ font-size: small;
+ -webkit-transition: all .2s ease-in-out;
+ border-radius: 3px;
+}
+
+span.timestamp:hover {
+ opacity: 0.8;
+ background: #666;
+ color: #eee;
+ z-index: 1000;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]