app: add LibreVNA logo and use it as icon launcher

Now it's possible to identify LibreVNA with a logo. This logo would be
visible as an icon when app is launched.

A banner containing same logo has been added to README. Also,
a desktop launcher file is created to be used in GNU/Linux environments
enabling in this way the ability to add as favorite.

Closes #57
This commit is contained in:
Kiara Navarro 2021-11-06 21:35:18 -03:00
parent 8972af3f53
commit f3083d7069
No known key found for this signature in database
GPG Key ID: CDEFDCA3F6E04955
7 changed files with 20 additions and 2 deletions

View File

@ -1,4 +1,5 @@
# LibreVNA
![LibreVNA](Software/PC_Application/resources/banner.png)
**100kHz to 6GHz VNA**
This is the improved version of my [first attempt](https://www.github.com/jankae/VNA) at a VNA.

View File

@ -298,7 +298,8 @@ FORMS += \
DISTFILES +=
RESOURCES += \
icons.qrc
icons.qrc \
resources/librevna.qrc
CONFIG += c++17
REVISION = $$system(git rev-parse HEAD)

View File

@ -78,6 +78,8 @@ AppWindow::AppWindow(QWidget *parent)
// qDebug().setVerbosity(0);
qDebug() << "Application start";
this->setWindowIcon(QIcon(":/app/logo.png"));
parser.setApplicationDescription(qlibrevnaApp->applicationName());
parser.addHelpOption();
parser.addVersionOption();

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Name=LibreVNA GUI
Comment=Vector Network Analyzer for LibreVNA board
Exec=/opt/LibreVNA-GUI
Terminal=false
Type=Application
StartupNotify=true
Categories=Science;Engineering;Electronics
Icon=librevna.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/app">
<file alias="logo.png">librevna.png</file>
</qresource>
</RCC>