From b163f604d1c3832e31129946d1227683312bbbe8 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Tue, 5 Sep 2017 11:13:38 +0200 Subject: importing 2.39-1 sources from https://repomirror.parabola.nu/other/iceape/iceape_2.39-1.branding.tar.xz --- src/branding/Makefile.in | 85 ++ src/branding/aboutIce.js | 71 ++ src/branding/aboutIce.manifest | 2 + src/branding/configure.sh | 4 + src/branding/ice.dtd | 13 + src/branding/ice.xhtml | 98 ++ src/branding/iceape_icon_plain.svg | 2118 ++++++++++++++++++++++++++++++++++ src/branding/iceape_logo_plain.svg | 2204 ++++++++++++++++++++++++++++++++++++ src/branding/jar.mn | 11 + src/branding/moz.build | 4 + 10 files changed, 4610 insertions(+) create mode 100644 src/branding/Makefile.in create mode 100644 src/branding/aboutIce.js create mode 100644 src/branding/aboutIce.manifest create mode 100644 src/branding/configure.sh create mode 100644 src/branding/ice.dtd create mode 100644 src/branding/ice.xhtml create mode 100644 src/branding/iceape_icon_plain.svg create mode 100644 src/branding/iceape_logo_plain.svg create mode 100644 src/branding/jar.mn create mode 100644 src/branding/moz.build (limited to 'src/branding') diff --git a/src/branding/Makefile.in b/src/branding/Makefile.in new file mode 100644 index 0000000..80c199e --- /dev/null +++ b/src/branding/Makefile.in @@ -0,0 +1,85 @@ +# Loosely based on suite/branding/Makefile.in + +DEPTH = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +ICON_SUFFIX=.png + +DESKTOP_ICONS = \ + abcardWindow \ + ablistWindow \ + addressbookWindow \ + bmPropsWindow \ + bookmark-window \ + default \ + downloadManager \ + editorWindow \ + findBookmarkWindow \ + findHistoryWindow \ + history-window \ + JSConsoleWindow \ + main-window \ + messengerWindow \ + msgcomposeWindow \ + $(NULL) + +GARBAGE += $(DIST)/bin/chrome/icons/default/iceape.png + +DESKTOP_ICONS_SMALL = $(patsubst %,%16,$(DESKTOP_ICONS)) +DESKTOP_ICONS_LARGE = $(patsubst %,%48,$(DESKTOP_ICONS)) + +DESKTOP_ICON_FILES = $(addsuffix $(ICON_SUFFIX), $(DESKTOP_ICONS) $(DESKTOP_ICONS_SMALL) $(DESKTOP_ICONS_LARGE)) iceape.png + +CHROME_DEPS = content/aboutRights.xhtml content/about.png content/icon64.png + +ALL_FILES = $(addprefix icons/gtk/,$(DESKTOP_ICON_FILES)) $(CHROME_DEPS) + +$(ALL_FILES):: + [ -d $(dir $@) ] || mkdir -p $(dir $@) + +content/about.png:: $(srcdir)/iceape_logo_plain.svg + rsvg-convert -w 300 -h 280 -o $@ $^ + +content/icon64.png:: $(srcdir)/iceape_icon_plain.svg + rsvg-convert -w 64 -h 64 -o $@ $^ + +icons/gtk/iceape.png icons/gtk/default.png icons/gtk/main-window.png:: $(srcdir)/iceape_icon_plain.svg + rsvg-convert -w 32 -h 32 -o $@ $^ + +icons/gtk/default16.png icons/gtk/main-window16.png:: $(srcdir)/iceape_icon_plain.svg + rsvg-convert -w 16 -h 16 -o $@ $^ + +icons/gtk/default48.png icons/gtk/main-window48.png:: $(srcdir)/iceape_icon_plain.svg + rsvg-convert -w 48 -h 48 -o $@ $^ + +$(foreach file,$(ALL_FILES),$(if $(wildcard $(topsrcdir)/suite/branding/$(file)),$(file))):: %: $(topsrcdir)/suite/branding/% + $(INSTALL) $^ $(dir $@) + +libs:: $(addprefix icons/gtk/,$(DESKTOP_ICON_FILES)) + $(INSTALL) $^ $(DIST)/bin/chrome/icons/default + +GARBAGE += $(addprefix $(DIST)/bin/chrome/icons/default/,$(DESKTOP_ICON_FILES)) + +GARBAGE_DIRS += content icons locales # The latter is created by the build system with no reason + +ICONS = $(foreach size,16 32 48 64 128,iceape$(size).png) +$(ICONS):: $(srcdir)/iceape_icon_plain.svg + rsvg-convert -w $(@:iceape%.png=%) -h $(@:iceape%.png=%) -o $@ $^ + +$(addprefix install-, $(ICONS)): install-%: % + [ -d $(DESTDIR)/usr/share/icons/hicolor/$(@:install-iceape%.png=%)x$(@:install-iceape%.png=%)/apps ] || mkdir -p $(DESTDIR)/usr/share/icons/hicolor/$(@:install-iceape%.png=%)x$(@:install-iceape%.png=%)/apps + install $(IFLAGS1) $^ $(DESTDIR)/usr/share/icons/hicolor/$(@:install-iceape%.png=%)x$(@:install-iceape%.png=%)/apps/iceape.png + +install:: $(addprefix install-, $(ICONS)) + [ -d $(DESTDIR)/usr/share/icons/hicolor/scalable/apps ] || mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps + install $(IFLAGS1) $(srcdir)/iceape_icon_plain.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/iceape.svg + +GARBAGE += $(ICONS) + +EXTRA_COMPONENTS := aboutIce.js + +include $(topsrcdir)/config/rules.mk diff --git a/src/branding/aboutIce.js b/src/branding/aboutIce.js new file mode 100644 index 0000000..e671bb2 --- /dev/null +++ b/src/branding/aboutIce.js @@ -0,0 +1,71 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is debAbout. + * + * The Initial Developer of the Original Code is + * Mike Hommey. + * Portions created by the Initial Developer are Copyright (C) 2007 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +const Cc = Components.classes; +const Ci = Components.interfaces; +const Cr = Components.results; +Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); + +var ice = Cc["@mozilla.org/xre/app-info;1"] + .getService(Ci.nsIXULAppInfo) + .QueryInterface(Ci.nsIXULRuntime).name.toLowerCase(); + +function AboutIce() {} + +AboutIce.prototype = { + QueryInterface: XPCOMUtils.generateQI([Ci.nsIAboutModule]), + classDescription: "about:" + ice, + classID: Components.ID("{5df05c89-5e9a-41f4-bd6a-700e4aa305fc}"), + contractID: "@mozilla.org/network/protocol/about;1?what=" + ice, + + newChannel: function(uri) + { + var ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); + var channel = ioService.newChannel("chrome://ice/content/ice.xhtml", null, null); + var securityManager = Cc["@mozilla.org/scriptsecuritymanager;1"].getService(Ci.nsIScriptSecurityManager); + var principal = securityManager.getCodebasePrincipal(uri); + channel.originalURI = uri; + channel.owner = principal; + return channel; + }, + + getURIFlags: function(uri) + { + return Ci.nsIAboutModule.URI_SAFE_FOR_UNTRUSTED_CONTENT; + } +} + +var NSGetModule = XPCOMUtils.generateNSGetModule([AboutIce]); diff --git a/src/branding/aboutIce.manifest b/src/branding/aboutIce.manifest new file mode 100644 index 0000000..0d22aa0 --- /dev/null +++ b/src/branding/aboutIce.manifest @@ -0,0 +1,2 @@ +component {5df05c89-5e9a-41f4-bd6a-700e4aa305fc} aboutIce.js +contract @mozilla.org/network/protocol/about;1?what=iceape {5df05c89-5e9a-41f4-bd6a-700e4aa305fc} diff --git a/src/branding/configure.sh b/src/branding/configure.sh new file mode 100644 index 0000000..ede62d0 --- /dev/null +++ b/src/branding/configure.sh @@ -0,0 +1,4 @@ +MOZ_APP_NAME=iceape +MOZ_APP_BASENAME=Iceape +MOZ_APP_DISPLAYNAME=Iceape +MOZ_APP_PROFILE=mozilla/seamonkey diff --git a/src/branding/ice.dtd b/src/branding/ice.dtd new file mode 100644 index 0000000..2ae5b86 --- /dev/null +++ b/src/branding/ice.dtd @@ -0,0 +1,13 @@ + + +fire and thunder +swept the land. But Mammon stirred in their hearts, and the beast +Foundered, and its Corpse arose, and commanded "thou shalt +not fly in my name." And the blazes shall freeze cold, and the souls +of the followers of Mammon shall learn to tremble in the +face of ice as they did before the fire.'> + +The Book of Ice, 10:13'> diff --git a/src/branding/ice.xhtml b/src/branding/ice.xhtml new file mode 100644 index 0000000..abba41a --- /dev/null +++ b/src/branding/ice.xhtml @@ -0,0 +1,98 @@ + + + %iceDTD; + + %directionDTD; +]> + + + + + +&ice.title; + + + + +

