add icons for git
This commit is contained in:
parent
e53e854c91
commit
22a96d4c31
|
@ -175,6 +175,13 @@ void IconsManager::updateActionIcons(const QString& iconSet, int size)
|
|||
|
||||
}
|
||||
|
||||
void IconsManager::updateFileSystemIcons(const QString &iconSet, int size)
|
||||
{
|
||||
QString iconFolder = mIconSetTemplate.arg( iconSetsFolder(),iconSet,"filesystem");
|
||||
updateMakeDisabledIconDarker(iconSet);
|
||||
mIconPixmaps.insert(FILESYSTEM_GIT, createSVGIcon(iconFolder+"git.svg",size,size));
|
||||
}
|
||||
|
||||
IconsManager::PPixmap IconsManager::getPixmap(IconName iconName) const
|
||||
{
|
||||
return mIconPixmaps.value(iconName, mDefaultIconPixmap);
|
||||
|
|
|
@ -65,6 +65,8 @@ public:
|
|||
PARSER_CODE_SNIPPET,
|
||||
PARSER_LOCAL_VAR,
|
||||
|
||||
FILESYSTEM_GIT,
|
||||
|
||||
ACTION_MISC_BACK,
|
||||
ACTION_MISC_FORWARD,
|
||||
ACTION_MISC_ADD,
|
||||
|
@ -159,6 +161,7 @@ public:
|
|||
void updateEditorGuttorIcons(const QString& iconSet, int size);
|
||||
void updateParserIcons(const QString& iconSet, int size);
|
||||
void updateActionIcons(const QString& iconSet, int size);
|
||||
void updateFileSystemIcons(const QString& iconSet, int size);
|
||||
|
||||
PPixmap getPixmap(IconName iconName) const;
|
||||
|
||||
|
|
|
@ -655,6 +655,13 @@ void MainWindow::applySettings()
|
|||
updateEditorSettings();
|
||||
updateDebuggerSettings();
|
||||
updateActionIcons();
|
||||
|
||||
//icon sets for files view
|
||||
pIconsManager->updateFileSystemIcons(pSettings->environment().iconSet(),pointToPixel(pSettings->environment().interfaceFontSize()));
|
||||
// for (int i=0;i<ui->cbFilesPath->count();i++) {
|
||||
// ui->cbFilesPath->setItemIcon(i,pIconsManager->getIcon(IconsManager::FILESYSTEM_GIT));
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::applyUISettings()
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
viewBox="0 0 448 512"
|
||||
version="1.1"
|
||||
id="svg4"
|
||||
sodipodi:docname="git.svg"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
id="namedview6"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
showgrid="false"
|
||||
inkscape:zoom="0.58705357"
|
||||
inkscape:cx="511.02662"
|
||||
inkscape:cy="307.46768"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1001"
|
||||
inkscape:window-x="-9"
|
||||
inkscape:window-y="-9"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg4" />
|
||||
<path
|
||||
id="rect2056-48-9"
|
||||
style="fill:#1f74fe;fill-opacity:1;stroke:none;stroke-width:7.8375;stroke-linecap:round"
|
||||
d="m 224.17304,252.42437 v 70.48926 c 24.035,11.913 21.14708,39.7575 8.62608,52.25 -12.73854,12.73115 -33.3847,12.73115 -46.12324,0 -16.6915,-16.72 -10.5165,-44.5645 10.6875,-53.2 v -43.67217 l -84.50176,84.50175 88.67285,88.67101 c 12.28096,12.28095 32.05361,12.28095 44.33457,0 l 88.67099,-88.67286 z" />
|
||||
<path
|
||||
id="rect2056-48-9-8"
|
||||
style="fill:#90b9ff;fill-opacity:1;stroke:none;stroke-width:7.8375;stroke-linecap:round"
|
||||
d="m 108.60517,136.8565 -88.67099,88.67099 c -12.2809607,12.28097 -12.2809607,32.05546 0,44.33643 l 88.67099,88.67099 88.75821,-88.76005 V 225.6147 Z" />
|
||||
<path
|
||||
id="rect2056"
|
||||
style="fill:#1f74fe;fill-opacity:1;stroke:none;stroke-width:7.8375;stroke-linecap:round"
|
||||
d="m 222.8334,35.585015 c -8.01366,0 -16.02866,3.071922 -22.16914,9.212402 l -69.25909,69.259083 18.96104,-18.923927 48.94541,48.943557 c 25.707,-8.683 50.04474,15.9312 41.21924,41.4957 l 20.51963,20.51963 72.62119,-72.62305 -88.671,-88.670993 c -6.14047,-6.14048 -14.15362,-9.212402 -22.16728,-9.212402 z m -91.42823,78.471485 -19.41191,19.41191 85.37012,85.36826 v -13.72304 c -19.76,-8.0845 -23.3706,-29.203 -17.70859,-42.75 z m 92.76787,93.1 v 35.81054 l 17.91641,-17.9164 z" />
|
||||
<path
|
||||
id="rect2056-48"
|
||||
style="fill:#90b9ff;fill-opacity:1;stroke:none;stroke-width:7.8375;stroke-linecap:round"
|
||||
d="m 337.92998,137.72486 -72.62305,72.62305 22.40108,22.40107 c 32.5185,-11.21 58.12166,29.44948 33.69716,53.85498 -25.1655,25.1655 -66.6995,-2.72635 -53.2,-35.47285 l -21.85556,-21.82588 -19.25976,19.25976 110.84013,110.83829 88.67099,-88.671 c 12.28097,-12.28096 12.28097,-32.05547 0,-44.33643 z" />
|
||||
<!-- Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) -->
|
||||
</svg>
|
After Width: | Height: | Size: 2.8 KiB |
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
viewBox="0 0 448 512"
|
||||
version="1.1"
|
||||
id="svg4"
|
||||
sodipodi:docname="git.svg"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
id="namedview6"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
showgrid="false"
|
||||
inkscape:zoom="0.58705357"
|
||||
inkscape:cx="511.02662"
|
||||
inkscape:cy="307.46768"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1001"
|
||||
inkscape:window-x="-9"
|
||||
inkscape:window-y="-9"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg4" />
|
||||
<path
|
||||
id="rect2056-48-9"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:7.8375;stroke-linecap:round"
|
||||
d="m 224.17304,252.42437 v 70.48926 c 24.035,11.913 21.14708,39.7575 8.62608,52.25 -12.73854,12.73115 -33.3847,12.73115 -46.12324,0 -16.6915,-16.72 -10.5165,-44.5645 10.6875,-53.2 v -43.67217 l -84.50176,84.50175 88.67285,88.67101 c 12.28096,12.28095 32.05361,12.28095 44.33457,0 l 88.67099,-88.67286 z" />
|
||||
<path
|
||||
id="rect2056-48-9-8"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:7.8375;stroke-linecap:round"
|
||||
d="m 108.60517,136.8565 -88.67099,88.67099 c -12.2809607,12.28097 -12.2809607,32.05546 0,44.33643 l 88.67099,88.67099 88.75821,-88.76005 V 225.6147 Z" />
|
||||
<path
|
||||
id="rect2056"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:7.8375;stroke-linecap:round"
|
||||
d="m 222.8334,35.585015 c -8.01366,0 -16.02866,3.071922 -22.16914,9.212402 l -69.25909,69.259083 18.96104,-18.923927 48.94541,48.943557 c 25.707,-8.683 50.04474,15.9312 41.21924,41.4957 l 20.51963,20.51963 72.62119,-72.62305 -88.671,-88.670993 c -6.14047,-6.14048 -14.15362,-9.212402 -22.16728,-9.212402 z m -91.42823,78.471485 -19.41191,19.41191 85.37012,85.36826 v -13.72304 c -19.76,-8.0845 -23.3706,-29.203 -17.70859,-42.75 z m 92.76787,93.1 v 35.81054 l 17.91641,-17.9164 z" />
|
||||
<path
|
||||
id="rect2056-48"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:7.8375;stroke-linecap:round"
|
||||
d="m 337.92998,137.72486 -72.62305,72.62305 22.40108,22.40107 c 32.5185,-11.21 58.12166,29.44948 33.69716,53.85498 -25.1655,25.1655 -66.6995,-2.72635 -53.2,-35.47285 l -21.85556,-21.82588 -19.25976,19.25976 110.84013,110.83829 88.67099,-88.671 c 12.28097,-12.28096 12.28097,-32.05547 0,-44.33643 z" />
|
||||
<!-- Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) -->
|
||||
</svg>
|
After Width: | Height: | Size: 2.8 KiB |
|
@ -0,0 +1,37 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
viewBox="0 0 448 512"
|
||||
version="1.1"
|
||||
id="svg4"
|
||||
sodipodi:docname="git.svg"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
id="namedview6"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.5859375"
|
||||
inkscape:cx="223.84236"
|
||||
inkscape:cy="256.31527"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1001"
|
||||
inkscape:window-x="-9"
|
||||
inkscape:window-y="-9"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg4" />
|
||||
<!-- Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) -->
|
||||
<path
|
||||
d="M439.55 236.05L244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81z"
|
||||
id="path2"
|
||||
style="fill:#f05513;fill-opacity:1" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in New Issue