dde-dock/frame/util/themeappicon.h
Fan PengCheng d00f484408 fix: 修复日历图标显示异常的问题
某些情况下,日历图标中的3月会显示错位,这部分是因为3月在svg图片中信息和其他月份不一样,当前已修改

Log: 修复部分情况下日历图标显示异常的问题
Influence: 日历图标显示
Task: https://pms.uniontech.com/task-view-122601.html
Change-Id: I0bb098e22402c163323f7b89cf0ffd3de25bb044
2022-05-09 17:55:04 +08:00

42 lines
1.2 KiB
C++

/*
* Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd.
*
* Author: sbw <sbw@sbw.so>
*
* Maintainer: sbw <sbw@sbw.so>
*
* This program 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
* any later version.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef THEMEAPPICON_H
#define THEMEAPPICON_H
#include <QObject>
#include <QIcon>
class ThemeAppIcon
{
public:
explicit ThemeAppIcon();
~ThemeAppIcon();
static QIcon getIcon(const QString &name);
static bool getIcon(QPixmap &pix, const QString iconName, const int size, bool reObtain = false);
private:
static bool createCalendarIcon(const QDate &date, const QString &fileName);
};
#endif // THEMEAPPICON_H