From 4873f9b4b02a2c943b6541247bd3e89a39b65a2d Mon Sep 17 00:00:00 2001 From: weisj <31143295+weisJ@users.noreply.github.com> Date: Tue, 23 Feb 2021 23:10:25 +0100 Subject: [PATCH] Reformat ternary operator. --- .../java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java b/core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java index 416fac1c..e7e4c0fc 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java @@ -422,7 +422,8 @@ public class DarkButtonUI extends BasicButtonUI implements ButtonConstants { } protected Color getBorderlessBackground(final AbstractButton c) { - return isArmedBorderless(c) ? PropertyUtil.getColor(c, KEY_CLICK_COLOR, borderlessClick) + return isArmedBorderless(c) + ? PropertyUtil.getColor(c, KEY_CLICK_COLOR, borderlessClick) : PropertyUtil.getColor(c, KEY_HOVER_COLOR, borderlessHover); }