Skip to content

Commit

Permalink
fix custom arrow button color when clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
akmsw committed Nov 17, 2024
1 parent f641654 commit 6f9a58f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/java/armameeldoparti/utils/common/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public final class Constants {
private static final String HEX_CODE_GREEN_MEDIUM = "#6d8276";
private static final String HEX_CODE_GREEN_MEDIUM_LIGHT = "#8fa08c";
private static final String HEX_CODE_GREEN_LIGHT = "#b0bda2";
private static final String HEX_CODE_GREEN_LIGHT_MEDIUM = "#8fa08c";
private static final String HEX_CODE_GREEN_LIGHT_WHITE = "#d8ded1";
private static final String HEX_CODE_ANCHORAGE_COLOR_1 = "#e5af8d";
private static final String HEX_CODE_ANCHORAGE_COLOR_2 = "#74b1d1";
Expand Down Expand Up @@ -190,6 +191,7 @@ public final class Constants {
public static final Color COLOR_GREEN_MEDIUM = Color.decode(HEX_CODE_GREEN_MEDIUM);
public static final Color COLOR_GREEN_MEDIUM_LIGHT = Color.decode(HEX_CODE_GREEN_MEDIUM_LIGHT);
public static final Color COLOR_GREEN_LIGHT = Color.decode(HEX_CODE_GREEN_LIGHT);
public static final Color COLOR_GREEN_LIGHT_MEDIUM = Color.decode(HEX_CODE_GREEN_LIGHT_MEDIUM);
public static final Color COLOR_GREEN_LIGHT_WHITE = Color.decode(HEX_CODE_GREEN_LIGHT_WHITE);

public static final ImageIcon ICON_BACKGROUND = CommonFunctions.createImage(FILENAME_IMAGE_BACKGROUND);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void paint(Graphics g) {
}

if (getModel().isPressed()) {
g.setColor(Constants.COLOR_GREEN_MEDIUM);
g.setColor(Constants.COLOR_GREEN_LIGHT_MEDIUM);
} else if (getModel().isRollover()) {
g.setColor(Constants.COLOR_GREEN_DARK_MEDIUM);
} else {
Expand Down

0 comments on commit 6f9a58f

Please sign in to comment.