forked from qt-creator/qt-creator
VcsBase: Modernize the icons
Use themable, HighDPI enabled icons for commit and diff. Re-use an existing red cross for the removesubmitfield. Change-Id: I43f46db96d07de9a7e166937d470d48e45d7f3fb Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -43,6 +43,8 @@
|
||||
#include <utils/completingtextedit.h>
|
||||
#include <utils/synchronousprocess.h>
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/icon.h>
|
||||
#include <utils/theme/theme.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/temporarydirectory.h>
|
||||
#include <coreplugin/find/basetextfind.h>
|
||||
@@ -715,12 +717,20 @@ bool VcsBaseSubmitEditor::runSubmitMessageCheckScript(const QString &checkScript
|
||||
|
||||
QIcon VcsBaseSubmitEditor::diffIcon()
|
||||
{
|
||||
return QIcon(QLatin1String(":/vcsbase/images/diff.png"));
|
||||
using namespace Utils;
|
||||
return Icon({
|
||||
{":/vcsbase/images/diff_documents.png", Theme::PanelTextColorDark},
|
||||
{":/vcsbase/images/diff_arrows.png", Theme::IconsStopColor}
|
||||
}, Icon::Tint).icon();
|
||||
}
|
||||
|
||||
QIcon VcsBaseSubmitEditor::submitIcon()
|
||||
{
|
||||
return QIcon(QLatin1String(":/vcsbase/images/submit.png"));
|
||||
using namespace Utils;
|
||||
return Icon({
|
||||
{":/vcsbase/images/submit_db.png", Theme::PanelTextColorDark},
|
||||
{":/vcsbase/images/submit_arrow.png", Theme::IconsRunColor}
|
||||
}, Icon::Tint | Icon::PunchEdges).icon();
|
||||
}
|
||||
|
||||
// Reduce a list of untracked files reported by a VCS down to the files
|
||||
|
||||
Reference in New Issue
Block a user