Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
2014efa
remove old images
alexander-miroch Aug 6, 2019
38bb2f5
Agreement skin
alexander-miroch Aug 6, 2019
203b5d1
timeout
alexander-miroch Aug 7, 2019
999e39e
new screens
alexander-miroch Aug 7, 2019
52d39d6
deposit screen
alexander-miroch Aug 7, 2019
34b0766
deposit-transfer
alexander-miroch Aug 8, 2019
69db999
backup screen
alexander-miroch Aug 8, 2019
f18508c
gear screens
alexander-miroch Aug 8, 2019
189b936
backup, delete, fix screens
alexander-miroch Aug 8, 2019
f255e4b
support
alexander-miroch Aug 8, 2019
a46b740
support screen
alexander-miroch Aug 8, 2019
5b5d043
wallet name
alexander-miroch Aug 9, 2019
0c4bf4a
optimize transactions
alexander-miroch Aug 11, 2019
764ff46
email changed
alexander-miroch Aug 11, 2019
bb2057d
echo raida view
alexander-miroch Aug 11, 2019
5af5b75
receiver
alexander-miroch Aug 11, 2019
1e62d65
Transfer Servant
alexander-miroch Aug 11, 2019
00f1758
export button
alexander-miroch Aug 12, 2019
6f34041
disable double click
alexander-miroch Aug 12, 2019
cd8a26c
html removal
alexander-miroch Aug 12, 2019
5692341
printing colors
alexander-miroch Aug 12, 2019
f688e82
memo
alexander-miroch Aug 13, 2019
616e785
default wallet
alexander-miroch Aug 13, 2019
cf261be
same wallet dropdown
alexander-miroch Aug 14, 2019
e98fc99
terms
alexander-miroch Aug 15, 2019
33886d2
Support portal
alexander-miroch Aug 15, 2019
0b4cc6a
delete wallet transaction
alexander-miroch Aug 15, 2019
500d56e
Button rename
alexander-miroch Aug 15, 2019
3e15e23
Move from Imported
alexander-miroch Aug 16, 2019
5f3cd1e
wallet sort
alexander-miroch Aug 16, 2019
b2f6f4b
font size
alexander-miroch Aug 16, 2019
1a61641
config value
alexander-miroch Aug 19, 2019
e9dea40
errors and warnings
alexander-miroch Aug 21, 2019
6317d5f
src
alexander-miroch Aug 21, 2019
e71d580
blanks
alexander-miroch Aug 21, 2019
fc97bd4
use keyboard keys with scrollbar
alexander-miroch Aug 21, 2019
dd256e8
updating wallets
alexander-miroch Aug 23, 2019
a7ffff5
skywallet default directory
alexander-miroch Aug 23, 2019
909b625
delete wallet
alexander-miroch Aug 26, 2019
4507f69
Unpacker will proceed if a file is failed
alexander-miroch Aug 26, 2019
d273203
lastaction
alexander-miroch Aug 26, 2019
d47a44f
rm debug
alexander-miroch Aug 26, 2019
c72e0c5
LossFixer
alexander-miroch Aug 26, 2019
c761dd4
config
alexander-miroch Aug 29, 2019
ad55016
Exporting
alexander-miroch Aug 29, 2019
8c2d18b
top menu behaviour
alexander-miroch Aug 29, 2019
245026e
text
alexander-miroch Aug 29, 2019
7f55966
top color
alexander-miroch Aug 29, 2019
37c42c4
Error message
alexander-miroch Aug 29, 2019
09e21b4
verify SkyID coin
alexander-miroch Aug 31, 2019
d0f54eb
first wallet by default
alexander-miroch Sep 2, 2019
fb4d372
existing skywallet check
alexander-miroch Sep 2, 2019
4fa8102
rm revalidate
alexander-miroch Sep 2, 2019
e478613
placeholder
alexander-miroch Sep 3, 2019
7cc22ca
Settings
alexander-miroch Sep 6, 2019
447d4f1
Settings
alexander-miroch Sep 6, 2019
e0e7fb4
Echo text
alexander-miroch Sep 6, 2019
32148f3
Echo text
alexander-miroch Sep 6, 2019
37ab8d5
logfile
alexander-miroch Sep 6, 2019
bcf0d44
error message
alexander-miroch Sep 6, 2019
c49f23e
Deposit foleder
alexander-miroch Sep 6, 2019
9426d57
tls 1.2
alexander-miroch Sep 9, 2019
f2faa65
Change
alexander-miroch Sep 11, 2019
0e9994a
change
alexander-miroch Sep 12, 2019
ada60d7
change
alexander-miroch Sep 12, 2019
2508088
change
alexander-miroch Sep 12, 2019
915e5fd
icon
alexander-miroch Sep 13, 2019
271ad9f
icon
alexander-miroch Sep 13, 2019
bc313d6
echoer
alexander-miroch Sep 17, 2019
0df11ca
version bump
alexander-miroch Sep 17, 2019
67d00ae
Sky wallet history
alexander-miroch Sep 17, 2019
8b5f55c
select wallet after creation
alexander-miroch Sep 17, 2019
7a33eff
frackfixer without echo
alexander-miroch Sep 17, 2019
0e790b8
Fracked SkyID workflow
alexander-miroch Sep 19, 2019
8218468
autoupdate sky wallets
alexander-miroch Sep 19, 2019
78dfe6f
ps
alexander-miroch Sep 19, 2019
5a360e6
change service improvements
alexander-miroch Sep 19, 2019
c59a0e1
add warnings
alexander-miroch Sep 25, 2019
5d3513c
showcoins & showchange multi queries
alexander-miroch Sep 26, 2019
49805cc
Transfer with change
alexander-miroch Sep 27, 2019
d749da1
locale
alexander-miroch Sep 27, 2019
8dea117
locale
alexander-miroch Sep 27, 2019
566f030
dup coins will not stop Unpacker
alexander-miroch Oct 3, 2019
b2b6e66
Remove and mask sensetive data in logs
alexander-miroch Oct 3, 2019
a7825b2
transfer from sky-sky - show requested amount
alexander-miroch Oct 4, 2019
992b1c6
error handling wrap
alexander-miroch Oct 4, 2019
3c9568d
transaction auto-adjust, show coins interrupt
alexander-miroch Oct 4, 2019
775078b
showcoin log
alexander-miroch Oct 5, 2019
8d60f35
av
alexander-miroch Oct 6, 2019
83d611d
no trash for encrypted wallets
alexander-miroch Oct 6, 2019
8973979
predeposit
alexander-miroch Oct 6, 2019
6058c92
frack deletion
alexander-miroch Oct 7, 2019
c9092a0
date
alexander-miroch Oct 7, 2019
4cc5bb8
deleting
alexander-miroch Oct 7, 2019
4d62db6
deletion
alexander-miroch Oct 7, 2019
b58c6d1
Import ts
alexander-miroch Oct 7, 2019
2bd05cd
skywallet workflow
alexander-miroch Oct 7, 2019
aa04e4c
skywallet workflow
alexander-miroch Oct 7, 2019
4f90e01
ts remove
alexander-miroch Oct 7, 2019
2f286a1
sky wallet
alexander-miroch Oct 9, 2019
4581162
updates; colons; segv
alexander-miroch Oct 15, 2019
9389742
dst
alexander-miroch Oct 17, 2019
0ff7780
race condition
alexander-miroch Oct 24, 2019
7a9b945
Merge branch 'darkgui' of https://github.com/CloudCoinConsortium/Clou…
alexander-miroch Oct 24, 2019
4ccb244
race condition
alexander-miroch Oct 24, 2019
646cb2c
race condition
alexander-miroch Oct 24, 2019
9e5306f
receive round up
alexander-miroch Oct 28, 2019
385a3ea
picking algoritm
alexander-miroch Oct 31, 2019
b6bcbe3
merge
alexander-miroch Oct 31, 2019
d9eab93
change algorithm
alexander-miroch Nov 2, 2019
2df7ed2
dots
alexander-miroch Dec 18, 2019
75c38ec
export limit
alexander-miroch Dec 18, 2019
90cb354
deposit
alexander-miroch Dec 18, 2019
833ca9f
skip non-stack from ID
alexander-miroch Dec 18, 2019
9dc9a1c
skip non-stack from ID
alexander-miroch Dec 18, 2019
fac3388
fix
alexander-miroch Dec 22, 2019
3098151
version bump
alexander-miroch Dec 22, 2019
a5ac390
rm debug
alexander-miroch Dec 23, 2019
a1f6f3b
skip stack extension
alexander-miroch Dec 23, 2019
5f11f0f
sent
alexander-miroch Dec 30, 2019
beaeadf
add sent coins
alexander-miroch Dec 30, 2019
6f76f5f
stack
alexander-miroch Dec 31, 2019
c22fee8
sent
alexander-miroch Jan 1, 2020
415d89a
errmsg
alexander-miroch Jan 9, 2020
22c18d9
Merge branch 'darkgui' of https://github.com/CloudCoinConsortium/Clou…
alexander-miroch Jan 9, 2020
f7289cf
Record counterfeit and failed coins
alexander-miroch Jan 9, 2020
0cedb88
validate memo loosely
alexander-miroch Jan 9, 2020
2bdd4fe
List serials in dir
alexander-miroch Jan 9, 2020
b1131c3
export save default dir
alexander-miroch Jan 10, 2020
cf23a9c
icon color
alexander-miroch Jan 13, 2020
17e2aa9
export keys
alexander-miroch Jan 13, 2020
d089d14
cloudcoin domain bugfix
alexander-miroch Jan 14, 2020
0fc6037
setcounters reordering
alexander-miroch Jan 14, 2020
718de98
prevent hanging if send error
alexander-miroch Jan 14, 2020
d6e8ac9
show_envs add cancel point
alexander-miroch Jan 14, 2020
1289cfb
bill pay dark
alexander-miroch Jan 18, 2020
3be8b10
send mails
alexander-miroch Jan 22, 2020
a641a76
send mails
alexander-miroch Jan 22, 2020
8f88dd9
log message
alexander-miroch Jan 23, 2020
0727d93
msg
alexander-miroch Jan 23, 2020
c0f531f
Transfer done screen fix
alexander-miroch Jan 31, 2020
bccd74d
Move socket checks before export
alexander-miroch Feb 1, 2020
0939bb7
txt
alexander-miroch Feb 1, 2020
785b18f
checks
alexander-miroch Feb 1, 2020
27e8c69
westrock
alexander-miroch Feb 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7,392 changes: 3,934 additions & 3,458 deletions src/advclient/AdvancedClient.java

