-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fontFamily options #368
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#pragma once | ||
#pragma once | ||
|
||
#include <QtGui/QColor> | ||
|
||
|
@@ -27,27 +27,27 @@ class NODE_EDITOR_PUBLIC NodeStyle : public Style | |
QJsonObject toJson() const 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; | ||
QColor NormalBoundaryColor; | ||
QColor SelectedBoundaryColor; | ||
QColor GradientColor0; | ||
QColor GradientColor1; | ||
QColor GradientColor2; | ||
QColor GradientColor3; | ||
QColor ShadowColor; | ||
QColor FontColor; | ||
QColor FontColorFaded; | ||
QString FontFamily; | ||
QColor ConnectionPointColor; | ||
QColor FilledConnectionPointColor; | ||
|
||
QColor WarningColor; | ||
QColor ErrorColor; | ||
|
||
float PenWidth; | ||
float HoveredPenWidth; | ||
|
||
float ConnectionPointDiameter; | ||
|
||
float Opacity; | ||
Comment on lines
+40
to
+51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revert adding these additional spaces. |
||
}; | ||
} // namespace QtNodes |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
{ | ||
"GraphicsViewStyle": { | ||
"BackgroundColor": [53, 53, 53], | ||
"FineGridColor": [60, 60, 60], | ||
|
@@ -14,6 +14,7 @@ | |
"ShadowColor": [20, 20, 20], | ||
"FontColor" : "white", | ||
"FontColorFaded" : "gray", | ||
"FontFamily": "Microsoft YaHei", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The default font should be the default font of Qt: "Segoe UI" (This font ships with Qt, so we know it's safe to use) |
||
"ConnectionPointColor": [169, 169, 169], | ||
"FilledConnectionPointColor": "cyan", | ||
"ErrorColor": "red", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert changes like these. There is no need to change these lines of code.
As a word of advice - it is usually desirable to only change code that needs to be changed to address the PR. This avoids causing confusion/overload when others review the change.
Additionally, stylistic coding is really up to repo owner as of now. And it seems like a single space between type and variable name is the overall style (and it typically is).