-
Notifications
You must be signed in to change notification settings - Fork 2
Button shapes should not be ASCII chars [CPP-132] #149
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
Conversation
resources/Constants/Constants.qml
Outdated
| readonly property string importPath: "images/fontawesome/file-import.svg" | ||
| readonly property string warningPath: "images/fontawesome/exclamation-triangle.svg" | ||
| readonly property string connectButtonPath: "images/fontawesome/power-off-solid.svg" | ||
| readonly property string pauseButtonUrl: "qrc:///pause-solid.svg" |
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.
I agree the svg does look a little thicc. If you find a better one feel free to swap it in:
https://fontawesome.com/v5.15/icons?d=gallery&p=2&m=free
| id: positionPauseImg | ||
|
|
||
| anchors.centerIn: parent | ||
| width: 12 |
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.
For these numbers I like to throw them in the constants file for whichever QtObject is relevant for the tab for this one Constants.solutionPosition. and you can use the same for both height and width.
Things like smooth / antialiasing you can leave out.
resources/console_resources.qrc
Outdated
| <file>images/fontawesome/play-solid.svg</file> | ||
| <file>images/fontawesome/power-off-solid.svg</file> | ||
| <file>images/fontawesome/pause-solid.svg</file> | ||
| <file alias="pause-solid.svg">images/fontawesome/pause-solid.svg</file> |
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.
This is a pretty cool feature. We will need to take caution though as we will likely have a mixture of images from different sources and this abstracts the source from our constants file.
Replaced all instances of buttons using ascii with svg icons.
b0d00d2 to
fd8bcae
Compare
Just wanted to solicit early feedback for some proposed changes:
SolutionPositionTab.qmlsince it's nested in theSolutionTabComponentsfolder. (../images/vsimages/).Constants.icons.pauseButtonUrl).