Large diffs are not rendered by default.

289 changes: 238 additions & 51 deletions src/advclient/AppUI.java

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/advclient/FancyProgressBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected void paintDeterminate(Graphics g, JComponent c) {

width = (int) Math.round(width * dProgress);

g2d.setColor(AppUI.getColor6());
g2d.setColor(AppUI.getColor2());
RoundRectangle2D fill = new RoundRectangle2D.Double(0, 0, width, height - 1, 20, 20);

g2d.fill(fill);
Expand Down
4 changes: 2 additions & 2 deletions src/advclient/ImageJPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ public void paintComponent(Graphics g) {

//Graphics2D g2d = (Graphics2D) g;
//g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
//g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.3f));
//g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.1f));
//g2d.setColor(Color.yellow);
//g2d.fillOval(point.x, point.y, 120, 60);
g.drawImage(backgroundImage, 0, 0, this);
g.drawImage(backgroundImage, 32, 306, this);
}
}
32 changes: 28 additions & 4 deletions src/advclient/MyButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemListener;
import javax.swing.JButton;
Expand All @@ -25,9 +26,24 @@ public class MyButton {

JPanel core;
JButton button;
Color color;
boolean lastActionAdded;

public MyButton(String text) {
this.color = AppUI.getColor2();
core = makeUI(text);
this.lastActionAdded = false;
if (!text.toLowerCase().equals("continue") && !text.toLowerCase().equals("confirm"))
this.lastActionAdded = true;

}

public MyButton(String text, Color color) {
this.color = color;
core = makeUI(text);
this.lastActionAdded = false;
if (!text.toLowerCase().equals("continue") && !text.toLowerCase().equals("confirm"))
this.lastActionAdded = true;
}

public JPanel getButton() {
Expand All @@ -36,6 +52,14 @@ public JPanel getButton() {

public void addListener(ActionListener a) {
button.addActionListener(a);
if (!this.lastActionAdded) {
this.lastActionAdded = true;
addListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
disable();
}
});
}
}

