Core: New "Replace" icon
HighDPI capable and themable. Change-Id: I12b598a081f2ed30dd31b138fd605e71b6f28c20 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
@@ -40,7 +40,10 @@
|
||||
<file>images/plus.png</file>
|
||||
<file>images/plus@2x.png</file>
|
||||
<file>images/redo.png</file>
|
||||
<file>images/replace.png</file>
|
||||
<file>images/replace_a.png</file>
|
||||
<file>images/replace_a@2x.png</file>
|
||||
<file>images/replace_b.png</file>
|
||||
<file>images/replace_b@2x.png</file>
|
||||
<file>images/reset.png</file>
|
||||
<file>images/sidebaricon.png</file>
|
||||
<file>images/sidebaricon@2x.png</file>
|
||||
|
||||
@@ -152,6 +152,9 @@ const Icon EYE_OPEN_TOOLBAR({
|
||||
{QLatin1String(":/core/images/eye_open.png"), Theme::IconsBaseColor}});
|
||||
const Icon EYE_CLOSED_TOOLBAR({
|
||||
{QLatin1String(":/core/images/eye_closed.png"), Theme::IconsBaseColor}});
|
||||
const Icon REPLACE({
|
||||
{QLatin1String(":/core/images/replace_a.png"), Theme::PanelTextColorMid},
|
||||
{QLatin1String(":/core/images/replace_b.png"), Theme::IconsInfoColor}}, Icon::Tint);
|
||||
|
||||
const Icon MODE_EDIT_CLASSIC(
|
||||
QLatin1String(":/fancyactionbar/images/mode_Edit.png"));
|
||||
|
||||
@@ -92,6 +92,7 @@ CORE_EXPORT extern const Utils::Icon INTERRUPT_SMALL_TOOLBAR;
|
||||
CORE_EXPORT extern const Utils::Icon BOUNDING_RECT;
|
||||
CORE_EXPORT extern const Utils::Icon EYE_OPEN_TOOLBAR;
|
||||
CORE_EXPORT extern const Utils::Icon EYE_CLOSED_TOOLBAR;
|
||||
CORE_EXPORT extern const Utils::Icon REPLACE;
|
||||
|
||||
CORE_EXPORT extern const Utils::Icon MODE_EDIT_CLASSIC;
|
||||
CORE_EXPORT extern const Utils::Icon MODE_EDIT_FLAT;
|
||||
|
||||
|
Before Width: | Height: | Size: 891 B |
BIN
src/plugins/coreplugin/images/replace_a.png
Normal file
|
After Width: | Height: | Size: 140 B |
BIN
src/plugins/coreplugin/images/replace_a@2x.png
Normal file
|
After Width: | Height: | Size: 182 B |
BIN
src/plugins/coreplugin/images/replace_b.png
Normal file
|
After Width: | Height: | Size: 146 B |
BIN
src/plugins/coreplugin/images/replace_b@2x.png
Normal file
|
After Width: | Height: | Size: 229 B |
@@ -26,6 +26,8 @@
|
||||
#include "variablechooser.h"
|
||||
#include "coreconstants.h"
|
||||
|
||||
#include <coreplugin/coreicons.h>
|
||||
|
||||
#include <utils/fancylineedit.h> // IconButton
|
||||
#include <utils/headerviewstretcher.h> // IconButton
|
||||
#include <utils/macroexpander.h>
|
||||
@@ -87,7 +89,7 @@ public:
|
||||
void createIconButton()
|
||||
{
|
||||
m_iconButton = new IconButton;
|
||||
m_iconButton->setPixmap(QPixmap(QLatin1String(":/core/images/replace.png")));
|
||||
m_iconButton->setPixmap(Core::Icons::REPLACE.pixmap());
|
||||
m_iconButton->setToolTip(VariableChooser::tr("Insert Variable"));
|
||||
m_iconButton->hide();
|
||||
connect(m_iconButton.data(), static_cast<void(QAbstractButton::*)(bool)>(&QAbstractButton::clicked),
|
||||
|
||||
@@ -3354,6 +3354,52 @@
|
||||
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.29999995;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
id="src/plugins/coreplugin/images/replace_a">
|
||||
<rect
|
||||
id="rect6782-96-0-04"
|
||||
height="16"
|
||||
width="16"
|
||||
y="568"
|
||||
x="1064"
|
||||
style="display:inline;fill:#ffffff;fill-opacity:1" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m 1067.5,576 0,-4.9375 c 0,0 0.5,-1.5625 2,-1.5625 1.5,0 2,1.5625 2,1.5625 l 0,4.9375 m -4,-2.5 4,0"
|
||||
style="display:inline;fill:none;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1"
|
||||
id="path6077"
|
||||
sodipodi:nodetypes="ccscccc" />
|
||||
</g>
|
||||
<g
|
||||
style="display:inline"
|
||||
id="src/plugins/coreplugin/images/replace_b"
|
||||
transform="translate(16,0)">
|
||||
<rect
|
||||
id="rect6782-96-0-04-0"
|
||||
height="16"
|
||||
width="16"
|
||||
y="568"
|
||||
x="1064"
|
||||
style="display:inline;fill:#ffffff;fill-opacity:1" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
d="m 1074.5,579.5 2.3437,0 c 0,0 1.6563,0 1.6563,1.5 0,1.5 -1.6563,1.5 -1.6563,1.5 l -2.3437,0 0,-6 2.3437,0 c 0,0 1.6563,0 1.6563,1.5 0,1.5 -1.6563,1.5 -1.6563,1.5"
|
||||
style="display:inline;fill:none;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1"
|
||||
id="path6081-2"
|
||||
sodipodi:nodetypes="ccsccccsc" />
|
||||
<path
|
||||
sodipodi:nodetypes="csc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4755-9-7"
|
||||
d="M 1066.6326,576.26777 C 1065,578 1065.2737,579.25716 1066.0575,579.82141 1067,580.5 1067.5,580.5 1071.9063,580.39959"
|
||||
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
sodipodi:nodetypes="cccc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4757-4-2"
|
||||
d="m 1070,583.5 3,-3 -3,-3 z"
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
|
||||
|
Before Width: | Height: | Size: 199 KiB After Width: | Height: | Size: 201 KiB |