Converted title to image.

This will provide a consistent look to the "gLabels Label Designer"
title across platforms where different fonts are available.  Will
need to look into how to accomodate translations of this title
at a later date.
This commit is contained in:
Jim Evins
2016-05-25 23:23:37 -04:00
parent 26e3aa37e3
commit 636f3deb91
6 changed files with 97 additions and 10 deletions
+2 -3
View File
@@ -33,12 +33,11 @@ AboutDialog::AboutDialog( QWidget *parent )
{
setupUi( this );
QString subtitle = tr("Label Designer");
QString titleImage = ":images/glabels-label-designer.png";
QString version = "x.x.x";
QString description = tr("A program to create labels and business cards.");
QString markup = "<p><span style='font-size:24pt; font-weight:600;'>gLabels </span><span style='font-size:16pt; color:#333333;'>"
+ subtitle + "</span></p>"
QString markup = QString("<p><img src='%1'></p>").arg( titleImage )
+ "<p>" + version + "</p>"
+ "<p>" + description + "</p>"
+ "<p>Copyright &copy; 2016 Jim Evins <evins@snaught.com></p>";
+2 -6
View File
@@ -33,12 +33,8 @@ StartupView::StartupView( MainWindow* window )
{
setupUi( this );
QString subtitle = tr("Label Designer");
QString markup = "<span style='font-size:24pt; font-weight:600;'>gLabels </span><span style='font-size:16pt; color:#333333;'>"
+ subtitle + "</span>";
titleLabel->setText( markup );
QString titleImage = ":images/glabels-label-designer.png";
titleLabel->setPixmap( QPixmap( titleImage ) );
}
+1
View File
@@ -2,6 +2,7 @@
<RCC version="1.0">
<qresource>
<file>images/glabels-label-designer.png</file>
<file>images/glabels-logo.png</file>
</qresource>
</RCC>
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

+81
View File
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="305.88602"
height="41.740002"
viewBox="0 0 305.88603 41.740003"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="glabels-label-designer.svg"
inkscape:export-filename="/home/evins/GLabels/QT/glabels-qt/glabels/images/glabels-label-designer.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="2.3150307"
inkscape:cx="153.86683"
inkscape:cy="13.854348"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
fit-margin-top="4"
fit-margin-left="4"
fit-margin-right="4"
fit-margin-bottom="4"
inkscape:window-width="1920"
inkscape:window-height="1128"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-147.16593,-381.12152)">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="149.48593"
y="412.28152"
id="text4136"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan4138"
x="149.48593"
y="412.28152"
style="font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;font-family:Ubuntu;-inkscape-font-specification:'Ubuntu Medium'"><tspan
style="font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;font-size:35px;font-family:Ubuntu;-inkscape-font-specification:'Ubuntu Medium'"
id="tspan4140">gLabels</tspan><tspan
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:25px;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;fill:#909090;fill-opacity:1"
id="tspan4144"> Label Designer</tspan></tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

+11 -1
View File
@@ -88,7 +88,16 @@
<string notr="true">padding:8px;</string>
</property>
<property name="text">
<string notr="true">&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:24pt; font-weight:600;&quot;&gt;gLabels &lt;/span&gt;&lt;span style=&quot; font-size:16pt; color:#909090;&quot;&gt;Label Designer&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string notr="true"/>
</property>
<property name="pixmap">
<pixmap resource="../images.qrc">:/images/glabels-label-designer.png</pixmap>
</property>
<property name="scaledContents">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
@@ -182,6 +191,7 @@
</widget>
<resources>
<include location="../icons.qrc"/>
<include location="../images.qrc"/>
</resources>
<connections>
<connection>