diff --git a/src/Gui/BitmapFactory.cpp b/src/Gui/BitmapFactory.cpp index 2739e276bc..ddbb8fa240 100644 --- a/src/Gui/BitmapFactory.cpp +++ b/src/Gui/BitmapFactory.cpp @@ -48,36 +48,6 @@ using namespace Gui; -/* XPM */ -static const char *not_found[]={ -"24 24 2 1", -"# c #000000", -". c #ffffff", -"........................", -"........................", -"...##..............##...", -"..####............####..", -"..#####..........#####..", -"..######........#####...", -"...######......######...", -"....######....######....", -".....######..######.....", -"......############......", -".......##########.......", -"........########........", -".........######.........", -"........########........", -".......##########.......", -"......############......", -".....######..######.....", -"....######....######....", -"..#######......######...", -".#######........######..", -".######..........#####..", -"..####.............##...", -"........................", -"........................"}; - namespace Gui { class BitmapFactoryInstP { @@ -281,7 +251,7 @@ QPixmap BitmapFactoryInst::pixmap(const char* name) const } Base::Console().Warning("Cannot find icon: %s\n", name); - return QPixmap(not_found); + return QPixmap(Gui::BitmapFactory().pixmapFromSvg("help-browser", QSize(16, 16))); } QPixmap BitmapFactoryInst::pixmapFromSvg(const char* name, const QSizeF& size, diff --git a/src/Gui/CallTips.cpp b/src/Gui/CallTips.cpp index 35f5b9f33f..f39d564106 100644 --- a/src/Gui/CallTips.cpp +++ b/src/Gui/CallTips.cpp @@ -472,20 +472,7 @@ void CallTipsList::showTips(const QString& line) static QPixmap property_icon = BitmapFactory().pixmap("ClassBrowser/property.svg"); // object is in error state - static const char * const forbidden_xpm[]={ - "8 8 3 1", - ". c None", - "# c #ff0000", - "a c #ffffff", - "..####..", - ".######.", - "########", - "#aaaaaa#", - "#aaaaaa#", - "########", - ".######.", - "..####.."}; - static QPixmap forbidden_icon(forbidden_xpm); + static QPixmap forbidden_icon(Gui::BitmapFactory().pixmapFromSvg("forbidden", QSize(8, 8))); static QPixmap forbidden_type_module_icon = BitmapFactory().merge(type_module_icon,forbidden_icon,BitmapFactoryInst::BottomLeft); static QPixmap forbidden_type_class_icon = BitmapFactory().merge(type_class_icon,forbidden_icon,BitmapFactoryInst::BottomLeft); static QPixmap forbidden_method_icon = BitmapFactory().merge(method_icon,forbidden_icon,BitmapFactoryInst::BottomLeft); diff --git a/src/Gui/Icons/Std_MarkToRecompute.svg b/src/Gui/Icons/Std_MarkToRecompute.svg index 4889340075..65f144e9c9 100644 --- a/src/Gui/Icons/Std_MarkToRecompute.svg +++ b/src/Gui/Icons/Std_MarkToRecompute.svg @@ -1,15 +1,15 @@ + version="1.1" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> Std_MarkToRecompute + @@ -449,7 +457,7 @@ [bitacovir] - + Std_MarkToRecompute @@ -480,17 +488,21 @@ + + + + - - diff --git a/src/Gui/Icons/Std_TransformManip.svg b/src/Gui/Icons/Std_TransformManip.svg index 721a4bcf90..1c4226d59a 100644 --- a/src/Gui/Icons/Std_TransformManip.svg +++ b/src/Gui/Icons/Std_TransformManip.svg @@ -1,16 +1,16 @@ + version="1.1" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> Std_TransformManip - - + style="fill:none;stroke:#4e9a06;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none" + id="path1" + d="M 14.232546,16.377472 A 33.929974,33.929974 0 0 1 48.162519,50.307446" /> + style="fill:none;stroke:#73d216;stroke-width:0.999998;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none" + id="path2" + d="M 14.2066,16.351528 A 33.981865,33.981865 0 0 1 48.188465,50.333393" /> + + + diff --git a/src/Gui/Icons/Std_UserEditModeTransform.svg b/src/Gui/Icons/Std_UserEditModeTransform.svg index 903389d8de..186795a64e 100644 --- a/src/Gui/Icons/Std_UserEditModeTransform.svg +++ b/src/Gui/Icons/Std_UserEditModeTransform.svg @@ -1,16 +1,16 @@ + version="1.1" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> Std_UserEditModeTransform + @@ -236,78 +245,6 @@ - - - - - - - - - - - - - - - - - - @@ -349,4 +286,79 @@ d="m 479.25595,122.0061 c -1.01772,0 -3.63385,2.51623 -4.07087,5 l 8.14174,2 -3.05315,-7 h -1.01772" id="path3971-3" /> + + + + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/bound-expression-unset.svg b/src/Gui/Icons/bound-expression-unset.svg index fdf5184858..9fded2fae5 100644 --- a/src/Gui/Icons/bound-expression-unset.svg +++ b/src/Gui/Icons/bound-expression-unset.svg @@ -2,24 +2,19 @@ + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> - - - @@ -79,57 +44,33 @@ image/svg+xml - + id="layer1"> + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:35.8209px;line-height:125%;font-family:FreeSerif;-inkscape-font-specification:FreeSerif;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#eeeeec;fill-opacity:1;stroke:#eeeeec;stroke-width:1.0706;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" + id="text3755" + transform="matrix(0.93478261,0,0,0.93333333,2.0869597,1.2242464)"> + style="font-style:italic;font-family:FreeSerif;-inkscape-font-specification:'FreeSerif Italic';fill:#eeeeec;stroke:#eeeeec;stroke-width:2.1412;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;paint-order:markers stroke fill" + d="m 24.28806,16.999996 c -0.735562,2.3e-5 -1.417142,0.191316 -2.047602,0.575474 -0.630482,0.361605 -1.157184,0.802793 -1.577489,1.322545 -0.420323,0.519794 -0.82927,1.208785 -1.228561,2.067522 -0.378291,0.858773 -0.671573,1.593391 -0.881722,2.203544 -0.189149,0.610183 -0.42048,1.379545 -0.693678,2.306082 h -2.900072 l -0.221476,1.083985 h 2.837391 l -2.774709,14.238281 c -0.693521,3.661007 -1.711772,5.491065 -3.056777,5.491071 -0.420316,-6e-6 -0.630995,-0.180415 -0.630996,-0.541992 1e-6,-0.0904 0.05163,-0.227279 0.156705,-0.408064 0.08405,-0.158197 0.127453,-0.327724 0.127452,-0.50851 0,-0.361584 -0.115665,-0.665899 -0.346838,-0.914481 -0.252187,-0.248589 -0.54756,-0.372491 -0.883812,-0.372488 -0.3362507,-3e-6 -0.608882,0.13478 -0.8190408,0.405971 -0.2311717,0.271181 -0.3468366,0.599351 -0.3468386,0.983537 2e-6,0.564967 0.2416566,1.049686 0.7250182,1.456474 0.4833622,0.406772 1.0720162,0.611041 1.7655342,0.611049 1.408054,-8e-6 2.647308,-0.825877 3.719113,-2.475586 1.071799,-1.627121 1.933082,-3.998406 2.584575,-7.117048 l 2.271167,-10.848214 h 3.434956 l 0.190134,-1.083985 h -3.405705 c 0.462338,-2.666647 0.999364,-4.622697 1.60883,-5.865653 0.609446,-1.242916 1.355064,-1.864517 2.237737,-1.864537 0.462333,2e-5 0.693663,0.136899 0.693677,0.408064 -1.4e-5,0.04522 -0.05373,0.180005 -0.158794,0.405971 -0.105089,0.226011 -0.156716,0.44116 -0.156704,0.644531 -1.2e-5,0.4068 0.105327,0.73497 0.315498,0.983538 0.210143,0.248608 0.4931,0.372508 0.850381,0.372489 0.357253,1.9e-5 0.662948,-0.136858 0.915153,-0.408064 0.27319,-0.271166 0.409505,-0.586362 0.40952,-0.947963 -1.5e-5,-0.632747 -0.262321,-1.152211 -0.787699,-1.559012 -0.504393,-0.429355 -1.14676,-0.644508 -1.924328,-0.644531 z m 10.235919,0 c -0.122111,0.09414 -0.318509,0.258591 -0.587118,0.493861 -1.07449,0.917667 -2.001636,1.776054 -2.783067,2.576033 -0.757028,0.776489 -1.673074,1.883644 -2.747547,3.318917 -1.074483,1.411779 -1.917664,3.046327 -2.528162,4.905134 -0.586081,1.858833 -0.877545,3.84637 -0.877543,5.964007 -2e-6,2.494119 0.280362,4.672289 0.842024,6.53111 0.561657,1.858819 1.488804,3.928583 2.783066,6.210938 L 29.28588,46.78864 c -0.659346,-1.788237 -1.122918,-3.34056 -1.391534,-4.658203 -0.244205,-1.317645 -0.367736,-2.823879 -0.367732,-4.517997 -4e-6,-4.564694 0.916042,-8.977078 2.747547,-13.23591 0.586073,-1.388217 1.221756,-2.56555 1.905523,-3.530273 0.683751,-0.988213 1.624085,-2.093275 2.820676,-3.316825 z m 16.848837,0 -0.695766,0.175781 c 1.196572,2.756201 1.794777,5.84205 1.794785,9.257812 -8e-6,2.261495 -0.29147,4.689001 -0.877543,7.280274 -0.561667,2.591284 -1.294504,4.828604 -2.198038,6.71317 -0.927963,2.002352 -2.39364,4.017611 -4.396076,6.043526 l 0.476381,0.529437 c 3.174596,-2.661957 5.554227,-5.311522 7.141533,-7.949917 1.587291,-2.661949 2.381895,-5.713836 2.381905,-9.15318 -1e-5,-2.520598 -0.304664,-4.769933 -0.915153,-6.748745 -0.586089,-1.978779 -1.491036,-4.027996 -2.712028,-6.148158 z m -12.055777,8.000139 c -0.734183,1.6e-5 -2.216292,0.341044 -4.444132,1.025391 l -0.417878,0.142299 0.152526,0.531529 c 1.164552,-0.259574 1.873828,-0.389217 2.126998,-0.38923 0.481007,1.3e-5 0.823354,0.141633 1.02589,0.424805 0.202526,0.283198 0.43006,0.955368 0.683231,2.017299 l 1.101108,4.354771 -3.11528,4.141323 c -0.860762,1.132743 -1.506486,1.69922 -1.936864,1.699218 -0.202533,2e-6 -0.542789,-0.107781 -1.023801,-0.320173 -0.481011,-0.235984 -0.874618,-0.353652 -1.178415,-0.353655 -0.35443,3e-6 -0.65781,0.117671 -0.910974,0.353655 -0.253165,0.23599 -0.380268,0.531203 -0.380269,0.885185 10e-7,0.448378 0.178366,0.815449 0.532794,1.098632 0.329115,0.259586 0.784184,0.389229 1.366461,0.38923 0.734175,-10e-7 1.507004,-0.379044 2.317133,-1.134207 0.835438,-0.75516 2.379011,-2.58214 4.632177,-5.484794 l 1.138717,4.245954 c 0.253156,0.920354 0.53195,1.54671 0.835756,1.877093 0.303787,0.330381 0.760944,0.495953 1.36855,0.495954 0.734164,-10e-7 1.416769,-0.271261 2.049691,-0.814034 0.632897,-0.566369 1.493866,-1.641535 2.582485,-3.222657 l -0.532794,-0.282505 c -0.303813,0.330385 -0.60719,0.661529 -0.910974,0.991908 -0.278493,0.330388 -0.481443,0.565721 -0.608012,0.707311 -0.126594,0.141593 -0.251611,0.271237 -0.37818,0.38923 -0.126594,0.117996 -0.241411,0.201823 -0.342659,0.249023 -0.101279,0.02359 -0.214003,0.03348 -0.340571,0.03348 -0.531658,1e-6 -0.925262,-0.482643 -1.178416,-1.450195 -1.012666,-3.681403 -1.518996,-5.793715 -1.518986,-6.336496 1.74682,-2.855441 2.987014,-4.283609 3.721203,-4.283621 0.227835,1.2e-5 0.545594,0.105704 0.950672,0.31808 0.405048,0.188805 0.733012,0.284612 0.986192,0.284598 0.405047,1.4e-5 0.722808,-0.117653 0.950672,-0.353655 0.253147,-0.235975 0.378163,-0.543166 0.37818,-0.920759 -1.7e-5,-0.377566 -0.151707,-0.684755 -0.455487,-0.920759 -0.278497,-0.259571 -0.645429,-0.389214 -1.101108,-0.38923 -0.835458,1.6e-5 -1.669749,0.37697 -2.505178,1.132115 -0.835455,0.731576 -1.911664,2.042078 -3.228107,3.929967 l -0.417878,-1.94615 c -0.278489,-1.203524 -0.557283,-2.019403 -0.835756,-2.444196 -0.253173,-0.448362 -0.632396,-0.67172 -1.138717,-0.671736 z" /> - - + id="path4" + style="font-style:italic;font-family:FreeSerif;-inkscape-font-specification:'FreeSerif Italic';fill:#3465a4;stroke:#3465a4;stroke-width:1.0706;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;paint-order:markers stroke fill" + d="m 24.28806,16.999996 c -0.735562,2.3e-5 -1.417142,0.191316 -2.047602,0.575474 -0.630482,0.361605 -1.157184,0.802793 -1.577489,1.322545 -0.420323,0.519794 -0.82927,1.208785 -1.228561,2.067522 -0.378291,0.858773 -0.671573,1.593391 -0.881722,2.203544 -0.189149,0.610183 -0.42048,1.379545 -0.693678,2.306082 h -2.900072 l -0.221476,1.083985 h 2.837391 l -2.774709,14.238281 c -0.693521,3.661007 -1.711772,5.491065 -3.056777,5.491071 -0.420316,-6e-6 -0.630995,-0.180415 -0.630996,-0.541992 1e-6,-0.0904 0.05163,-0.227279 0.156705,-0.408064 0.08405,-0.158197 0.127453,-0.327724 0.127452,-0.50851 0,-0.361584 -0.115665,-0.665899 -0.346838,-0.914481 -0.252187,-0.248589 -0.54756,-0.372491 -0.883812,-0.372488 -0.3362507,-3e-6 -0.608882,0.13478 -0.8190408,0.405971 -0.2311717,0.271181 -0.3468366,0.599351 -0.3468386,0.983537 2e-6,0.564967 0.2416566,1.049686 0.7250182,1.456474 0.4833622,0.406772 1.0720162,0.611041 1.7655342,0.611049 1.408054,-8e-6 2.647308,-0.825877 3.719113,-2.475586 1.071799,-1.627121 1.933082,-3.998406 2.584575,-7.117048 l 2.271167,-10.848214 h 3.434956 l 0.190134,-1.083985 h -3.405705 c 0.462338,-2.666647 0.999364,-4.622697 1.60883,-5.865653 0.609446,-1.242916 1.355064,-1.864517 2.237737,-1.864537 0.462333,2e-5 0.693663,0.136899 0.693677,0.408064 -1.4e-5,0.04522 -0.05373,0.180005 -0.158794,0.405971 -0.105089,0.226011 -0.156716,0.44116 -0.156704,0.644531 -1.2e-5,0.4068 0.105327,0.73497 0.315498,0.983538 0.210143,0.248608 0.4931,0.372508 0.850381,0.372489 0.357253,1.9e-5 0.662948,-0.136858 0.915153,-0.408064 0.27319,-0.271166 0.409505,-0.586362 0.40952,-0.947963 -1.5e-5,-0.632747 -0.262321,-1.152211 -0.787699,-1.559012 -0.504393,-0.429355 -1.14676,-0.644508 -1.924328,-0.644531 z m 10.235919,0 c -0.122111,0.09414 -0.318509,0.258591 -0.587118,0.493861 -1.07449,0.917667 -2.001636,1.776054 -2.783067,2.576033 -0.757028,0.776489 -1.673074,1.883644 -2.747547,3.318917 -1.074483,1.411779 -1.917664,3.046327 -2.528162,4.905134 -0.586081,1.858833 -0.877545,3.84637 -0.877543,5.964007 -2e-6,2.494119 0.280362,4.672289 0.842024,6.53111 0.561657,1.858819 1.488804,3.928583 2.783066,6.210938 L 29.28588,46.78864 c -0.659346,-1.788237 -1.122918,-3.34056 -1.391534,-4.658203 -0.244205,-1.317645 -0.367736,-2.823879 -0.367732,-4.517997 -4e-6,-4.564694 0.916042,-8.977078 2.747547,-13.23591 0.586073,-1.388217 1.221756,-2.56555 1.905523,-3.530273 0.683751,-0.988213 1.624085,-2.093275 2.820676,-3.316825 z m 16.848837,0 -0.695766,0.175781 c 1.196572,2.756201 1.794777,5.84205 1.794785,9.257812 -8e-6,2.261495 -0.29147,4.689001 -0.877543,7.280274 -0.561667,2.591284 -1.294504,4.828604 -2.198038,6.71317 -0.927963,2.002352 -2.39364,4.017611 -4.396076,6.043526 l 0.476381,0.529437 c 3.174596,-2.661957 5.554227,-5.311522 7.141533,-7.949917 1.587291,-2.661949 2.381895,-5.713836 2.381905,-9.15318 -1e-5,-2.520598 -0.304664,-4.769933 -0.915153,-6.748745 -0.586089,-1.978779 -1.491036,-4.027996 -2.712028,-6.148158 z m -12.055777,8.000139 c -0.734183,1.6e-5 -2.216292,0.341044 -4.444132,1.025391 l -0.417878,0.142299 0.152526,0.531529 c 1.164552,-0.259574 1.873828,-0.389217 2.126998,-0.38923 0.481007,1.3e-5 0.823354,0.141633 1.02589,0.424805 0.202526,0.283198 0.43006,0.955368 0.683231,2.017299 l 1.101108,4.354771 -3.11528,4.141323 c -0.860762,1.132743 -1.506486,1.69922 -1.936864,1.699218 -0.202533,2e-6 -0.542789,-0.107781 -1.023801,-0.320173 -0.481011,-0.235984 -0.874618,-0.353652 -1.178415,-0.353655 -0.35443,3e-6 -0.65781,0.117671 -0.910974,0.353655 -0.253165,0.23599 -0.380268,0.531203 -0.380269,0.885185 10e-7,0.448378 0.178366,0.815449 0.532794,1.098632 0.329115,0.259586 0.784184,0.389229 1.366461,0.38923 0.734175,-10e-7 1.507004,-0.379044 2.317133,-1.134207 0.835438,-0.75516 2.379011,-2.58214 4.632177,-5.484794 l 1.138717,4.245954 c 0.253156,0.920354 0.53195,1.54671 0.835756,1.877093 0.303787,0.330381 0.760944,0.495953 1.36855,0.495954 0.734164,-10e-7 1.416769,-0.271261 2.049691,-0.814034 0.632897,-0.566369 1.493866,-1.641535 2.582485,-3.222657 l -0.532794,-0.282505 c -0.303813,0.330385 -0.60719,0.661529 -0.910974,0.991908 -0.278493,0.330388 -0.481443,0.565721 -0.608012,0.707311 -0.126594,0.141593 -0.251611,0.271237 -0.37818,0.38923 -0.126594,0.117996 -0.241411,0.201823 -0.342659,0.249023 -0.101279,0.02359 -0.214003,0.03348 -0.340571,0.03348 -0.531658,1e-6 -0.925262,-0.482643 -1.178416,-1.450195 -1.012666,-3.681403 -1.518996,-5.793715 -1.518986,-6.336496 1.74682,-2.855441 2.987014,-4.283609 3.721203,-4.283621 0.227835,1.2e-5 0.545594,0.105704 0.950672,0.31808 0.405048,0.188805 0.733012,0.284612 0.986192,0.284598 0.405047,1.4e-5 0.722808,-0.117653 0.950672,-0.353655 0.253147,-0.235975 0.378163,-0.543166 0.37818,-0.920759 -1.7e-5,-0.377566 -0.151707,-0.684755 -0.455487,-0.920759 -0.278497,-0.259571 -0.645429,-0.389214 -1.101108,-0.38923 -0.835458,1.6e-5 -1.669749,0.37697 -2.505178,1.132115 -0.835455,0.731576 -1.911664,2.042078 -3.228107,3.929967 l -0.417878,-1.94615 c -0.278489,-1.203524 -0.557283,-2.019403 -0.835756,-2.444196 -0.253173,-0.448362 -0.632396,-0.67172 -1.138717,-0.671736 z" /> diff --git a/src/Gui/Icons/bound-expression.svg b/src/Gui/Icons/bound-expression.svg index 574efc71b5..7705993513 100644 --- a/src/Gui/Icons/bound-expression.svg +++ b/src/Gui/Icons/bound-expression.svg @@ -2,24 +2,19 @@ + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> - - - @@ -79,57 +44,33 @@ image/svg+xml - + id="layer1"> + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:35.8209px;line-height:125%;font-family:FreeSerif;-inkscape-font-specification:FreeSerif;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#eeeeec;fill-opacity:1;stroke:#eeeeec;stroke-width:1.0706;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" + id="text3755" + transform="matrix(0.93478261,0,0,0.93333333,2.0869597,1.2242464)"> + style="font-style:italic;font-family:FreeSerif;-inkscape-font-specification:'FreeSerif Italic';fill:#eeeeec;stroke:#204a87;stroke-width:2.1412;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;paint-order:markers stroke fill" + d="m 24.28806,16.999996 c -0.735562,2.3e-5 -1.417142,0.191316 -2.047602,0.575474 -0.630482,0.361605 -1.157184,0.802793 -1.577489,1.322545 -0.420323,0.519794 -0.82927,1.208785 -1.228561,2.067522 -0.378291,0.858773 -0.671573,1.593391 -0.881722,2.203544 -0.189149,0.610183 -0.42048,1.379545 -0.693678,2.306082 h -2.900072 l -0.221476,1.083985 h 2.837391 l -2.774709,14.238281 c -0.693521,3.661007 -1.711772,5.491065 -3.056777,5.491071 -0.420316,-6e-6 -0.630995,-0.180415 -0.630996,-0.541992 1e-6,-0.0904 0.05163,-0.227279 0.156705,-0.408064 0.08405,-0.158197 0.127453,-0.327724 0.127452,-0.50851 0,-0.361584 -0.115665,-0.665899 -0.346838,-0.914481 -0.252187,-0.248589 -0.54756,-0.372491 -0.883812,-0.372488 -0.3362507,-3e-6 -0.608882,0.13478 -0.8190408,0.405971 -0.2311717,0.271181 -0.3468366,0.599351 -0.3468386,0.983537 2e-6,0.564967 0.2416566,1.049686 0.7250182,1.456474 0.4833622,0.406772 1.0720162,0.611041 1.7655342,0.611049 1.408054,-8e-6 2.647308,-0.825877 3.719113,-2.475586 1.071799,-1.627121 1.933082,-3.998406 2.584575,-7.117048 l 2.271167,-10.848214 h 3.434956 l 0.190134,-1.083985 h -3.405705 c 0.462338,-2.666647 0.999364,-4.622697 1.60883,-5.865653 0.609446,-1.242916 1.355064,-1.864517 2.237737,-1.864537 0.462333,2e-5 0.693663,0.136899 0.693677,0.408064 -1.4e-5,0.04522 -0.05373,0.180005 -0.158794,0.405971 -0.105089,0.226011 -0.156716,0.44116 -0.156704,0.644531 -1.2e-5,0.4068 0.105327,0.73497 0.315498,0.983538 0.210143,0.248608 0.4931,0.372508 0.850381,0.372489 0.357253,1.9e-5 0.662948,-0.136858 0.915153,-0.408064 0.27319,-0.271166 0.409505,-0.586362 0.40952,-0.947963 -1.5e-5,-0.632747 -0.262321,-1.152211 -0.787699,-1.559012 -0.504393,-0.429355 -1.14676,-0.644508 -1.924328,-0.644531 z m 10.235919,0 c -0.122111,0.09414 -0.318509,0.258591 -0.587118,0.493861 -1.07449,0.917667 -2.001636,1.776054 -2.783067,2.576033 -0.757028,0.776489 -1.673074,1.883644 -2.747547,3.318917 -1.074483,1.411779 -1.917664,3.046327 -2.528162,4.905134 -0.586081,1.858833 -0.877545,3.84637 -0.877543,5.964007 -2e-6,2.494119 0.280362,4.672289 0.842024,6.53111 0.561657,1.858819 1.488804,3.928583 2.783066,6.210938 L 29.28588,46.78864 c -0.659346,-1.788237 -1.122918,-3.34056 -1.391534,-4.658203 -0.244205,-1.317645 -0.367736,-2.823879 -0.367732,-4.517997 -4e-6,-4.564694 0.916042,-8.977078 2.747547,-13.23591 0.586073,-1.388217 1.221756,-2.56555 1.905523,-3.530273 0.683751,-0.988213 1.624085,-2.093275 2.820676,-3.316825 z m 16.848837,0 -0.695766,0.175781 c 1.196572,2.756201 1.794777,5.84205 1.794785,9.257812 -8e-6,2.261495 -0.29147,4.689001 -0.877543,7.280274 -0.561667,2.591284 -1.294504,4.828604 -2.198038,6.71317 -0.927963,2.002352 -2.39364,4.017611 -4.396076,6.043526 l 0.476381,0.529437 c 3.174596,-2.661957 5.554227,-5.311522 7.141533,-7.949917 1.587291,-2.661949 2.381895,-5.713836 2.381905,-9.15318 -1e-5,-2.520598 -0.304664,-4.769933 -0.915153,-6.748745 -0.586089,-1.978779 -1.491036,-4.027996 -2.712028,-6.148158 z m -12.055777,8.000139 c -0.734183,1.6e-5 -2.216292,0.341044 -4.444132,1.025391 l -0.417878,0.142299 0.152526,0.531529 c 1.164552,-0.259574 1.873828,-0.389217 2.126998,-0.38923 0.481007,1.3e-5 0.823354,0.141633 1.02589,0.424805 0.202526,0.283198 0.43006,0.955368 0.683231,2.017299 l 1.101108,4.354771 -3.11528,4.141323 c -0.860762,1.132743 -1.506486,1.69922 -1.936864,1.699218 -0.202533,2e-6 -0.542789,-0.107781 -1.023801,-0.320173 -0.481011,-0.235984 -0.874618,-0.353652 -1.178415,-0.353655 -0.35443,3e-6 -0.65781,0.117671 -0.910974,0.353655 -0.253165,0.23599 -0.380268,0.531203 -0.380269,0.885185 10e-7,0.448378 0.178366,0.815449 0.532794,1.098632 0.329115,0.259586 0.784184,0.389229 1.366461,0.38923 0.734175,-10e-7 1.507004,-0.379044 2.317133,-1.134207 0.835438,-0.75516 2.379011,-2.58214 4.632177,-5.484794 l 1.138717,4.245954 c 0.253156,0.920354 0.53195,1.54671 0.835756,1.877093 0.303787,0.330381 0.760944,0.495953 1.36855,0.495954 0.734164,-10e-7 1.416769,-0.271261 2.049691,-0.814034 0.632897,-0.566369 1.493866,-1.641535 2.582485,-3.222657 l -0.532794,-0.282505 c -0.303813,0.330385 -0.60719,0.661529 -0.910974,0.991908 -0.278493,0.330388 -0.481443,0.565721 -0.608012,0.707311 -0.126594,0.141593 -0.251611,0.271237 -0.37818,0.38923 -0.126594,0.117996 -0.241411,0.201823 -0.342659,0.249023 -0.101279,0.02359 -0.214003,0.03348 -0.340571,0.03348 -0.531658,1e-6 -0.925262,-0.482643 -1.178416,-1.450195 -1.012666,-3.681403 -1.518996,-5.793715 -1.518986,-6.336496 1.74682,-2.855441 2.987014,-4.283609 3.721203,-4.283621 0.227835,1.2e-5 0.545594,0.105704 0.950672,0.31808 0.405048,0.188805 0.733012,0.284612 0.986192,0.284598 0.405047,1.4e-5 0.722808,-0.117653 0.950672,-0.353655 0.253147,-0.235975 0.378163,-0.543166 0.37818,-0.920759 -1.7e-5,-0.377566 -0.151707,-0.684755 -0.455487,-0.920759 -0.278497,-0.259571 -0.645429,-0.389214 -1.101108,-0.38923 -0.835458,1.6e-5 -1.669749,0.37697 -2.505178,1.132115 -0.835455,0.731576 -1.911664,2.042078 -3.228107,3.929967 l -0.417878,-1.94615 c -0.278489,-1.203524 -0.557283,-2.019403 -0.835756,-2.444196 -0.253173,-0.448362 -0.632396,-0.67172 -1.138717,-0.671736 z" /> - - + id="path4" + style="font-style:italic;font-family:FreeSerif;-inkscape-font-specification:'FreeSerif Italic';fill:#eeeeec;stroke:#eeeeec;stroke-width:1.0706;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;paint-order:markers stroke fill" + d="m 24.28806,16.999996 c -0.735562,2.3e-5 -1.417142,0.191316 -2.047602,0.575474 -0.630482,0.361605 -1.157184,0.802793 -1.577489,1.322545 -0.420323,0.519794 -0.82927,1.208785 -1.228561,2.067522 -0.378291,0.858773 -0.671573,1.593391 -0.881722,2.203544 -0.189149,0.610183 -0.42048,1.379545 -0.693678,2.306082 h -2.900072 l -0.221476,1.083985 h 2.837391 l -2.774709,14.238281 c -0.693521,3.661007 -1.711772,5.491065 -3.056777,5.491071 -0.420316,-6e-6 -0.630995,-0.180415 -0.630996,-0.541992 1e-6,-0.0904 0.05163,-0.227279 0.156705,-0.408064 0.08405,-0.158197 0.127453,-0.327724 0.127452,-0.50851 0,-0.361584 -0.115665,-0.665899 -0.346838,-0.914481 -0.252187,-0.248589 -0.54756,-0.372491 -0.883812,-0.372488 -0.3362507,-3e-6 -0.608882,0.13478 -0.8190408,0.405971 -0.2311717,0.271181 -0.3468366,0.599351 -0.3468386,0.983537 2e-6,0.564967 0.2416566,1.049686 0.7250182,1.456474 0.4833622,0.406772 1.0720162,0.611041 1.7655342,0.611049 1.408054,-8e-6 2.647308,-0.825877 3.719113,-2.475586 1.071799,-1.627121 1.933082,-3.998406 2.584575,-7.117048 l 2.271167,-10.848214 h 3.434956 l 0.190134,-1.083985 h -3.405705 c 0.462338,-2.666647 0.999364,-4.622697 1.60883,-5.865653 0.609446,-1.242916 1.355064,-1.864517 2.237737,-1.864537 0.462333,2e-5 0.693663,0.136899 0.693677,0.408064 -1.4e-5,0.04522 -0.05373,0.180005 -0.158794,0.405971 -0.105089,0.226011 -0.156716,0.44116 -0.156704,0.644531 -1.2e-5,0.4068 0.105327,0.73497 0.315498,0.983538 0.210143,0.248608 0.4931,0.372508 0.850381,0.372489 0.357253,1.9e-5 0.662948,-0.136858 0.915153,-0.408064 0.27319,-0.271166 0.409505,-0.586362 0.40952,-0.947963 -1.5e-5,-0.632747 -0.262321,-1.152211 -0.787699,-1.559012 -0.504393,-0.429355 -1.14676,-0.644508 -1.924328,-0.644531 z m 10.235919,0 c -0.122111,0.09414 -0.318509,0.258591 -0.587118,0.493861 -1.07449,0.917667 -2.001636,1.776054 -2.783067,2.576033 -0.757028,0.776489 -1.673074,1.883644 -2.747547,3.318917 -1.074483,1.411779 -1.917664,3.046327 -2.528162,4.905134 -0.586081,1.858833 -0.877545,3.84637 -0.877543,5.964007 -2e-6,2.494119 0.280362,4.672289 0.842024,6.53111 0.561657,1.858819 1.488804,3.928583 2.783066,6.210938 L 29.28588,46.78864 c -0.659346,-1.788237 -1.122918,-3.34056 -1.391534,-4.658203 -0.244205,-1.317645 -0.367736,-2.823879 -0.367732,-4.517997 -4e-6,-4.564694 0.916042,-8.977078 2.747547,-13.23591 0.586073,-1.388217 1.221756,-2.56555 1.905523,-3.530273 0.683751,-0.988213 1.624085,-2.093275 2.820676,-3.316825 z m 16.848837,0 -0.695766,0.175781 c 1.196572,2.756201 1.794777,5.84205 1.794785,9.257812 -8e-6,2.261495 -0.29147,4.689001 -0.877543,7.280274 -0.561667,2.591284 -1.294504,4.828604 -2.198038,6.71317 -0.927963,2.002352 -2.39364,4.017611 -4.396076,6.043526 l 0.476381,0.529437 c 3.174596,-2.661957 5.554227,-5.311522 7.141533,-7.949917 1.587291,-2.661949 2.381895,-5.713836 2.381905,-9.15318 -1e-5,-2.520598 -0.304664,-4.769933 -0.915153,-6.748745 -0.586089,-1.978779 -1.491036,-4.027996 -2.712028,-6.148158 z m -12.055777,8.000139 c -0.734183,1.6e-5 -2.216292,0.341044 -4.444132,1.025391 l -0.417878,0.142299 0.152526,0.531529 c 1.164552,-0.259574 1.873828,-0.389217 2.126998,-0.38923 0.481007,1.3e-5 0.823354,0.141633 1.02589,0.424805 0.202526,0.283198 0.43006,0.955368 0.683231,2.017299 l 1.101108,4.354771 -3.11528,4.141323 c -0.860762,1.132743 -1.506486,1.69922 -1.936864,1.699218 -0.202533,2e-6 -0.542789,-0.107781 -1.023801,-0.320173 -0.481011,-0.235984 -0.874618,-0.353652 -1.178415,-0.353655 -0.35443,3e-6 -0.65781,0.117671 -0.910974,0.353655 -0.253165,0.23599 -0.380268,0.531203 -0.380269,0.885185 10e-7,0.448378 0.178366,0.815449 0.532794,1.098632 0.329115,0.259586 0.784184,0.389229 1.366461,0.38923 0.734175,-10e-7 1.507004,-0.379044 2.317133,-1.134207 0.835438,-0.75516 2.379011,-2.58214 4.632177,-5.484794 l 1.138717,4.245954 c 0.253156,0.920354 0.53195,1.54671 0.835756,1.877093 0.303787,0.330381 0.760944,0.495953 1.36855,0.495954 0.734164,-10e-7 1.416769,-0.271261 2.049691,-0.814034 0.632897,-0.566369 1.493866,-1.641535 2.582485,-3.222657 l -0.532794,-0.282505 c -0.303813,0.330385 -0.60719,0.661529 -0.910974,0.991908 -0.278493,0.330388 -0.481443,0.565721 -0.608012,0.707311 -0.126594,0.141593 -0.251611,0.271237 -0.37818,0.38923 -0.126594,0.117996 -0.241411,0.201823 -0.342659,0.249023 -0.101279,0.02359 -0.214003,0.03348 -0.340571,0.03348 -0.531658,1e-6 -0.925262,-0.482643 -1.178416,-1.450195 -1.012666,-3.681403 -1.518996,-5.793715 -1.518986,-6.336496 1.74682,-2.855441 2.987014,-4.283609 3.721203,-4.283621 0.227835,1.2e-5 0.545594,0.105704 0.950672,0.31808 0.405048,0.188805 0.733012,0.284612 0.986192,0.284598 0.405047,1.4e-5 0.722808,-0.117653 0.950672,-0.353655 0.253147,-0.235975 0.378163,-0.543166 0.37818,-0.920759 -1.7e-5,-0.377566 -0.151707,-0.684755 -0.455487,-0.920759 -0.278497,-0.259571 -0.645429,-0.389214 -1.101108,-0.38923 -0.835458,1.6e-5 -1.669749,0.37697 -2.505178,1.132115 -0.835455,0.731576 -1.911664,2.042078 -3.228107,3.929967 l -0.417878,-1.94615 c -0.278489,-1.203524 -0.557283,-2.019403 -0.835756,-2.444196 -0.253173,-0.448362 -0.632396,-0.67172 -1.138717,-0.671736 z" /> diff --git a/src/Gui/Icons/clear-selection.svg b/src/Gui/Icons/clear-selection.svg index a5e628f28d..9b73bcb0e2 100644 --- a/src/Gui/Icons/clear-selection.svg +++ b/src/Gui/Icons/clear-selection.svg @@ -116,6 +116,53 @@ x2="20" y2="20" gradientUnits="userSpaceOnUse" /> + + + + + + + + + + + @@ -171,4 +218,8 @@ d="M 5,17 25,5 59,9 41,23 z" id="path3970" /> + diff --git a/src/Gui/Icons/edge-selection.svg b/src/Gui/Icons/edge-selection.svg index f72354f54b..be17f9b01b 100644 --- a/src/Gui/Icons/edge-selection.svg +++ b/src/Gui/Icons/edge-selection.svg @@ -1,5 +1,4 @@ - + + + + + + + + + + @@ -163,67 +201,26 @@ id="path2995-1-0" /> + d="m 5,17 36,6 V 59 L 5,53 Z" + style="display:inline;overflow:visible;visibility:visible;opacity:0.6;fill:url(#linearGradient4033);fill-opacity:1;stroke:#34e0e2;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate" /> + id="path1"> - - + style="color:#000000;fill:#cc0000;stroke-linecap:round;stroke-linejoin:round;-inkscape-stroke:none" + d="M 41,23 V 59" + id="path2" /> - - - - - - - - - - - - - - - + style="color:#000000;fill:#ef2929;stroke:#cc0000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none" + d="m 41,20.996909 c -1.656854,0 -3,1.343146 -3,3 v 34 c 0,1.656854 1.343146,3 3,3 1.656854,0 3,-1.343146 3,-3 v -34 c 0,-1.656854 -1.343146,-3 -3,-3 z" + id="path3" /> + diff --git a/src/Gui/Icons/face-selection.svg b/src/Gui/Icons/face-selection.svg index ecefd15f5a..d5a8c8d04b 100644 --- a/src/Gui/Icons/face-selection.svg +++ b/src/Gui/Icons/face-selection.svg @@ -17,11 +17,11 @@ @@ -111,11 +111,50 @@ + + + + + + + + + + @@ -171,4 +210,8 @@ d="M 5,17 25,5 59,9 41,23 z" id="path3970" /> + diff --git a/src/Gui/Icons/feature_suppressed.svg b/src/Gui/Icons/feature_suppressed.svg new file mode 100644 index 0000000000..7fa73f4bfa --- /dev/null +++ b/src/Gui/Icons/feature_suppressed.svg @@ -0,0 +1,310 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Path-FaceProfile + 2016-01-19 + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/Mod/Path/Gui/Resources/icons/Path- + + + FreeCAD LGPL2+ + + + https://www.gnu.org/copyleft/lesser.html + + + [agryson] Alexander Gryson + + + + + + + + + diff --git a/src/Gui/Icons/forbidden.svg b/src/Gui/Icons/forbidden.svg new file mode 100644 index 0000000000..6d10fe075d --- /dev/null +++ b/src/Gui/Icons/forbidden.svg @@ -0,0 +1,382 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + [maxwxyz] + + + https://www.freecad.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/Mod/Sketcher/Gui/Resources/icons/Sketcher_CreateArc.svg + + + FreeCAD LGPL2+ + + + 2023-12-19 + + + + + + diff --git a/src/Gui/Icons/overlay_error.svg b/src/Gui/Icons/overlay_error.svg new file mode 100644 index 0000000000..2b7aef4868 --- /dev/null +++ b/src/Gui/Icons/overlay_error.svg @@ -0,0 +1,380 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + [maxwxyz] + + + https://www.freecad.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/Mod/Sketcher/Gui/Resources/icons/Sketcher_CreateArc.svg + + + FreeCAD LGPL2+ + + + 2023-12-19 + + + + + + diff --git a/src/Gui/Icons/overlay_recompute.svg b/src/Gui/Icons/overlay_recompute.svg new file mode 100644 index 0000000000..dae6815d04 --- /dev/null +++ b/src/Gui/Icons/overlay_recompute.svg @@ -0,0 +1,379 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + [maxwxyz] + + + https://www.freecad.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/Mod/Sketcher/Gui/Resources/icons/Sketcher_CreateArc.svg + + + FreeCAD LGPL2+ + + + 2023-12-19 + + + + + + diff --git a/src/Gui/Icons/resource.qrc b/src/Gui/Icons/resource.qrc index fbcbaa9833..3ee5c1eca3 100644 --- a/src/Gui/Icons/resource.qrc +++ b/src/Gui/Icons/resource.qrc @@ -275,6 +275,10 @@ image-scaling.svg VarSet.svg Std_ToggleFreeze.svg + overlay_recompute.svg + overlay_error.svg + feature_suppressed.svg + forbidden.svg index.theme diff --git a/src/Gui/Icons/selection-filter.svg b/src/Gui/Icons/selection-filter.svg index 238c852f48..eb24b50bca 100644 --- a/src/Gui/Icons/selection-filter.svg +++ b/src/Gui/Icons/selection-filter.svg @@ -1,5 +1,4 @@ - + + + + + + + + + + @@ -490,6 +528,14 @@ + + @@ -535,11 +581,7 @@ id="path3970" /> - + style="fill:url(#linearGradient4221);fill-opacity:1;stroke:#042a2a;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1" + d="m 39.199488,57.060024 -12,-12 -4,6 -7,-21 21,7 -6,4 12,12 z" + id="rect3871" /> diff --git a/src/Gui/Icons/vertex-selection.svg b/src/Gui/Icons/vertex-selection.svg index 319fc1f328..ba63bebdb7 100644 --- a/src/Gui/Icons/vertex-selection.svg +++ b/src/Gui/Icons/vertex-selection.svg @@ -1,5 +1,4 @@ - + + + + + + + + + + @@ -170,11 +208,15 @@ d="M 5,17 25,5 59,9 41,23 z" id="path3970" /> + diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index e4b5ba6b34..c6fba06b3e 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -5214,21 +5214,7 @@ void DocumentObjectItem::testStatus(bool resetStatus, QIcon& icon1, QIcon& icon2 static QPixmap pxError; if (pxError.isNull()) { // object is in error state - const char* const feature_error_xpm[] = { - "9 9 3 1", - ". c None", - "# c #ff0000", - "a c #ffffff", - "...###...", - ".##aaa##.", - ".##aaa##.", - "###aaa###", - "###aaa###", - "#########", - ".##aaa##.", - ".##aaa##.", - "...###..." }; - pxError = QPixmap(feature_error_xpm); + pxError = Gui::BitmapFactory().pixmapFromSvg("overlay_error", QSize(10, 10)); } px = pxError; } @@ -5236,21 +5222,7 @@ void DocumentObjectItem::testStatus(bool resetStatus, QIcon& icon1, QIcon& icon2 static QPixmap pxRecompute; if (pxRecompute.isNull()) { // object must be recomputed - const char* const feature_recompute_xpm[] = { - "9 9 3 1", - ". c None", - "# c #0000ff", - "a c #ffffff", - "...###...", - ".######aa", - ".#####aa.", - "#####aa##", - "#aa#aa###", - "#aaaa####", - ".#aa####.", - ".#######.", - "...###..." }; - pxRecompute = QPixmap(feature_recompute_xpm); + pxRecompute = Gui::BitmapFactory().pixmapFromSvg("overlay_recompute", QSize(10, 10)); } px = pxRecompute; } @@ -5283,19 +5255,7 @@ void DocumentObjectItem::testStatus(bool resetStatus, QIcon& icon1, QIcon& icon2 if (currentStatus & 8) {// hidden item static QPixmap pxHidden; if (pxHidden.isNull()) { - const char* const feature_hidden_xpm[] = { - "9 7 3 1", - ". c None", - "# c #000000", - "a c #ffffff", - "...###...", - "..#aaa#..", - ".#a###a#.", - "#aa###aa#", - ".#a###a#.", - "..#aaa#..", - "...###..." }; - pxHidden = QPixmap(feature_hidden_xpm); + pxHidden = Gui::BitmapFactory().pixmapFromSvg("TreeItemVisible", QSize(10, 10)); } pxOff = BitmapFactory().merge(pxOff, pxHidden, BitmapFactoryInst::TopLeft); pxOn = BitmapFactory().merge(pxOn, pxHidden, BitmapFactoryInst::TopLeft); @@ -5304,19 +5264,8 @@ void DocumentObjectItem::testStatus(bool resetStatus, QIcon& icon1, QIcon& icon2 if (external) {// external item static QPixmap pxExternal; if (pxExternal.isNull()) { - const char* const feature_external_xpm[] = { - "7 7 3 1", - ". c None", - "# c #000000", - "a c #ffffff", - "..###..", - ".#aa##.", - "..#aa##", - "..##aa#", - "..#aa##", - ".#aa##.", - "..###.." }; - pxExternal = QPixmap(feature_external_xpm); + pxExternal = Gui::BitmapFactory().pixmapFromSvg("LinkOverlay", + QSize(24, 24)); } pxOff = BitmapFactory().merge(pxOff, pxExternal, BitmapFactoryInst::BottomRight); pxOn = BitmapFactory().merge(pxOn, pxExternal, BitmapFactoryInst::BottomRight); @@ -5326,27 +5275,7 @@ void DocumentObjectItem::testStatus(bool resetStatus, QIcon& icon1, QIcon& icon2 static QPixmap pxFreeze; if (pxFreeze.isNull()) { // object is in freezed state - const char* const feature_freezed_xpm[] = { - "16 16 2 1", - " c None", - ". c #00EEFF", - " . . . ", - " . ... . ", - " .. . .. ", - " .... . .... ", - " .. . .. ", - " . . . . .", - " . ... . ", - " ...............", - " . ... . ", - " . . . . .", - " .. . .. ", - " .... . .... ", - " .. . .. ", - " . ... . ", - " . . . ", - " "}; - pxFreeze = QPixmap(feature_freezed_xpm); + pxFreeze = Gui::BitmapFactory().pixmapFromSvg("Std_ToggleFreeze", QSize(16, 16)); } pxOff = BitmapFactory().merge(pxOff, pxFreeze, BitmapFactoryInst::TopLeft); pxOn = BitmapFactory().merge(pxOn, pxFreeze, BitmapFactoryInst::TopLeft); diff --git a/src/Gui/ViewProviderSuppressibleExtension.cpp b/src/Gui/ViewProviderSuppressibleExtension.cpp index eefa2fee73..c2191e96f1 100644 --- a/src/Gui/ViewProviderSuppressibleExtension.cpp +++ b/src/Gui/ViewProviderSuppressibleExtension.cpp @@ -72,29 +72,7 @@ QIcon ViewProviderSuppressibleExtension::extensionMergeColorfullOverlayIcons (co QIcon mergedicon = orig; if(isSetSuppressedIcon) { - QPixmap px; - static const char * feature_suppressed_xpm[] = { - "16 16 2 1", - " c None", - ". c #FF0000", - ". ", - " .. ", - " ... ", - " ... ", - " ... ", - " ... ", - " ... ", - " ... ", - " ... ", - " ... ", - " ... ", - " ... ", - " ... ", - " ... ", - " .. ", - " ."}; - - px = QPixmap(feature_suppressed_xpm); + static QPixmap px(Gui::BitmapFactory().pixmapFromSvg("feature_suppressed", QSize(16, 16))); mergedicon = Gui::BitmapFactoryInst::mergePixmap(mergedicon, px, Gui::BitmapFactoryInst::TopLeft); } diff --git a/src/Mod/Mesh/Gui/AppMeshGui.cpp b/src/Mod/Mesh/Gui/AppMeshGui.cpp index 1f338f8ae0..efdc2467a8 100644 --- a/src/Mod/Mesh/Gui/AppMeshGui.cpp +++ b/src/Mod/Mesh/Gui/AppMeshGui.cpp @@ -54,7 +54,6 @@ #include "ViewProviderTransform.h" #include "ViewProviderTransformDemolding.h" #include "Workbench.h" -#include "images.h" // use a different name to CreateCommand() @@ -138,9 +137,6 @@ PyMOD_INIT_FUNC(MeshGui) PyObject* mod = MeshGui::initModule(); Base::Console().Log("Loading GUI of Mesh module... done\n"); - // Register icons - Gui::BitmapFactory().addXPM("mesh_fillhole", mesh_fillhole); - // instantiating the commands CreateMeshCommands(); if (qApp) { diff --git a/src/Mod/Mesh/Gui/Command.cpp b/src/Mod/Mesh/Gui/Command.cpp index b5a4dc3b96..c086afbf9b 100644 --- a/src/Mod/Mesh/Gui/Command.cpp +++ b/src/Mod/Mesh/Gui/Command.cpp @@ -1585,7 +1585,10 @@ void CmdMeshFillInteractiveHole::activated(int) if (view) { Gui::View3DInventorViewer* viewer = view->getViewer(); viewer->setEditing(true); - viewer->setEditingCursor(QCursor(Gui::BitmapFactory().pixmap("mesh_fillhole"), 5, 5)); + viewer->setEditingCursor( + QCursor(Gui::BitmapFactory().pixmapFromSvg("Mesh_CursorFillInteractive", QSize(32, 32)), + 6, + 6)); viewer->addEventCallback(SoMouseButtonEvent::getClassTypeId(), MeshGui::ViewProviderMeshFaceSet::fillHoleCallback); viewer->setSelectionEnabled(false); diff --git a/src/Mod/Mesh/Gui/Resources/Mesh.qrc b/src/Mod/Mesh/Gui/Resources/Mesh.qrc index 01e11f9428..4acf865964 100644 --- a/src/Mod/Mesh/Gui/Resources/Mesh.qrc +++ b/src/Mod/Mesh/Gui/Resources/Mesh.qrc @@ -4,6 +4,7 @@ icons/Mesh_BoundingBox.svg icons/Mesh_BuildRegularSolid.svg icons/Mesh_CrossSections.svg + icons/Mesh_CursorFillInteractive.svg icons/Mesh_CurvatureInfo.svg icons/Mesh_Decimating.svg icons/Mesh_Difference.svg diff --git a/src/Mod/Mesh/Gui/Resources/icons/Mesh_CursorFillInteractive.svg b/src/Mod/Mesh/Gui/Resources/icons/Mesh_CursorFillInteractive.svg new file mode 100644 index 0000000000..3810fc8507 --- /dev/null +++ b/src/Mod/Mesh/Gui/Resources/icons/Mesh_CursorFillInteractive.svg @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/src/Mod/Mesh/Gui/images.h b/src/Mod/Mesh/Gui/images.h deleted file mode 100644 index 5ba0bd5c6b..0000000000 --- a/src/Mod/Mesh/Gui/images.h +++ /dev/null @@ -1,40 +0,0 @@ -// clang-format off -/* XPM */ -static const char *mesh_fillhole[]={ -"32 32 3 1", -"# c #000000", -"+ c #ffffff", -". c None", -"....+...........................", -"....+....................##.....", -"....+...................###.....", -".......................####.....", -"+++.+.+++............###++#.....", -"....................###+++##....", -"....+.............###+++++##....", -"....+............###++++++##....", -"....+..........###++++++++##....", -"..............###++++++++++#....", -"............###++++++++++++#....", -"...........###+++#######+++##...", -"..........###+++#......##++##...", -"........###++++#........#++##...", -".......###+++++#........##+##...", -".....###+++++++#........##.##...", -"....###++++++++##.......#+++#...", -"....####++++++++##....##++++##..", -"......####++++++++#####+++++##..", -"........#####+++++++++++++++##..", -"...........####+++++++++++++##..", -".............#####++++++++++##..", -"................####+++++++++#..", -"..................#####++++++#..", -".....................####++++##.", -".......................#####+##.", -"..........................#####.", -"............................##..", -"................................", -"................................", -"................................", -"................................"}; -// clang-format on diff --git a/src/Mod/Part/Gui/Resources/Part.qrc b/src/Mod/Part/Gui/Resources/Part.qrc index 8ac1e588c5..ffde8218b6 100644 --- a/src/Mod/Part/Gui/Resources/Part.qrc +++ b/src/Mod/Part/Gui/Resources/Part.qrc @@ -96,5 +96,6 @@ icons/Part_SectionCut.svg icons/PartWorkbench.svg icons/preferences-part_design.svg + icons/Part_Detached.svg diff --git a/src/Mod/Part/Gui/Resources/icons/Part_Detached.svg b/src/Mod/Part/Gui/Resources/icons/Part_Detached.svg new file mode 100644 index 0000000000..cf23b1f54e --- /dev/null +++ b/src/Mod/Part/Gui/Resources/icons/Part_Detached.svg @@ -0,0 +1,389 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + [maxwxyz] + + + https://www.freecad.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/Mod/Sketcher/Gui/Resources/icons/Sketcher_CreateArc.svg + + + FreeCAD LGPL2+ + + + 2023-12-19 + + + + + + + diff --git a/src/Mod/Part/Gui/ViewProviderAttachExtension.cpp b/src/Mod/Part/Gui/ViewProviderAttachExtension.cpp index 8607253ba7..550c6936e1 100644 --- a/src/Mod/Part/Gui/ViewProviderAttachExtension.cpp +++ b/src/Mod/Part/Gui/ViewProviderAttachExtension.cpp @@ -61,27 +61,13 @@ QIcon ViewProviderAttachExtension::extensionMergeColorfullOverlayIcons (const QI if (attach) { if(!attach->isAttacherActive()) { - QPixmap px; + static QPixmap px( + Gui::BitmapFactory().pixmapFromSvg("Part_Detached", QSize(10, 10))); - static const char * const feature_detached_xpm[]={ - "9 10 3 1", - ". c None", - "# c #cc00cc", - "a c #ffffff", - "...###...", - ".##aaa##.", - "##aaaaa##", - "##aaaaa##", - "#########", - "#########", - "#########", - ".##aaa##.", - ".##aaa##.", - "...###..."}; - - px = QPixmap(feature_detached_xpm); - - mergedicon = Gui::BitmapFactoryInst::mergePixmap(mergedicon, px, Gui::BitmapFactoryInst::BottomLeft); + mergedicon = + Gui::BitmapFactoryInst::mergePixmap(mergedicon, + px, + Gui::BitmapFactoryInst::BottomLeft); } } } diff --git a/src/Mod/PartDesign/Gui/Resources/PartDesign.qrc b/src/Mod/PartDesign/Gui/Resources/PartDesign.qrc index 43382ffcef..fcfb16c4f9 100644 --- a/src/Mod/PartDesign/Gui/Resources/PartDesign.qrc +++ b/src/Mod/PartDesign/Gui/Resources/PartDesign.qrc @@ -35,6 +35,7 @@ icons/PartDesign_MoveFeatureInTree.svg icons/PartDesign_MoveTip.svg icons/PartDesign_MultiTransform.svg + icons/PartDesign_Overlay_Tip.svg icons/PartDesign_Pad.svg icons/PartDesign_Plane.svg icons/PartDesign_Pocket.svg diff --git a/src/Mod/PartDesign/Gui/Resources/icons/PartDesign_Overlay_Tip.svg b/src/Mod/PartDesign/Gui/Resources/icons/PartDesign_Overlay_Tip.svg new file mode 100644 index 0000000000..45099462ef --- /dev/null +++ b/src/Mod/PartDesign/Gui/Resources/icons/PartDesign_Overlay_Tip.svg @@ -0,0 +1,393 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + [maxwxyz] + + + https://www.freecad.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/Mod/Sketcher/Gui/Resources/icons/Sketcher_CreateArc.svg + + + FreeCAD LGPL2+ + + + 2023-12-19 + + + + + + + + + + + diff --git a/src/Mod/PartDesign/Gui/ViewProvider.cpp b/src/Mod/PartDesign/Gui/ViewProvider.cpp index efdcb7ad30..f96fa45cd1 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.cpp +++ b/src/Mod/PartDesign/Gui/ViewProvider.cpp @@ -205,26 +205,8 @@ QIcon ViewProvider::mergeColorfulOverlayIcons (const QIcon & orig) const QIcon mergedicon = orig; if(isSetTipIcon) { - QPixmap px; - - static const char * const feature_tip_xpm[]={ - "9 9 3 1", - ". c None", - "# c #00cc00", - "a c #ffffff", - "...###...", - ".##aaa##.", - ".##aaa##.", - "###aaa###", - "##aaaaa##", - "##aaaaa##", - ".##aaa##.", - ".##aaa##.", - "...###..."}; - px = QPixmap(feature_tip_xpm); - + static QPixmap px(Gui::BitmapFactory().pixmapFromSvg("PartDesign_Overlay_Tip", QSize(10, 10))); mergedicon = Gui::BitmapFactoryInst::mergePixmap(mergedicon, px, Gui::BitmapFactoryInst::BottomRight); - } return Gui::ViewProvider::mergeColorfulOverlayIcons (mergedicon); diff --git a/src/Mod/Sketcher/Gui/Resources/Sketcher.qrc b/src/Mod/Sketcher/Gui/Resources/Sketcher.qrc index 621488dec2..f0a0b2ca56 100644 --- a/src/Mod/Sketcher/Gui/Resources/Sketcher.qrc +++ b/src/Mod/Sketcher/Gui/Resources/Sketcher.qrc @@ -2,6 +2,7 @@ icons/Sketcher_Sketch.svg icons/SketcherWorkbench.svg + icons/Sketcher_NotFullyConstrained.svg icons/SketcherWorkbench.svg diff --git a/src/Mod/Sketcher/Gui/Resources/icons/Sketcher_NotFullyConstrained.svg b/src/Mod/Sketcher/Gui/Resources/icons/Sketcher_NotFullyConstrained.svg new file mode 100644 index 0000000000..f23ee93f2c --- /dev/null +++ b/src/Mod/Sketcher/Gui/Resources/icons/Sketcher_NotFullyConstrained.svg @@ -0,0 +1,399 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + [maxwxyz] + + + https://www.freecad.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/Mod/Sketcher/Gui/Resources/icons/Sketcher_CreateArc.svg + + + FreeCAD LGPL2+ + + + 2023-12-19 + + + + + + diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index 95ae557362..6bc527eef4 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -3618,23 +3618,7 @@ QIcon ViewProviderSketch::mergeColorfulOverlayIcons(const QIcon& orig) const QIcon mergedicon = orig; if (!getSketchObject()->FullyConstrained.getValue()) { - QPixmap px; - - static const char* const sketcher_notfullyconstrained_xpm[] = {"9 9 3 1", - ". c None", - "# c #dbaf00", - "a c #ffcc00", - "##.....##", - "#a#...#a#", - "#aa#.#aa#", - ".#a#.#a#.", - ".#a#.#a#.", - ".#a#.#a#.", - "#aa#.#aa#", - "#a#...#a#", - "##.....##"}; - px = QPixmap(sketcher_notfullyconstrained_xpm); - + static QPixmap px(Gui::BitmapFactory().pixmapFromSvg("Sketcher_NotFullyConstrained", QSize(10, 10))); mergedicon = Gui::BitmapFactoryInst::mergePixmap( mergedicon, px, Gui::BitmapFactoryInst::BottomRight); }