public void disable() {
Expand All @@ -49,7 +73,7 @@ public void disable() {
public void enable() {
button.setEnabled(true);
RoundedBorder rb = (RoundedBorder) button.getBorder();
rb.setColor(AppUI.getColor0());
rb.setColor(this.color);
button.repaint();
button.revalidate();
}
Expand All @@ -73,11 +97,11 @@ public boolean doWork(Graphics g, JComponent c) {
}
};

AppUI.roundCorners(button, AppUI.getColor0(), 18, cb);
AppUI.roundCorners(button, this.color, 48, cb);
AppUI.noOpaque(button);
button.setContentAreaFilled(false);
AppUI.setSize(button, 224, 50);
AppUI.setBoldFont(button, 20);
AppUI.setSize(button, 190, 48);
AppUI.setFont(button, 18);
AppUI.setHandCursor(button);

JPanel p = new JPanel();
Expand Down
5 changes: 5 additions & 0 deletions src/advclient/MyCheckBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public boolean isChecked() {
return cb.isSelected();
}

public void setFont(int size, Color color) {
AppUI.setFont(txt, size);
AppUI.setColor(txt, color);
}

public void setBoldFont() {
AppUI.setBoldFont(txt, 18);
}
Expand Down
95 changes: 95 additions & 0 deletions src/advclient/MyCheckBoxToggle.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package advclient;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.RenderingHints;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.imageio.ImageIO;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
*
* @author Alexander
*/
public class MyCheckBoxToggle {

Icon imgUnchecked, imgChecked;
boolean isChecked;

JPanel core;
JCheckBox cb;

public MyCheckBoxToggle() {
core = makeUI();
}

public JPanel getCheckBox() {
return core;
}

public void addListener(ItemListener i) {
cb.addItemListener(i);
}

public boolean isChecked() {
return cb.isSelected();
}

public void setSelected(boolean isSelected) {
cb.setSelected(isSelected);
}

public JPanel makeUI() {
cb = new JCheckBox();

try {
Image img;

img = ImageIO.read(getClass().getClassLoader().getResource("resources/toggleno.png"));
imgUnchecked = new ImageIcon(img);

img = ImageIO.read(getClass().getClassLoader().getResource("resources/toggleyes.png"));
imgChecked = new ImageIcon(img);
} catch (Exception ex) {

}

AppUI.noOpaque(cb);
cb.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
Icon img;

img = (e.getStateChange() != ItemEvent.SELECTED) ? imgUnchecked : imgChecked;
cb.setIcon(img);
}
});

