Issue #164: Taskbar icon not shown in linux mint.

This commit is contained in:
Jakub Melka 2024-02-27 19:37:41 +01:00
parent bdf7a957d5
commit d6f334c242
14 changed files with 74 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# Copyright (C) 2022-2023 Jakub Melka
# Copyright (C) 2022-2024 Jakub Melka
#
# This file is part of PDF4QT.
#
@ -33,6 +33,7 @@ add_executable(Pdf4QtDocDiff
settingsdockwidget.ui
resources.qrc
icon.rc
app.qrc
)
target_link_libraries(Pdf4QtDocDiff PRIVATE Pdf4QtLibCore Pdf4QtLibWidgets Qt6::Core Qt6::Gui Qt6::Widgets)

5
Pdf4QtDocDiff/app.qrc Normal file
View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>app-icon.svg</file>
</qresource>
</RCC>

View File

@ -38,6 +38,9 @@ int main(int argc, char *argv[])
parser.addPositionalArgument("file2", "The PDF file to be compared.");
parser.process(application);
QIcon appIcon(":/app-icon.svg");
QApplication::setWindowIcon(appIcon);
pdfdocdiff::MainWindow mainWindow(nullptr);
mainWindow.show();

View File

@ -1,4 +1,4 @@
# Copyright (C) 2022-2023 Jakub Melka
# Copyright (C) 2022-2024 Jakub Melka
#
# This file is part of PDF4QT.
#
@ -35,6 +35,7 @@ add_executable(Pdf4QtDocPageOrganizer
selectoutlinetoregroupdialog.ui
resources.qrc
icon.rc
app.qrc
)
target_link_libraries(Pdf4QtDocPageOrganizer PRIVATE Pdf4QtLibCore Pdf4QtLibWidgets Qt6::Core Qt6::Gui Qt6::Widgets)

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Vrstva_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="256px" height="256px" viewBox="-800.5 -14.5 256 256" enable-background="new -800.5 -14.5 256 256" xml:space="preserve">
<g>
<polygon fill="#C53620" points="-654.076,67.953 -654.076,-14.491 -758.945,-14.491 -758.945,117.975 -758.945,120.375
-758.945,121.983 -758.945,135.235 -758.945,150.061 -758.945,196.379 -758.945,207.838 -758.945,218.048 -758.945,224.3
-758.945,234.74 -758.945,241.49 -586.054,241.49 -586.054,67.953 "/>
<polygon fill="#6CBD45" points="-645.252,-14.448 -645.252,59.118 -586.054,59.118 "/>
</g>
<g>
<g>
<path fill="#FFFFFF" d="M-651.285,143.327h-41.79V99.759h41.79V143.327z M-687.518,137.766h30.668v-32.448h-30.668V137.766z"/>
</g>
<g>
<path fill="#FFFFFF" d="M-602.355,208.61h-41.794v-43.571h41.794V208.61z M-638.588,203.046h30.667v-32.455h-30.667V203.046z"/>
</g>
<g>
<path fill="#FFFFFF" d="M-651.316,208.61h-41.786v-43.571h41.786V208.61z M-687.541,203.046h30.665v-32.455h-30.665V203.046z"/>
</g>
<g>
<path fill="#FFFFFF" d="M-700.707,208.61H-742.5v-43.571h41.794V208.61z M-736.939,203.046h30.663v-32.455h-30.663V203.046z"/>
</g>
<g>
<path fill="#FFFFFF" d="M-620.547,156.549L-620.547,156.549v-5.325h-48.889v-10.675h-5.445v10.675h-48.94l0.003,5.325l0,0
c0,3.293,0,6.601-0.003,9.904c0,0.435-0.036,0.862-0.063,1.359h5.394v-11.115h43.583v11.115h5.476v-11.123h43.547v11.123h5.345
v-1.536C-620.547,163.037-620.539,159.787-620.547,156.549z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>app-icon.svg</file>
</qresource>
</RCC>

View File

@ -37,6 +37,9 @@ int main(int argc, char *argv[])
parser.addPositionalArgument("file", "The PDF file to open.");
parser.process(application);
QIcon appIcon(":/app-icon.svg");
QApplication::setWindowIcon(appIcon);
pdfdocpage::MainWindow mainWindow(nullptr);
mainWindow.show();

View File

@ -1,4 +1,4 @@
# Copyright (C) 2022 Jakub Melka
# Copyright (C) 2022-2024 Jakub Melka
#
# This file is part of PDF4QT.
#
@ -18,6 +18,7 @@
add_executable(Pdf4QtViewerLite
main.cpp
icon.rc
app.qrc
)
target_link_libraries(Pdf4QtViewerLite PRIVATE Pdf4QtLibCore Pdf4QtLibWidgets Pdf4QtViewer Qt6::Core Qt6::Gui Qt6::Widgets)

5
Pdf4QtViewerLite/app.qrc Normal file
View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>app-icon.svg</file>
</qresource>
</RCC>

View File

@ -1,4 +1,4 @@
// Copyright (C) 2021 Jakub Melka
// Copyright (C) 2021-2024 Jakub Melka
//
// This file is part of PDF4QT.
//
@ -37,6 +37,9 @@ int main(int argc, char *argv[])
parser.addPositionalArgument("file", "The PDF file to open.");
parser.process(application);
QIcon appIcon(":/app-icon.svg");
QApplication::setWindowIcon(appIcon);
pdfviewer::PDFViewerMainWindowLite mainWindow;
mainWindow.show();

View File

@ -1,4 +1,4 @@
# Copyright (C) 2022 Jakub Melka
# Copyright (C) 2022-2024 Jakub Melka
#
# This file is part of PDF4QT.
#
@ -18,6 +18,7 @@
add_executable(Pdf4QtViewerProfi
main.cpp
icon.rc
app.qrc
)
target_link_libraries(Pdf4QtViewerProfi PRIVATE Pdf4QtLibCore Pdf4QtLibWidgets Pdf4QtViewer Qt6::Core Qt6::Gui Qt6::Widgets)

View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>app-icon.svg</file>
</qresource>
</RCC>

View File

@ -1,4 +1,4 @@
// Copyright (C) 2021 Jakub Melka
// Copyright (C) 2021-2024 Jakub Melka
//
// This file is part of PDF4QT.
//
@ -43,6 +43,9 @@ int main(int argc, char *argv[])
parser.addPositionalArgument("file", "The PDF file to open.");
parser.process(application);
QIcon appIcon(":/app-icon.svg");
QApplication::setWindowIcon(appIcon);
pdfviewer::PDFViewerMainWindow mainWindow;
mainWindow.show();

View File

@ -1,4 +1,5 @@
CURRENT:
- Issue #164: Taskbar icon not shown in linux mint.
- Issue #161: Can it be possible to trust a certificate like in acrobat?
- Issue #123: Alternative software rendering backend (Blend2D)