2019-10-20 00:17:28 +02:00
|
|
|
/*
|
|
|
|
* Strawberry Music Player
|
|
|
|
* Copyright 2019, Jonas Kvinge <jonas@jkvinge.net>
|
|
|
|
*
|
|
|
|
* Strawberry is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Strawberry 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 General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with Strawberry. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-04-27 21:36:08 +02:00
|
|
|
#pragma once
|
|
|
|
|
2019-10-20 00:17:28 +02:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
#include <QMap>
|
|
|
|
|
|
|
|
namespace IconMapper {
|
|
|
|
|
|
|
|
struct IconProperties {
|
2020-04-27 21:36:08 +02:00
|
|
|
explicit IconProperties() : min_size(0), max_size(0), allow_system_icon(true) {}
|
|
|
|
IconProperties(const QStringList &_names, const int _min_size = 16, const int _max_size = 512, const bool _allow_system_icon = true) : names(_names), min_size(_min_size), max_size(_max_size), allow_system_icon(_allow_system_icon) {}
|
2019-10-20 00:17:28 +02:00
|
|
|
QStringList names;
|
|
|
|
int min_size;
|
|
|
|
int max_size;
|
2020-04-27 00:24:49 +02:00
|
|
|
bool allow_system_icon;
|
2019-10-20 00:17:28 +02:00
|
|
|
};
|
|
|
|
|
2021-06-20 19:04:08 +02:00
|
|
|
static const QMap<QString, IconProperties> iconmapper_ = { // clazy:exclude=non-pod-global-static
|
2019-10-20 00:17:28 +02:00
|
|
|
|
2020-04-27 21:36:08 +02:00
|
|
|
{ "albums", { {"media-optical"}} },
|
|
|
|
{ "alsa", { {}} },
|
|
|
|
{ "application-exit", { {}} },
|
|
|
|
{ "applications-internet", { {}} },
|
|
|
|
{ "bluetooth", { {"preferences-system-bluetooth", "bluetooth-active"}} },
|
|
|
|
{ "cdcase", { {"cdcover", "media-optical"}} },
|
|
|
|
{ "media-optical", { {"cd"}} },
|
|
|
|
{ "configure", { {}} },
|
|
|
|
{ "device-ipod-nano", { {}} },
|
|
|
|
{ "device-ipod", { {}} },
|
|
|
|
{ "device-phone", { {}} },
|
|
|
|
{ "device", { {"drive-removable-media-usb-pendrive"}} },
|
|
|
|
{ "device-usb-drive", { {}} },
|
|
|
|
{ "device-usb-flash", { {}} },
|
|
|
|
{ "dialog-error", { {}} },
|
|
|
|
{ "dialog-information", { {}} },
|
|
|
|
{ "dialog-ok-apply", { {}} },
|
|
|
|
{ "dialog-password", { {}} },
|
|
|
|
{ "dialog-warning", { {}} },
|
|
|
|
{ "document-download", { {}} },
|
|
|
|
{ "document-new", { {}} },
|
|
|
|
{ "document-open-folder", { {}} },
|
|
|
|
{ "document-open", { {}} },
|
|
|
|
{ "document-save", { {}} },
|
|
|
|
{ "document-search", { {}} },
|
|
|
|
{ "document-open-remote", { {}} },
|
|
|
|
{ "download", { {"applications-internet", "network-workgroup"}} },
|
|
|
|
{ "edit-clear-list", { {}} },
|
2020-04-27 00:24:49 +02:00
|
|
|
{ "edit-clear-locationbar-ltr", { {}, 0, 0, false } },
|
2020-04-27 21:36:08 +02:00
|
|
|
{ "edit-copy", { {}} },
|
|
|
|
{ "edit-delete", { {}} },
|
|
|
|
{ "edit-find", { {}} },
|
|
|
|
{ "edit-redo", { {}} },
|
|
|
|
{ "edit-rename", { {}} },
|
|
|
|
{ "edit-undo", { {}} },
|
|
|
|
{ "electrocompaniet", { {}} },
|
|
|
|
{ "equalizer", { {"view-media-equalizer"}} },
|
|
|
|
{ "folder-new", { {}} },
|
|
|
|
{ "folder", { {}} },
|
|
|
|
{ "folder-sound", { {"folder-music"}} },
|
|
|
|
{ "footsteps", { {"go-jump"}} },
|
|
|
|
{ "go-down", { {}} },
|
|
|
|
{ "go-home", { {}} },
|
|
|
|
{ "go-jump", { {}} },
|
|
|
|
{ "go-next", { {}} },
|
|
|
|
{ "go-previous", { {}} },
|
|
|
|
{ "go-up", { {}} },
|
|
|
|
{ "gstreamer", { {"phonon-gstreamer"}} },
|
|
|
|
{ "headset", { {"audio-headset"}} },
|
|
|
|
{ "help-hint", { {}} },
|
|
|
|
{ "intel", { {}} },
|
|
|
|
{ "jack", { {"audio-input-line"}} },
|
|
|
|
{ "keyboard", { {"input-keyboard"}} },
|
|
|
|
{ "list-add", { {}} },
|
|
|
|
{ "list-remove", { {}} },
|
|
|
|
{ "love", { {"heart", "emblem-favorite"}} },
|
|
|
|
{ "mcintosh-player", { {}} },
|
|
|
|
{ "mcintosh", { {}} },
|
|
|
|
{ "mcintosh-text", { {}} },
|
|
|
|
{ "media-eject", { {}} },
|
|
|
|
{ "media-playback-pause", { {"media-pause"}} },
|
|
|
|
{ "media-playlist-repeat", { {}} },
|
|
|
|
{ "media-playlist-shuffle", { {""}} },
|
|
|
|
{ "media-playback-start", { {"media-play", "media-playback-playing"}} },
|
|
|
|
{ "media-seek-backward", { {}} },
|
|
|
|
{ "media-seek-forward", { {}} },
|
|
|
|
{ "media-skip-backward", { {}} },
|
|
|
|
{ "media-skip-forward", { {}} },
|
|
|
|
{ "media-playback-stop", { {"media-stop"}} },
|
|
|
|
{ "moodbar", { {"preferences-desktop-icons"}} },
|
|
|
|
{ "nvidia", { {}} },
|
|
|
|
{ "pulseaudio", { {}} },
|
|
|
|
{ "realtek", { {}} },
|
|
|
|
{ "scrobble-disabled", { {}} },
|
|
|
|
{ "scrobble", { {}} },
|
|
|
|
{ "search", { {}} },
|
|
|
|
{ "soundcard", { {"audiocard", "audio-card"}} },
|
|
|
|
{ "speaker", { {}} },
|
|
|
|
{ "star-grey", { {}} },
|
|
|
|
{ "star", { {}} },
|
|
|
|
{ "strawberry", { {}} },
|
|
|
|
{ "subsonic", { {}} },
|
|
|
|
{ "tidal", { {}} },
|
|
|
|
{ "tools-wizard", { {}} },
|
|
|
|
{ "view-choose", { {}} },
|
|
|
|
{ "view-fullscreen", { {}} },
|
|
|
|
{ "view-media-lyrics", { {}} },
|
|
|
|
{ "view-media-playlist", { {}} },
|
|
|
|
{ "view-media-visualization", { {"preferences-desktop-theme"}} },
|
|
|
|
{ "view-refresh", { {}} },
|
|
|
|
{ "library-music", { {"vinyl"}} },
|
|
|
|
{ "vlc", { {}} },
|
|
|
|
{ "zoom-in", { {}} },
|
2019-10-20 00:17:28 +02:00
|
|
|
{ "zoom-out", { {}, 0, 0 } }
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|