[GUI] Radial gradient implementation
This commit implements radial gradient as background and adds the option to settings. It also renames "Color gradient" as "Linear gradient", keeping Linear gradient default. Internally, it remains unchanged for compatibility. Radio gradient is more suitable for CAD, since it gives a more balanced color distribution across the screen, improving visibility of model and sketches with a halo-like effect.
This commit is contained in:
@@ -1084,16 +1084,18 @@ bool View3DInventorViewer::hasGradientBackground() const
|
||||
}
|
||||
|
||||
void View3DInventorViewer::setGradientBackgroundColor(const SbColor& fromColor,
|
||||
const SbColor& toColor)
|
||||
const SbColor& toColor,
|
||||
bool isRadial)
|
||||
{
|
||||
pcBackGround->setColorGradient(fromColor, toColor);
|
||||
pcBackGround->setColorGradient(fromColor, toColor, isRadial);
|
||||
}
|
||||
|
||||
void View3DInventorViewer::setGradientBackgroundColor(const SbColor& fromColor,
|
||||
const SbColor& toColor,
|
||||
const SbColor& midColor)
|
||||
const SbColor& midColor,
|
||||
bool isRadial)
|
||||
{
|
||||
pcBackGround->setColorGradient(fromColor, toColor, midColor);
|
||||
pcBackGround->setColorGradient(fromColor, toColor, midColor, isRadial);
|
||||
}
|
||||
|
||||
void View3DInventorViewer::setEnabledFPSCounter(bool on)
|
||||
|
||||
Reference in New Issue
Block a user