Skip to content

Commit

Permalink
button improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
cyklon73 committed Jan 2, 2024
1 parent cdb6522 commit 81827e2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
group = 'de.cyklon'
version = '1.0.1'


var commit = getCommit()
var release = System.getenv("RELEASE") == "true"

Expand Down
1 change: 0 additions & 1 deletion src/main/java/de/cyklon/jui/component/UIButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public class UIButton extends UIComponent {
private final static Color color = new Color(40, 40, 40);
private final static Color hoverColor = new Color(20, 20, 20);


private final List<BiConsumer<App, UIButton>> leftClickListeners = new ArrayList<>();
private final List<BiConsumer<App, UIButton>> rightClickListeners = new ArrayList<>();

Expand Down
1 change: 1 addition & 0 deletions src/main/java/de/cyklon/jui/component/UICanvasButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ public class UICanvasButton extends UIButton {
public UICanvasButton(int x, int y, int width, int height, UICanvas canvas) {
super(x, y, width, height, (app, btn) -> app.setCanvas(canvas));
}

}
1 change: 0 additions & 1 deletion src/main/java/de/cyklon/jui/component/UICheckbox.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public void setCheckColor(Color checkColor) {
this.checkColor = checkColor;
}


public final UICheckbox addRightClickListener(BiConsumer<App, UICheckbox> consumer) {
addRightClickListeners(((app, btn) -> consumer.accept(app, (UICheckbox) btn)));
return this;
Expand Down

0 comments on commit 81827e2

Please sign in to comment.