Add size indicator icon
This commit is contained in:
@@ -37,5 +37,7 @@
|
||||
<file>img/configBlack/config.png</file>
|
||||
<file>img/configBlack/graphics.png</file>
|
||||
<file>img/configBlack/name_edition.png</file>
|
||||
<file>img/buttonIconsBlack/size_indicator.png</file>
|
||||
<file>img/buttonIconsWhite/size_indicator.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
BIN
img/buttonIconsBlack/size_indicator.png
Normal file
BIN
img/buttonIconsBlack/size_indicator.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 263 B |
4
img/buttonIconsBlack/size_indicator.svg
Normal file
4
img/buttonIconsBlack/size_indicator.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
||||
<path d="M0 0h24v24H0z" fill="none"/>
|
||||
<path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 271 B |
BIN
img/buttonIconsWhite/size_indicator.png
Normal file
BIN
img/buttonIconsWhite/size_indicator.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 276 B |
61
img/buttonIconsWhite/size_indicator.svg
Normal file
61
img/buttonIconsWhite/size_indicator.svg
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
version="1.1"
|
||||
id="svg6"
|
||||
sodipodi:docname="size_indicator.svg"
|
||||
inkscape:version="0.92+devel unknown">
|
||||
<metadata
|
||||
id="metadata12">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs10" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
inkscape:document-rotation="0"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1328"
|
||||
inkscape:window-height="739"
|
||||
id="namedview8"
|
||||
showgrid="false"
|
||||
inkscape:zoom="7.792906"
|
||||
inkscape:cx="19.848694"
|
||||
inkscape:cy="6.1661095"
|
||||
inkscape:window-x="38"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg6" />
|
||||
<path
|
||||
d="M0 0h24v24H0z"
|
||||
fill="none"
|
||||
id="path2"
|
||||
style="fill:#ffffff" />
|
||||
<path
|
||||
d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"
|
||||
id="path4"
|
||||
style="fill:#ffffff" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -53,6 +53,10 @@ void ButtonListView::initButtonList() {
|
||||
QString color = bgColor.valueF() < 0.6 ? "White" : "Black";
|
||||
QString iconPath = QString(":/img/buttonIcons%1/%2")
|
||||
.arg(color).arg(tool->getIconName());
|
||||
if (t == CaptureButton::TYPE_SELECTIONINDICATOR) {
|
||||
iconPath = QString(":/img/buttonIcons%1/size_indicator.png")
|
||||
.arg(color);
|
||||
}
|
||||
buttonItem->setIcon(QIcon(iconPath));
|
||||
|
||||
buttonItem->setFlags(Qt::ItemIsUserCheckable);
|
||||
|
||||
Reference in New Issue
Block a user