Modernize icons

Replace icons with more modern-looking icons from the KDE/Breeze project
This commit is contained in:
Martchus 2023-06-27 20:09:45 +02:00
parent 54402c2483
commit 17dad7dd20
26 changed files with 358 additions and 20 deletions

212
LICENSE.LESSER Normal file
View File

@ -0,0 +1,212 @@
Files: tray/resources/icons/*
widgets/resources/icons/*
This subset of The Breeze Icon Theme is
Copyright (C) 2014 Uri Herrera <uri_herrera@nitrux.in> and others
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
Clarification:
The GNU Lesser General Public License or LGPL is written for
software libraries in the first place. We expressly want the LGPL to
be valid for this artwork library too.
KDE Breeze theme icons is a special kind of software library, it is an
artwork library, it's elements can be used in a Graphical User Interface, or
GUI.
Source code, for this library means:
- where they exist, SVG;
- otherwise, if applicable, the multi-layered formats xcf or psd, or
otherwise png.
The LGPL in some sections obliges you to make the files carry
notices. With images this is in some cases impossible or hardly useful.
With this library a notice is placed at a prominent place in the directory
containing the elements. You may follow this practice.
The exception in section 5 of the GNU Lesser General Public License covers
the use of elements of this art library in a GUI.
https://vdesign.kde.org/
-----
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

View File

@ -81,6 +81,12 @@ The **PianoBooster** documentation and music are released under the Creative Com
[PianoBooster License](license.txt)
## Attribution for 3rd party content
The icons found under `images/breeze` are taken from the
[KDE/Breeze](https://invent.kde.org/frameworks/breeze-icons) project. The icon
`media-playback-from-start.svg` is not an exact copy but made of elements from Breeze icons.
# SOURCE CODE
As part of GNU General Public License the source code for **PianoBooster** is available from

View File

@ -164,13 +164,13 @@ void GuiTopBar::setPlayButtonState(bool checked, bool atTheEnd)
playButton->setChecked(checked);
if (checked)
{
playButton->setIcon(QIcon(":/images/stop.png"));
playButton->setIcon(QIcon(QStringLiteral(":/images/breeze/media-playback-stop.svg")));
playButton->setToolTip("");
playFromStartButton->setToolTip("");
}
else
{
playButton->setIcon(QIcon(":/images/play.png"));
playButton->setIcon(QIcon(QStringLiteral(":/images/breeze/media-playback-start.svg")));
playButton->setToolTip(tr("Start and stop playing music"));
playFromStartButton->setToolTip(tr("Playing music from the beginning"));
}

View File

@ -59,7 +59,7 @@
</property>
<property name="icon">
<iconset resource="application.qrc">
<normaloff>:/images/play-from-start.png</normaloff>:/images/play-from-start.png</iconset>
<normaloff>:/images/breeze/media-playback-from-start.svg</normaloff>:/images/breeze/media-playback-from-start.svg</iconset>
</property>
<property name="iconSize">
<size>
@ -82,7 +82,7 @@
</property>
<property name="icon">
<iconset resource="application.qrc">
<normaloff>:/images/play.png</normaloff>:/images/play.png</iconset>
<normaloff>:/images/breeze/media-playback-start.svg</normaloff>:/images/breeze/media-playback-start.svg</iconset>
</property>
<property name="iconSize">
<size>
@ -174,7 +174,7 @@
</property>
<property name="icon">
<iconset resource="application.qrc">
<normaloff>:/images/flag.png</normaloff>:/images/flag.png</iconset>
<normaloff>:/images/breeze/flag-red.svg</normaloff>:/images/breeze/flag-red.svg</iconset>
</property>
<property name="iconSize">
<size>

View File

@ -326,7 +326,7 @@ void QtWindow::addShortcutAction(const QString & key, const char * method)
void QtWindow::createActions()
{
m_openAct = new QAction(QIcon(":/images/open.png"), tr("&Open..."), this);
m_openAct = new QAction(QIcon(QStringLiteral(":/images/breeze/document-open.svg")), tr("&Open..."), this);
m_openAct->setShortcut(tr("Ctrl+O"));
m_openAct->setToolTip(tr("Open an existing file"));
connect(m_openAct, SIGNAL(triggered()), this, SLOT(open()));
@ -641,12 +641,15 @@ void QtWindow::about()
tr("This program is made available "
"under the terms of the GNU General Public License version 3 as published by "
"the Free Software Foundation.<br><br>"
)
) %
#ifdef USE_BUNDLED_RTMIDI
%
tr("This program also contains RtMIDI: realtime MIDI i/o C++ classes<br>") %
tr("Copyright(c) Gary P. Scavone, 2003-2019; All rights reserved.")
tr("Copyright(c) Gary P. Scavone, 2003-2019; All rights reserved.") %
QStringLiteral("<br><br>") %
#endif
tr("Fallback icons from <a href=\"https://invent.kde.org/frameworks/breeze-icons\">KDE/Breeze</a> "
"project (copyright © 2014 Uri Herrera <uri_herrera@nitrux.in> and others, see the according %1)").arg(
QStringLiteral("<a href=\"" APP_URL "/blob/custom/LICENSE.LESSER\">LGPL-3.0 license</a>"))
);
msgBox.setMinimumWidth(600);
msgBox.exec();

View File

@ -1,15 +1,15 @@
<RCC>
<qresource prefix="/" >
<qresource prefix="/">
<file>images/pianobooster.png</file>
<file>images/copy.png</file>
<file>images/cut.png</file>
<file>images/flag.png</file>
<file>images/new.png</file>
<file>images/open.png</file>
<file>images/paste.png</file>
<file>images/play-from-start.png</file>
<file>images/play.png</file>
<file>images/save.png</file>
<file>images/stop.png</file>
<file>images/breeze/document-new.svg</file>
<file>images/breeze/document-open.svg</file>
<file>images/breeze/document-save.svg</file>
<file>images/breeze/edit-copy.svg</file>
<file>images/breeze/edit-cut.svg</file>
<file>images/breeze/edit-paste.svg</file>
<file>images/breeze/flag-red.svg</file>
<file>images/breeze/media-playback-from-start.svg</file>
<file>images/breeze/media-playback-start.svg</file>
<file>images/breeze/media-playback-stop.svg</file>
</qresource>
</RCC>

View File

@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none"
d="M 3 2 L 3 14 L 8 14 L 8 13 L 4 13 L 4 3 L 9 3 L 9 6 L 12 6 L 12 9 L 13 9 L 13 6 L 13 5 L 10 2 L 9 2 L 3 2 z M 10 9 L 10 11 L 8 11 L 8 12 L 10 12 L 10 14 L 11 14 L 11 12 L 13 12 L 13 11 L 11 11 L 11 9 L 10 9 z "
class="ColorScheme-Text"
/>
</svg>

After

Width:  |  Height:  |  Size: 546 B

View File

@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
</defs>
<path
style="fill:currentColor;fill-opacity:1;stroke:none"
d="M 3 2 L 3 14 L 6 14 L 6 13 L 4 13 L 4 3 L 9 3 L 9 6 L 12 6 L 12 8 L 13 8 L 13 5 L 10 2 L 9 2 L 3 2 z M 7 8 L 7 14 L 13 14 L 13 9 L 11 9 L 10 8 L 7 8 z M 8 10 L 12 10 L 12 13 L 8 13 L 8 10 z "
class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 526 B

View File

@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none"
d="M 2 2 L 2 14 L 3 14 L 4 14 L 10 14 L 11 14 L 12 14 L 14 14 L 14 4.28125 L 11.71875 2 L 11.6875 2 L 11 2 L 4 2 L 3 2 L 2 2 z M 3 3 L 4 3 L 5 3 L 5 6 L 5 7 L 11 7 L 11 6 L 11 3 L 11.28125 3 L 13 4.71875 L 13 5 L 13 13 L 12 13 L 12 9 L 11 9 L 5 9 L 3.96875 9 L 3.96875 13 L 3 13 L 3 3 z M 6 3 L 7.90625 3 L 7.90625 6 L 6 6 L 6 3 z M 5 10 L 6 10 L 10 10 L 11 10 L 11 13 L 10 13 L 6 13 L 5 13 L 5 10 z "
class="ColorScheme-Text"
/>
</svg>

After

Width:  |  Height:  |  Size: 733 B

View File

@ -0,0 +1,11 @@
<!DOCTYPE svg>
<svg viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
</defs>
<path class="ColorScheme-Text" style="fill:currentColor; fill-opacity:1; stroke:none" d="M 3 2 L 3 12 L 6 12 L 6 14 L 14 14 L 14 7 L 11 4 L 10 4 L 8 2 L 3 2 Z M 4 3 L 7 3 L 7 4 L 6 4 L 6 11 L 4 11 L 4 3 Z M 7 5 L 10 5 L 10 8 L 13 8 L 13 13 L 7 13 L 7 5 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 534 B

View File

@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none"
d="M 5 2 C 4.567 2.75 4.34825 2.75 4.78125 3.5 L 7.40625 8 L 5.90625 10.21875 C 5.63425 10.08075 5.325 10 5 10 C 3.895 10 3 10.895 3 12 C 3 13.105 3.895 14 5 14 C 6.105 14 7 13.105 7 12 C 7 11.595 6.86325 11.22125 6.65625 10.90625 C 6.65125 10.89825 6.66125 10.882 6.65625 10.875 L 7.09375 10.25 C 7.89575 10.225 8.008 9.65725 8.5 9.65625 C 8.511 9.65625 8.52025 9.65525 8.53125 9.65625 L 8.5625 9.71875 L 9.34375 10.875 L 9.34375 10.90625 C 9.13775 11.22125 8.9980469 11.595 8.9980469 12 C 8.9980469 13.105 9.8930469 14 10.998047 14 C 12.103047 14 12.998047 13.105 12.998047 12 C 12.998047 10.895 12.103047 10 10.998047 10 C 10.673047 10 10.36475 10.08075 10.09375 10.21875 L 8.59375 8 C 8.59375 8 11.22875 3.492 11.21875 3.5 C 11.65175 2.75 11.431047 2.75 10.998047 2 L 7.9980469 7.125 L 5 2 z M 7.9980469 8 L 8 8 C 8.276 8 8.5 8.224 8.5 8.5 C 8.5 8.754 8.3075 8.968 8.0625 9 L 7.9375 9 C 7.6925 8.968 7.4980469 8.754 7.4980469 8.5 C 7.4980469 8.224 7.7220469 8 7.9980469 8 z M 4.9980469 11 C 5.5500469 11 5.9980469 11.448 5.9980469 12 C 5.9980469 12.552 5.5500469 13 4.9980469 13 C 4.4460469 13 3.9980469 12.552 3.9980469 12 C 3.9980469 11.448 4.4460469 11 4.9980469 11 z M 10.998047 11 C 11.550047 11 11.998047 11.448 11.998047 12 C 11.998047 12.552 11.550047 13 10.998047 13 C 10.446047 13 9.9980469 12.552 9.9980469 12 C 9.9980469 11.448 10.446047 11 10.998047 11 z "
class="ColorScheme-Text"
/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none"
d="M 5 2 L 5 3 L 3 3 L 3 14 L 7 14 L 8 14 L 12 14 L 13 14 L 13 13 L 13 9 L 13 3 L 11 3 L 11 2 L 5 2 z M 4 4 L 5 4 L 5 5 L 11 5 L 11 4 L 12 4 L 12 6 L 12 12 L 12 13 L 8 13 L 7 13 L 4 13 L 4 12 L 4 6 L 4 4 z M 5 7 L 5 8 L 10 8 L 10 7 L 5 7 z M 5 10 L 5 11 L 8 11 L 8 10 L 5 10 z "
class="ColorScheme-Text"
/>
</svg>

After

Width:  |  Height:  |  Size: 612 B

View File

@ -0,0 +1,16 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
</defs>
<g transform="translate(-421.71-531.79)" style="fill-rule:evenodd">
<path d="m423.71 533.79h1v12h-1z"
class="ColorScheme-Text"
style="fill:currentColor;fill-opacity:1;stroke:none"
/>
<path d="m424.71 533.79l5 1v1l6 2-2 1 2 1-6 1v-1l-5 1z" style="fill:#da4453"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 524 B

View File

@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
<path d="m 2,8 v 6 H 0 V 2 h 2 z" class="ColorScheme-Text" fill="currentColor"/>
<path d="M 3,2 V 14.000001 L 15,8 Z" class="ColorScheme-Text" fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 373 B

View File

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
<path d="m2 2v12l12-6z" class="ColorScheme-Text" fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 275 B

View File

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
<path d="m2 2h12v12h-12z" class="ColorScheme-Text" fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 852 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 B