cb.setIcon(imgUnchecked);

JPanel p = new JPanel();
AppUI.setBoxLayout(p, false);
AppUI.noOpaque(p);
AppUI.setHandCursor(p);

p.add(cb);

return p;
}
}


14 changes: 9 additions & 5 deletions src/advclient/MyTextField.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@ public void setData(String text) {

public JPanel makeUI(String placeholder) {
tf = new RoundedTextField(placeholder);
tf.setCaretColor(Color.WHITE);

AppUI.noOpaque(tf);
AppUI.setSize(tf, (int) AppUI.getBoxWidth(), (int) AppUI.getBoxHeight());
AppUI.setBackground(tf, AppUI.getColor4());
AppUI.setBackground(tf, AppUI.getColor8());
AppUI.setFont(tf, 18);
AppUI.setColor(tf, AppUI.getColor5());
AppUI.setMargin(tf, 10);
tf.setLayout(new BorderLayout());

Expand All @@ -107,9 +109,10 @@ public void focusLost(FocusEvent e) {
if (isPassword) {
tf.hide();
try {
Image img;
BufferedImage img;

img = ImageIO.read(getClass().getClassLoader().getResource("resources/eye.png"));
img = ImageIO.read(getClass().getClassLoader().getResource("resources/eye.png"));
AppUI.invertImage(img);
imgEye = new ImageIcon(img);
} catch (Exception ex) {

Expand All @@ -128,9 +131,10 @@ public void mouseReleased(MouseEvent e) {
AppUI.setHandCursor(label);
} else if (isFilepicker) {
try {
Image img;
BufferedImage img;

img = ImageIO.read(getClass().getClassLoader().getResource("resources/lg0.png"));
img = ImageIO.read(getClass().getClassLoader().getResource("resources/lg0.png"));
AppUI.invertImage(img);
imgEye = new ImageIcon(img);
} catch (Exception ex) {

Expand Down
75 changes: 57 additions & 18 deletions src/advclient/ProgramState.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@ public class ProgramState {
final public static int SCREEN_MAKING_CHANGE = 39;
final public static int SCREEN_SETTING_DNS_RECORD = 40;
final public static int SCREEN_DOING_BACKUP = 41;
final public static int SCREEN_EXPORTING = 42;
final public static int SCREEN_CHECKING_SKYID = 43;
final public static int SCREEN_SETTINGS = 44;
final public static int SCREEN_SETTINGS_SAVED = 45;
final public static int SCREEN_WARN_FRACKED_TO_SEND = 46;
final public static int SCREEN_DEPOSIT_LEFTOVER = 47;
final public static int SCREEN_SHOW_SENT_COINS = 48;
final public static int SCREEN_SHOW_BACKUP_KEYS = 49;
final public static int SCREEN_SHOW_BACKUP_KEYS_DONE = 50;
final public static int SCREEN_SHOW_BILL_PAY = 51;
final public static int SCREEN_SHOW_CONFIRM_BILL_PAY = 52;
final public static int SCREEN_DOING_BILL_PAY = 53;
final public static int SCREEN_BILL_PAY_DONE = 54;




final static int CB_STATE_INIT = 1;
Expand All @@ -82,7 +97,6 @@ public class ProgramState {
int[][] counters;
int cbState;

boolean isDefaultWalletBeingCreated;
boolean isAddingWallet;

ArrayList<String> files;
Expand All @@ -93,8 +107,10 @@ public class ProgramState {
Wallet dstWallet;
Wallet srcWallet;

Wallet coinIDinFix;

boolean isEchoFinished;
boolean isShowCoinsFinished;


int statToBankValue, statToBank, statFailed, statLost;
int statFailedValue, statLostValue;
Expand All @@ -111,8 +127,6 @@ public class ProgramState {

int sendType;

boolean isUpdatedWallets;

int foundSN;

boolean needBackup;
Expand All @@ -124,11 +138,7 @@ public class ProgramState {
String trustedServer;

boolean isSkyDeposit;

boolean defaultWalletCreated;

String defaultWalletName;


boolean isCreatingNewSkyWallet;

String skyVaultDomain;
Expand All @@ -145,6 +155,25 @@ public class ProgramState {

boolean changeFromExport;

boolean popupVisible;

boolean isCheckingSkyID;

boolean needInitWallets;

boolean needExtra;

int rrAmount;

int failedFiles;

String[][] billpays;

boolean frombillpay;

boolean finishedMc;


public ProgramState() {
currentScreen = SCREEN_AGREEMENT;
cwalletRecoveryRequested = cwalletPasswordRequested = false;
Expand All @@ -161,11 +190,9 @@ public ProgramState() {
files = new ArrayList<String>();
dstWallet = srcWallet = null;
isEchoFinished = false;
isShowCoinsFinished = true;
statToBankValue = statToBank = statFailed = 0;
statFailedValue = statLostValue = 0;

isDefaultWalletBeingCreated = false;
isAddingWallet = false;

receiptId = "";
Expand All @@ -179,8 +206,6 @@ public ProgramState() {

sendType = SEND_TYPE_WALLET;

isUpdatedWallets = false;

needBackup = false;

cenvelopes = null;
Expand All @@ -192,12 +217,8 @@ public ProgramState() {
trustedServer = "";

isSkyDeposit = false;

defaultWalletCreated = false;

defaultWalletName = null;

isCreatingNewSkyWallet = false;
isCreatingNewSkyWallet = true;

skyVaultDomain = "";

Expand All @@ -213,6 +234,24 @@ public ProgramState() {

changeFromExport = false;

popupVisible = false;

isCheckingSkyID = false;

coinIDinFix = null;

needInitWallets = false;

needExtra = false;

rrAmount = 0;

billpays = null;

frombillpay = false;

finishedMc = false;

}

public String toString() {
Expand Down
Loading