Skip to content

Commit ae59c18

Browse files
author
isayan
committed
Theme Color をUIManagerから取得に変更
1 parent c73c3bc commit ae59c18

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

release/YaguraExtension-v3.1.jar

-13 Bytes
Binary file not shown.

src/main/java/yagura/view/PopupMessage.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import javax.swing.PopupFactory;
1111
import java.util.Timer;
1212
import java.util.TimerTask;
13+
import javax.swing.UIManager;
1314

1415
/**
1516
*
@@ -82,8 +83,8 @@ public void show(String message, int delay) {
8283
private Popup createPopup() {
8384
Frame suiteFrame = BurpUtil.suiteFrame();
8485
Dimension fitSize = this.getPreferredSize();
85-
lblMessage.setForeground(NamedColor.getTextColor(this.getBackground()));
86-
lblTimer.setForeground(NamedColor.getTextColor(this.getBackground()));
86+
lblMessage.setForeground(UIManager.getColor("TextField.foreground"));
87+
lblTimer.setForeground(UIManager.getColor("TextField.foreground"));
8788
final Popup popup = PopupFactory.getSharedInstance().getPopup(suiteFrame, this, suiteFrame.getX() + (suiteFrame.getWidth() / 2) - (fitSize.width / 2), suiteFrame.getY() + (suiteFrame.getHeight() / 2) - (fitSize.height / 2));
8889
return popup;
8990
}

0 commit comments

Comments
 (0)