pidgin/android/libpurple

Add a simple theme that replicates our current look.

2012-03-04, Elliott Sales de Andrade
1beafd9dbad4
Parents 592ccaea6fb3
Children b1e1d50fe4ee
Add a simple theme that replicates our current look.
--- a/pidgin/gtkconv-theme.c Sun Mar 04 00:48:20 2012 +0000
+++ b/pidgin/gtkconv-theme.c Sun Mar 04 01:32:16 2012 +0000
@@ -123,7 +123,7 @@
if (!g_file_test(file, G_FILE_TEST_EXISTS)) {
g_free(file);
- file = g_build_filename(DATADIR, "pidgin", "theme", "conversation", "Template.html", NULL);
+ file = g_build_filename(DATADIR, "pidgin", "theme", "Template.html", NULL);
}
return file;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pidgin/themes/Contents/Info.plist Sun Mar 04 01:32:16 2012 +0000
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>MessageViewVersion</key>
+ <integer>4</integer>
+ <key>CFBundleName</key>
+ <string>Default</string>
+ <key>CFBundleIdentifier</key>
+ <string>im.pidgin.Default.style</string>
+ <key>DefaultFontFamily</key>
+ <string>sans-serif</string>
+ <key>DefaultFontSize</key>
+ <integer>11</integer>
+</dict>
+</plist>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pidgin/themes/Contents/Resources/Content.html Sun Mar 04 01:32:16 2012 +0000
@@ -0,0 +1,6 @@
+<div class="x-container %messageClasses% %messageDirection%">
+ <abbr class="x-time" title="%time{yyyy-MM-ddTHH:mm:ssZZ}%">(%time%)</abbr>
+ <div class="x-sender">%sender%:</div>
+ <div class="x-message">%message%</div>
+</div>
+<div id="insert"></div>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pidgin/themes/Contents/Resources/Status.html Sun Mar 04 01:32:16 2012 +0000
@@ -0,0 +1,5 @@
+<div class="x-status_container %messageClasses% %messageDirection%">
+ <abbr class="x-time" title="%time{yyyy-MM-ddTHH:mm:ssZZ}%">%time%</abbr>
+ <div class="x-message">%message%</div>
+</div>
+<div id="insert"></div>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pidgin/themes/Contents/Resources/main.css Sun Mar 04 01:32:16 2012 +0000
@@ -0,0 +1,61 @@
+body {
+ word-wrap: break-word;
+ word-break: break-word;
+}
+
+.x-container,
+.x-status_container
+{
+ line-height: 1.3em;
+ margin-bottom: 6px;
+}
+
+.x-container .x-time,
+.x-status_container .x-time
+{
+ display: inline;
+}
+
+.x-container .x-sender
+{
+ display: inline;
+ font-weight: bold;
+}
+
+.x-container .x-message,
+.x-status_container .x-message
+{
+ display: inline;
+}
+
+/* Colour-ify things */
+
+.x-container.incoming .x-time,
+.x-container.incoming .x-sender
+{
+ color: #cc0000;
+}
+
+.x-container.outgoing .x-time,
+.x-container.outgoing .x-sender
+{
+ color: #204a87;
+}
+
+.x-container.mention .x-time,
+.x-container.mention .x-sender
+{
+ color: #AF7F00;
+}
+
+.x-status_container
+{
+ color: #777777;
+}
+
+.x-status_container.error
+{
+ color: #ff0000;
+ font-weight: bold;
+}
+
--- a/pidgin/themes/Makefile.am Sun Mar 04 00:48:20 2012 +0000
+++ b/pidgin/themes/Makefile.am Sun Mar 04 01:32:16 2012 +0000
@@ -1,6 +1,18 @@
-themetemplatedir = $(datadir)/pidgin/theme/conversation
+themetemplatedir = $(datadir)/pidgin/theme
themetemplate_DATA = Template.html
+themecontentsdir = $(themetemplatedir)/Contents
+themecontents_DATA = Contents/Info.plist
+themeresourcesdir = $(themecontentsdir)/Resources
+themeresources_DATA = Contents/Resources/Content.html \
+ Contents/Resources/Status.html \
+ Contents/Resources/main.css
+themevariantsdir = $(themeresourcesdir)/Variants
+themevariants_DATA =
-EXTRA_DIST = $(themetemplate_DATA)
+EXTRA_DIST = \
+ $(themetemplate_DATA) \
+ $(themecontents_DATA) \
+ $(themeresources_DATA) \
+ $(themevariants_DATA)