Fix sample mount/unmount with user panel
This commit is contained in:
@@ -85,6 +85,9 @@ public class PuckGraphics {
|
||||
}
|
||||
|
||||
public boolean isHighlithted() {
|
||||
if (MainPanel.BASE_PLATE_LAYOUT == MainPanel.BasePlateLayout.rt){
|
||||
return puck.isSelected();
|
||||
}
|
||||
return puck.isSelected() || puck.isSegmentSelected();
|
||||
}
|
||||
|
||||
@@ -229,7 +232,14 @@ public class PuckGraphics {
|
||||
}
|
||||
|
||||
int getBorderWidth(boolean drawBackground) {
|
||||
return drawBackground ? puck.isSegmentSelected() ? 2 : 1 : puck.isSegmentSelected() ? 2 : 1;
|
||||
int selectedWidth = 2;
|
||||
int normalWidth = 1;
|
||||
if (MainPanel.BASE_PLATE_LAYOUT == MainPanel.BasePlateLayout.rt){
|
||||
selectedWidth = 3;
|
||||
}
|
||||
return drawBackground ?
|
||||
puck.isSegmentSelected() ? selectedWidth : normalWidth :
|
||||
puck.isSegmentSelected() ? selectedWidth : normalWidth;
|
||||
}
|
||||
|
||||
int getReferenceDrawSize() {
|
||||
|
||||
Reference in New Issue
Block a user