File: NodeStyle.hpp

package info (click to toggle)
qnodeeditor 2.1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,144 kB
  • sloc: cpp: 8,823; makefile: 3
file content (41 lines) | stat: -rw-r--r-- 1,079 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include "Export.hpp"
#include "Style.hpp"

#include <QtGui/QColor>
namespace QtNodes
{
    class NODE_EDITOR_PUBLIC NodeStyle : public Style
    {
      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;
    };
} // namespace QtNodes