Mercurial > pidgin
changeset 32733:7cd13ca747fc
Add a simple theme that replicates our current look.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 04 Mar 2012 01:32:16 +0000 |
parents | 97bf6c9ef9ab |
children | dfcad7368179 |
files | pidgin/gtkconv-theme.c pidgin/themes/Contents/Info.plist pidgin/themes/Contents/Resources/Content.html pidgin/themes/Contents/Resources/Status.html pidgin/themes/Contents/Resources/main.css pidgin/themes/Makefile.am |
diffstat | 6 files changed, 103 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)