forked from Exslims/MercuryTrade
-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Showing
17 changed files
with
336 additions
and
90 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
app-core/src/main/java/com/mercury/platform/core/MercuryConstants.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package com.mercury.platform.core; | ||
|
||
public class MercuryConstants { | ||
public static final String APP_VERSION = "1.2.2"; | ||
public static final String APP_VERSION = "1.2.3"; | ||
public static final String SERVER_HOST = "exslims.ddns.net"; | ||
public static final int PORT = 5555; | ||
} |
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
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
48 changes: 48 additions & 0 deletions
48
app-ui/src/main/java/com/mercury/platform/ui/dialog/OkDialog.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,48 @@ | ||
package com.mercury.platform.ui.dialog; | ||
|
||
import com.mercury.platform.ui.components.fields.font.FontStyle; | ||
import com.mercury.platform.ui.components.fields.font.TextAlignment; | ||
import com.mercury.platform.ui.misc.AppThemeColor; | ||
|
||
import javax.swing.*; | ||
import java.awt.*; | ||
|
||
public class OkDialog extends BaseDialog<Boolean, String> { | ||
|
||
public OkDialog(DialogCallback<Boolean> callback, String text, Component relative) { | ||
super(callback, relative, text); | ||
} | ||
|
||
protected void createView() { | ||
this.setLayout(new BorderLayout()); | ||
this.getRootPane().setBackground(AppThemeColor.FRAME_RGB); | ||
JPanel root = this.componentsFactory.getJPanel(new BorderLayout()); | ||
root.setBackground(AppThemeColor.SLIDE_BG); | ||
root.setBorder(BorderFactory.createLineBorder(AppThemeColor.MSG_HEADER_BORDER)); | ||
JLabel header = this.componentsFactory.getTextLabel(FontStyle.BOLD, AppThemeColor.TEXT_NICKNAME, TextAlignment.CENTER, 18f, this.payload); | ||
header.setBackground(AppThemeColor.FRAME_RGB); | ||
root.add(header, BorderLayout.CENTER); | ||
|
||
JPanel miscPanel = this.componentsFactory.getJPanel(new FlowLayout(FlowLayout.CENTER)); | ||
miscPanel.setBackground(AppThemeColor.SLIDE_BG); | ||
miscPanel.setBorder(BorderFactory.createEmptyBorder(0, 50, 0, 50)); | ||
|
||
|
||
JButton okButton = this.componentsFactory.getBorderedButton("OK", 16); | ||
okButton.setPreferredSize(new Dimension(120, 26)); | ||
okButton.addActionListener(action -> { | ||
if (this.callback != null) { | ||
this.callback.onAction(true); | ||
} | ||
this.setVisible(false); | ||
this.dispose(); | ||
}); | ||
miscPanel.add(okButton); | ||
|
||
|
||
root.add(miscPanel, BorderLayout.PAGE_END); | ||
|
||
this.setResizable(false); | ||
this.add(root, BorderLayout.CENTER); | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
app-ui/src/main/java/com/mercury/platform/ui/frame/titled/GithubReleaseResponse.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,14 @@ | ||
package com.mercury.platform.ui.frame.titled; | ||
|
||
public class GithubReleaseResponse { | ||
private String tag_name; | ||
|
||
public String getTag_name() { | ||
return tag_name; | ||
} | ||
|
||
public void setTag_name(String tag_name) { | ||
this.tag_name = tag_name; | ||
} | ||
} | ||
|
Oops, something went wrong.