Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zh18588441437
Copy link

Hi
I'm learning nodeeditor and looking to do something with it, this commit adds a font selection field

Comment on lines +30 to +38
QColor NormalBoundaryColor;
QColor SelectedBoundaryColor;
QColor GradientColor0;
QColor GradientColor1;
QColor GradientColor2;
QColor GradientColor3;
QColor ShadowColor;
QColor FontColor;
QColor FontColorFaded;
Copy link
Contributor

@nolankramer nolankramer Aug 16, 2024

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).

Comment on lines +40 to +51
QColor ConnectionPointColor;
QColor FilledConnectionPointColor;

QColor WarningColor;
QColor ErrorColor;

float PenWidth;
float HoveredPenWidth;

float ConnectionPointDiameter;

float Opacity;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert adding these additional spaces.

@@ -14,6 +14,7 @@
"ShadowColor": [20, 20, 20],
"FontColor" : "white",
"FontColorFaded" : "gray",
"FontFamily": "Microsoft YaHei",
Copy link
Contributor

Choose a reason for hiding this comment

The 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants