You've already forked nodeeditor
mirror of
https://github.com/AxioDL/nodeeditor.git
synced 2026-03-30 11:48:31 -07:00
58 lines
910 B
C++
58 lines
910 B
C++
#pragma once
|
|
|
|
#include <QtGui/QColor>
|
|
|
|
#include "Export.hpp"
|
|
#include "Style.hpp"
|
|
|
|
namespace QtNodes
|
|
{
|
|
|
|
class NODE_EDITOR_PUBLIC NodeStyle : public Style
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
|
|
NodeStyle();
|
|
|
|
NodeStyle(QString jsonText);
|
|
|
|
public:
|
|
|
|
static void setNodeStyle(QString jsonText);
|
|
|
|
private:
|
|
|
|
void loadJsonText(QString jsonText) override;
|
|
|
|
void loadJsonFile(QString fileName) override;
|
|
|
|
void loadJsonFromByteArray(QByteArray const &byteArray) override;
|
|
|
|
public:
|
|
|
|
QColor NormalBoundaryColor;
|
|
QColor SelectedBoundaryColor;
|
|
QColor GradientColor0;
|
|
QColor GradientColor1;
|
|
QColor GradientColor2;
|
|
QColor GradientColor3;
|
|
QColor ShadowColor;
|
|
QColor FontColor;
|
|
QColor FontColorFaded;
|
|
|
|
QColor ConnectionPointColor;
|
|
QColor FilledConnectionPointColor;
|
|
|
|
QColor WarningColor;
|
|
QColor ErrorColor;
|
|
|
|
float PenWidth;
|
|
float HoveredPenWidth;
|
|
|
|
float ConnectionPointDiameter;
|
|
|
|
float Opacity;
|
|
};
|
|
}
|