From d84395df8452696250ee5e20006369f49b99c860 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Thu, 7 Jul 2016 14:55:35 +0200 Subject: Improved logo-shaded-text.svg and its use in login window The old version cut off the blurred shade at the top and bottom. The new version has a square page and does not cut off the blurred shade of the Swift logo used in the image. Furthermore rendered the SVG to a 192x192 PNG, the exact dimensions used in the UI, using the `inkscape -e logo-shaded-text.png -w 192 -h 192 -z logo-shaded-text.svg` command. This change also works around QTBUG-46846. Test-Information: Verified that the login window of the UI looks nearly the same as before. It is a bit smaller since the blurred shade is not cut off anymore. Change-Id: Iee56d2a892572f45db7f93a2429455fd9d603eb6 diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp index bc859e9..6e9510d 100644 --- a/Swift/QtUI/QtLoginWindow.cpp +++ b/Swift/QtUI/QtLoginWindow.cpp @@ -82,9 +82,8 @@ QtLoginWindow::QtLoginWindow(UIEventStream* uiEventStream, SettingsProvider* set layout->addStretch(2); QLabel* logo = new QLabel(this); - logo->setPixmap(QPixmap(":/logo-shaded-text.256.png")); - logo->setScaledContents(true); - logo->setFixedSize(192,192); + QIcon swiftWithTextLogo = QIcon(":/logo-shaded-text.png"); + logo->setPixmap(swiftWithTextLogo.pixmap(QSize(192,192))); QWidget *logoWidget = new QWidget(this); QHBoxLayout *logoLayout = new QHBoxLayout(); diff --git a/Swift/QtUI/Swift.qrc b/Swift/QtUI/Swift.qrc index 829f6c8..1572d93 100644 --- a/Swift/QtUI/Swift.qrc +++ b/Swift/QtUI/Swift.qrc @@ -4,7 +4,7 @@ ../resources/logo/logo-icon-16.png ../resources/logo/logo-icon-16-win.png ../resources/logo/logo-chat-16.png - ../resources/logo/logo-shaded-text.256.png + ../resources/logo/logo-shaded-text.png ../resources/icons/online.png ../resources/icons/connecting.mng ../resources/icons/away.png diff --git a/Swift/resources/logo/logo-shaded-text.256.png b/Swift/resources/logo/logo-shaded-text.256.png deleted file mode 100644 index 5605ad0..0000000 Binary files a/Swift/resources/logo/logo-shaded-text.256.png and /dev/null differ diff --git a/Swift/resources/logo/logo-shaded-text.png b/Swift/resources/logo/logo-shaded-text.png new file mode 100644 index 0000000..8bc3bef Binary files /dev/null and b/Swift/resources/logo/logo-shaded-text.png differ diff --git a/Swift/resources/logo/logo-shaded-text.svg b/Swift/resources/logo/logo-shaded-text.svg index 68192e9..deb8340 100644 --- a/Swift/resources/logo/logo-shaded-text.svg +++ b/Swift/resources/logo/logo-shaded-text.svg @@ -1,5 +1,6 @@ + + inkscape:export-filename="/Users/remko/src/swift/resources/logo/blog.png" + viewBox="0 0 664.77 664.76749"> + inkscape:window-width="1680" + inkscape:window-height="1001" + inkscape:window-x="0" + inkscape:window-y="23" + inkscape:window-maximized="0" + borderlayer="false" + units="mm" + fit-margin-top="0" + fit-margin-left="0" + fit-margin-right="0" + fit-margin-bottom="0" /> @@ -87,33 +96,37 @@ image/svg+xml + + id="layer1" + transform="translate(12.742622,-46.453819)"> + transform="matrix(1.2286617,0,0,1.2286617,7.4362425,-127.54827)" + inkscape:connector-curvature="0" /> + d="m 193.43656,70.268137 c 287.92722,68.180183 238.20482,167.436943 118.45297,250.844003 -58.12086,20.04518 -131.0302,44.61602 -225.502214,72.97962 44.778344,-5.81974 85.482994,-9.72606 122.139034,-11.72484 -36.74308,19.14458 -73.49016,36.29884 -105.20622,50.58217 72.8059,-20.20762 135.29939,-37.1614 189.4096,-51.52165 198.27759,8.27722 212.89577,101.90982 29.68044,282.56119 C 597.96662,512.01913 670.40044,400.12246 506.63622,327.9892 590.78378,309.19484 622.61573,306.7045 640.40937,308.37264 597.63052,279.89376 567.99611,265.39937 534.89598,262.7134 607.6833,158.8684 452.52953,93.903087 193.43656,70.268137 Z M 537.96771,279.09811 c 5.44285,10e-6 9.82947,4.33091 9.82947,9.65797 10e-6,5.32707 -4.38663,9.65796 -9.82947,9.65796 -5.44286,0 -9.86789,-4.33089 -9.86789,-9.65796 0,-5.32706 4.42502,-9.65797 9.86789,-9.65797 z" + id="path2469" + inkscape:connector-curvature="0" /> Swift + x="22.412548" + y="557.24536">Swift -- cgit v0.10.2-6-g49f6