-
Notifications
You must be signed in to change notification settings - Fork 0
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
MainView materialfx #190
base: filter-panel
Are you sure you want to change the base?
MainView materialfx #190
Conversation
eed3d14
to
79a2acb
Compare
1f957a5
to
c596cb1
Compare
1798439
to
36d5c70
Compare
36d5c70
to
5fc3155
Compare
style = "-fx-font-family: ${Style.FontCondensed}; -fx-font-weight: ${Style.FontWeightBold};" | ||
} | ||
|
||
var segmentedButton = SegmentedButton(fileNameViewRadioButton, imagePreviewRadioButton) |
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.
avoid public fields
const val pathTestProject = "testData/TestProject1" | ||
const val image1 = "123456789" | ||
const val image2 = "987654321" | ||
const val layer = "alg1_keypoint" | ||
const val pathImage1 = "testData/TestProject1/images/123456789.jpg" | ||
const val pathImage2 = "testData/TestProject1/images/987654321.jpg" | ||
const val pathOutput1 = "testData/TestProject1/alg1_keypoint/123456789.csv" | ||
const val pathOutput2 = "testData/TestProject1/alg1_keypoint/987654321.csv" |
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.
Name from capital letter
src/main/resources/icons/logo.png
Outdated
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.
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.
Also, make background transparent
@@ -0,0 +1,76 @@ | |||
package solve.utils |
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.
duplicates solve.utils.materialfx.MFXNodesUtils
@@ -26,18 +19,18 @@ class TreeTableViewStylesheet : Stylesheet() { | |||
|
|||
treeTableRowCell { | |||
arrow { | |||
backgroundImage += URI("/icons/importer/Shape.png") | |||
backgroundImage += URI("/icons/importer/list_cell_arrow.png") |
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.
Why not svg?
dialogClosingController.isClosing.value = true | ||
dialogClosingController.isClosing.value = false |
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.
Incapsulate in method
import tornadofx.* | ||
|
||
class SettingsDialogNode : VBox(10.0) { | ||
|
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.
space
) | ||
addSettingField("One color", buildLandmarkUseOneColorCheckBox(pointLayerSettings), Alignment.Left) | ||
addSettingField( | ||
"", |
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.
No title?
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.
more convenient to move the title to the checkbox
|
||
var title: String = "" | ||
|
||
fun addTitle() { |
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.
Why it is not added from the start?
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.
Because the title contains the name of the markup file. Title is added when the type of landmark is already known
|
||
class SettingsDialogNode : VBox(10.0) { | ||
|
||
var title: String = "" |
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.
public field? Why it is mutable?
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.
field is public because its value is set in another class, when possible define title
hbox(130) { | ||
addStylesheet(CatalogueViewStylesheet::class) | ||
maxWidth = 500.0 | ||
padding = Insets(0.0, 0.0, 0.0, 0.0) |
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.
use paddingall
comment 1, point 6. It is embedded in the MFXCheckList, also works in demo |
No description provided.