# HG changeset patch # User Elliott Sales de Andrade # Date 1330824736 0 # Node ID 7cd13ca747fc0682a171145dca2e1563a66a247b # Parent 97bf6c9ef9abe97632cd13df9b84f88dfed660ed Add a simple theme that replicates our current look. diff -r 97bf6c9ef9ab -r 7cd13ca747fc pidgin/gtkconv-theme.c --- 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; diff -r 97bf6c9ef9ab -r 7cd13ca747fc pidgin/themes/Contents/Info.plist --- /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 @@ + + + + + MessageViewVersion + 4 + CFBundleName + Default + CFBundleIdentifier + im.pidgin.Default.style + DefaultFontFamily + sans-serif + DefaultFontSize + 11 + + diff -r 97bf6c9ef9ab -r 7cd13ca747fc pidgin/themes/Contents/Resources/Content.html --- /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 @@ +
+ (%time%) +
%sender%:
+
%message%
+
+
diff -r 97bf6c9ef9ab -r 7cd13ca747fc pidgin/themes/Contents/Resources/Status.html --- /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 @@ +
+ %time% +
%message%
+
+
diff -r 97bf6c9ef9ab -r 7cd13ca747fc pidgin/themes/Contents/Resources/main.css --- /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; +} + diff -r 97bf6c9ef9ab -r 7cd13ca747fc pidgin/themes/Makefile.am --- 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)