summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-07-18 15:01:33 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-07-18 15:01:33 (GMT)
commit1fb2408b0ef717f0e475894f646bcd4c1b90b65e (patch)
tree92486d4160d9b252374cc7ef2d0d6f2947712d24 /src
parent77c3cf1450b7780c2382d18036153d37d33877b8 (diff)
downloadDoxygen-1fb2408b0ef717f0e475894f646bcd4c1b90b65e.zip
Doxygen-1fb2408b0ef717f0e475894f646bcd4c1b90b65e.tar.gz
Doxygen-1fb2408b0ef717f0e475894f646bcd4c1b90b65e.tar.bz2
Replaced bitmap of doxygen logo by SVG version
Diffstat (limited to 'src')
-rw-r--r--src/htmlgen.cpp4
-rwxr-xr-xsrc/res2cc_cmd.py9
-rw-r--r--src/resourcemgr.cpp12
-rw-r--r--src/resourcemgr.h2
4 files changed, 24 insertions, 3 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index d869a2b..7b125af 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -1016,7 +1016,7 @@ void HtmlGenerator::writeTabData()
mgr.copyResource("nav_h.lum",dname);
mgr.copyResource("nav_f.lum",dname);
mgr.copyResource("bc_s.luma",dname);
- mgr.copyResource("doxygen.luma",dname);
+ mgr.copyResource("doxygen.svg",dname);
mgr.copyResource("closed.luma",dname);
mgr.copyResource("open.luma",dname);
mgr.copyResource("bdwn.luma",dname);
@@ -1181,7 +1181,7 @@ QCString HtmlGenerator::writeLogoAsString(const char *path)
result += "&#160;\n<a href=\"http://www.doxygen.org/index.html\">\n"
"<img class=\"footer\" src=\"";
result += path;
- result += "doxygen.png\" alt=\"doxygen\"/></a> ";
+ result += "doxygen.svg\" width=\"104\" height=\"31\" alt=\"doxygen\"/></a> ";
result += getDoxygenVersion();
result += " ";
return result;
diff --git a/src/res2cc_cmd.py b/src/res2cc_cmd.py
index 86d999d..268ae86 100755
--- a/src/res2cc_cmd.py
+++ b/src/res2cc_cmd.py
@@ -58,6 +58,7 @@ class File(object):
if ext=='.lum': return LumFile(directory,subdir,fname)
if ext=='.luma': return LumaFile(directory,subdir,fname)
if ext=='.css': return CSSFile(directory,subdir,fname)
+ if ext=='.svg': return SVGFile(directory,subdir,fname)
return VerbatimFile(directory,subdir,fname)
class VerbatimFile(File):
@@ -76,6 +77,14 @@ class CSSFile(File):
def writeDirEntry(self,outputFile):
print(" { \"%s\", \"%s\", %s_data, %s_len, Resource::CSS }," % (self.subdir,self.fileName,self.bareName,self.bareName), file=outputFile)
+class SVGFile(File):
+ def __init__(self,directory,subdir,fileName):
+ File.__init__(self,directory,subdir,fileName,"r")
+ def writeContents(self,outputFile):
+ self.writeBytes(self.inputFile.read(),outputFile)
+ def writeDirEntry(self,outputFile):
+ print(" { \"%s\", \"%s\", %s_data, %s_len, Resource::SVG }," % (self.subdir,self.fileName,self.bareName,self.bareName), file=outputFile)
+
class LumFile(File):
def __init__(self,directory,subdir,fileName):
File.__init__(self,directory,subdir,fileName,"r")
diff --git a/src/resourcemgr.cpp b/src/resourcemgr.cpp
index 4ba3388..6d2946c 100644
--- a/src/resourcemgr.cpp
+++ b/src/resourcemgr.cpp
@@ -150,6 +150,18 @@ bool ResourceMgr::copyResourceAs(const char *name,const char *targetDir,const ch
}
}
break;
+ case Resource::SVG:
+ {
+ QFile f(pathName);
+ if (f.open(IO_WriteOnly))
+ {
+ QCString buf(res->size+1);
+ memcpy(buf.rawData(),res->data,res->size);
+ FTextStream t(&f);
+ t << replaceColorMarkers(buf);
+ return TRUE;
+ }
+ }
}
}
else
diff --git a/src/resourcemgr.h b/src/resourcemgr.h
index 6e1587d..1959ec4 100644
--- a/src/resourcemgr.h
+++ b/src/resourcemgr.h
@@ -20,7 +20,7 @@
/** @brief Compiled resource */
struct Resource
{
- enum Type { Verbatim, Luminance, LumAlpha, CSS };
+ enum Type { Verbatim, Luminance, LumAlpha, CSS, SVG };
const char *category;
const char *name;
const unsigned char *data;