Add help for used colors of support points

This commit is contained in:
Filip Sykala - NTB T15p 2025-01-29 17:58:45 +01:00 committed by Lukas Matena
parent 8f9bc6ddbe
commit f66a50b785
6 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" x="0" y="0" width="500" height="500">
<defs>
<linearGradient id="linearGradient">
<stop style="stop-color:#bbbbff;stop-opacity:1" offset="0" />
<stop style="stop-color:#8f8fff;stop-opacity:1" offset="0.7" />
<stop style="stop-color:#6666cd;stop-opacity:1" offset="1" />
</linearGradient>
<radialGradient cx="170" cy="200" r="200" fx="170" fy="200" id="radialGradient"
xlink:href="#linearGradient" gradientUnits="userSpaceOnUse" />
</defs>
<circle cx="250" cy="250" r="200" style="fill:url(#radialGradient)" />
</svg>

After

Width:  |  Height:  |  Size: 602 B

View File

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" x="0" y="0" width="500" height="500">
<defs>
<linearGradient id="linearGradient">
<stop style="stop-color:#d4ffff;stop-opacity:1;" offset="0" />
<stop style="stop-color:#00ffff;stop-opacity:1" offset="0.7" />
<stop style="stop-color:#00b1b1;stop-opacity:1;" offset="1" />
</linearGradient>
<radialGradient cx="170" cy="200" r="200" fx="170" fy="200" id="radialGradient"
xlink:href="#linearGradient" gradientUnits="userSpaceOnUse" />
</defs>
<circle cx="250" cy="250" r="200" style="fill:url(#radialGradient)" />
</svg>

After

Width:  |  Height:  |  Size: 605 B

View File

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" x="0" y="0" width="500" height="500">
<defs>
<linearGradient id="linearGradient">
<stop style="stop-color:#ffffff;stop-opacity:1;" offset="0" />
<stop style="stop-color:#bcbcbc;stop-opacity:1;" offset="0.5" />
<stop style="stop-color:#737373;stop-opacity:1;" offset="1" />
</linearGradient>
<radialGradient cx="170" cy="200" r="200" fx="170" fy="200" id="radialGradient"
xlink:href="#linearGradient" gradientUnits="userSpaceOnUse" />
</defs>
<circle cx="250" cy="250" r="200" style="fill:url(#radialGradient)" />
</svg>

After

Width:  |  Height:  |  Size: 605 B

View File

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" x="0" y="0" width="500" height="500">
<defs>
<linearGradient id="linearGradient">
<stop style="stop-color:#ffc887;stop-opacity:1;" offset="0" />
<stop style="stop-color:#fe8d4a;stop-opacity:1" offset="0.6" />
<stop style="stop-color:#be5c28;stop-opacity:1;" offset="1" />
</linearGradient>
<radialGradient cx="170" cy="200" r="200" fx="170" fy="200" id="radialGradient"
xlink:href="#linearGradient" gradientUnits="userSpaceOnUse" />
</defs>
<circle cx="250" cy="250" r="200" style="fill:url(#radialGradient)" />
</svg>

After

Width:  |  Height:  |  Size: 605 B

View File

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" x="0" y="0" width="500" height="500">
<defs>
<linearGradient id="linearGradient">
<stop style="stop-color:#ffffff;stop-opacity:1;" offset="0" />
<stop style="stop-color:#ffa2a2;stop-opacity:1" offset="0.7" />
<stop style="stop-color:#e87474;stop-opacity:1" offset="1" />
</linearGradient>
<radialGradient cx="170" cy="200" r="200" fx="170" fy="200" id="radialGradient"
xlink:href="#linearGradient" gradientUnits="userSpaceOnUse" />
</defs>
<circle cx="250" cy="250" r="200" style="fill:url(#radialGradient)" />
</svg>

After

Width:  |  Height:  |  Size: 605 B

View File

@ -1525,6 +1525,20 @@ SlaGizmoHelpDialog::SlaGizmoHelpDialog()
gridsizer->Add(desc, -1, wxALIGN_CENTRE_VERTICAL);
}
std::vector<std::pair<std::string, wxString>> point_types;
point_types.push_back(std::make_pair("sphere_lightgray",_L("Generated point")));
point_types.push_back(std::make_pair("sphere_redish", _L("Selected support point")));
point_types.push_back(std::make_pair("sphere_orange", _L("User edited point")));
point_types.push_back(std::make_pair("sphere_blueish", _L("Island support point")));
point_types.push_back(std::make_pair("sphere_cyan", _L("Mouse hovered point")));
for (const auto &[icon_name, description] : point_types) {
auto desc = new wxStaticText(this, wxID_ANY, description);
desc->SetFont(font);
gridsizer->Add(new wxStaticBitmap(this, wxID_ANY, ScalableBitmap(this, icon_name).bmp()),
-1, wxALIGN_CENTRE_VERTICAL);
gridsizer->Add(desc, -1, wxALIGN_CENTRE_VERTICAL);
}
SetSizer(hsizer);
hsizer->SetSizeHints(this);
}