+&ice.quote; +

+ +

+&ice.from; +

+ + + diff --git a/src/branding/iceape_icon_plain.svg b/src/branding/iceape_icon_plain.svg new file mode 100644 index 0000000..2500ef5 --- /dev/null +++ b/src/branding/iceape_icon_plain.svg @@ -0,0 +1,2118 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/branding/iceape_logo_plain.svg b/src/branding/iceape_logo_plain.svg new file mode 100644 index 0000000..c73efd2 --- /dev/null +++ b/src/branding/iceape_logo_plain.svg @@ -0,0 +1,2204 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/branding/jar.mn b/src/branding/jar.mn new file mode 100644 index 0000000..5201d00 --- /dev/null +++ b/src/branding/jar.mn @@ -0,0 +1,11 @@ +comm.jar: +% content branding %content/branding/ + content/branding/about.png (content/about.png) + content/branding/icon64.png (content/icon64.png) + content/branding/aboutRights.xhtml (content/aboutRights.xhtml) + +ice.jar: +% content ice %content/ice/ +% locale ice en-US %locale/en-US/ice/ + content/ice/ice.xhtml (ice.xhtml) + locale/en-US/ice/ice.dtd (ice.dtd) diff --git a/src/branding/moz.build b/src/branding/moz.build new file mode 100644 index 0000000..1d04680 --- /dev/null +++ b/src/branding/moz.build @@ -0,0 +1,4 @@ +DIST_SUBDIR = 'suite' +export('DIST_SUBDIR') +JAR_MANIFESTS += ['jar.mn'] +EXTRA_COMPONENTS += ['aboutIce.js', 'aboutIce.manifest'] -- cgit v1.2.2