-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dad3aa2
commit f9f3960
Showing
7 changed files
with
80 additions
and
59 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
src/main/java/ru/futurelink/gerber/panelizer/gui/ColorSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package ru.futurelink.gerber.panelizer.gui; | ||
|
||
import io.qt.gui.QColor; | ||
import io.qt.gui.QPen; | ||
import lombok.Getter; | ||
|
||
public class ColorSettings { | ||
@Getter | ||
private final QPen axisPen; | ||
@Getter private final QPen drillPen; | ||
@Getter private final QPen outlinePen; | ||
@Getter private final QPen selectedPen; | ||
@Getter private final QPen validFeaturePen; | ||
@Getter private final QPen invalidFeaturePen; | ||
@Getter private final QPen marksPen; | ||
|
||
private static ColorSettings instance = null; | ||
|
||
public static ColorSettings getInstance() { | ||
if (instance == null) { | ||
instance = new ColorSettings(); | ||
} | ||
return instance; | ||
} | ||
|
||
private ColorSettings() { | ||
axisPen = new QPen(new QColor(200, 200, 200), 1); | ||
drillPen = new QPen(new QColor(180, 180, 180), 1); | ||
outlinePen = new QPen(new QColor(0, 0, 0, 255), 1); | ||
selectedPen = new QPen(new QColor(0, 0, 200), 2); | ||
validFeaturePen = new QPen(new QColor(0, 200, 0), 1); | ||
invalidFeaturePen = new QPen(new QColor(200, 0, 0), 1); | ||
marksPen = new QPen(new QColor(200, 0, 200), 1); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...r/panelizer/gui/ExportSettingsDialog.java → ...zer/gui/widgets/ExportSettingsDialog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters