Remove legacy serialization and QPropertyTree (#684)
Remove: - CryCommon/CryExtension/* - CryCommon/Serialization/* - Sandbox/Plugins/EditorCommon/QPropertyTree/* - All related CryCommon interfaces - All CrySystem implementations - Various related Editor classes
This commit is contained in:
@@ -16,13 +16,16 @@
|
||||
#include <QStyleOptionToolButton>
|
||||
#include <AzCore/Casting/numeric_cast.h>
|
||||
|
||||
static QColor Interpolate(const QColor& a, const QColor& b, float k)
|
||||
namespace DockTitleBarInterpolate
|
||||
{
|
||||
float mk = 1.0f - k;
|
||||
return QColor(aznumeric_cast<int>(a.red() * mk + b.red() * k),
|
||||
aznumeric_cast<int>(a.green() * mk + b.green() * k),
|
||||
aznumeric_cast<int>(a.blue() * mk + b.blue() * k),
|
||||
aznumeric_cast<int>(a.alpha() * mk + b.alpha() * k));
|
||||
static QColor Interpolate(const QColor& a, const QColor& b, float k)
|
||||
{
|
||||
float mk = 1.0f - k;
|
||||
return QColor(aznumeric_cast<int>(a.red() * mk + b.red() * k),
|
||||
aznumeric_cast<int>(a.green() * mk + b.green() * k),
|
||||
aznumeric_cast<int>(a.blue() * mk + b.blue() * k),
|
||||
aznumeric_cast<int>(a.alpha() * mk + b.alpha() * k));
|
||||
}
|
||||
}
|
||||
|
||||
class CDockWidgetTitleButton
|
||||
@@ -60,7 +63,7 @@ public:
|
||||
p.setRenderHint(QPainter::Antialiasing, true);
|
||||
QRect r = rect().adjusted(2, 2, -3, -3);
|
||||
p.translate(0.5f, 0.5f);
|
||||
QColor color = Interpolate(palette().color(QPalette::Window), palette().color(QPalette::Shadow), 0.2f);
|
||||
QColor color = DockTitleBarInterpolate::Interpolate(palette().color(QPalette::Window), palette().color(QPalette::Shadow), 0.2f);
|
||||
p.setBrush(QBrush(color));
|
||||
p.setPen(Qt::NoPen);
|
||||
p.drawRoundedRect(r, 4, 4, Qt::AbsoluteSize);
|
||||
|
||||
Reference in New Issue
Block a user