Skip to content

Commit

Permalink
also 1.4.2
Browse files Browse the repository at this point in the history
tooltips showing too quickly
who is in incoming notifications
  • Loading branch information
Morph21 committed Dec 23, 2024
1 parent bf47887 commit 3f07df3
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ protected JPanel getHeader() {
});
JButton openChatButton = componentsFactory.getIconButton(IconConst.CHAT_OPEN, 15, AppThemeColor.MSG_HEADER, TranslationKey.open_chat.value());
openChatButton.addActionListener(e -> controller.performOpenChat());
JButton whoIsButton = componentsFactory.getIconButton(IconConst.WHO_IS, 15, AppThemeColor.MSG_HEADER, TranslationKey.who_is.value());
whoIsButton.addActionListener(e -> controller.performWhoIs());
JButton hideButton = componentsFactory.getIconButton(IconConst.CLOSE, 15, AppThemeColor.MSG_HEADER, TranslationKey.close.value());
hideButton.addActionListener(action -> {
this.controller.performHide();
Expand All @@ -70,6 +72,7 @@ protected JPanel getHeader() {
interactionPanel.add(tradeButton);
interactionPanel.add(kickButton);
interactionPanel.add(leaveButton);
interactionPanel.add(whoIsButton);
interactionPanel.add(openChatButton);
interactionPanel.add(hideButton);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ public interface IncomingPanelController extends NotificationController {
void performKickLeave(String nickName);

void showITH();

void performWhoIs();
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ public void performKickLeave(String nickName) {
}
}

@Override
public void performWhoIs() {
MercuryStoreCore.chatCommandSubject.onNext("/whois " + StringUtils.trim(notificationDescriptor.getWhisperNickname()));
}

@Override
public void performOfferTrade() {
MercuryStoreCore.chatCommandSubject.onNext("/tradewith " + StringUtils.trim(notificationDescriptor.getWhisperNickname()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@ public void performKickLeave(String nickName) {
public void showITH() {

}

@Override
public void performWhoIs() {

}
}
6 changes: 6 additions & 0 deletions app-ui/src/main/resources/notes/patch/patch-notes-new.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
{
"version": "1.4.2",
"minorChanges": [
{
"changed": "Added who is button to incoming notifications"
},
{
"changed": "Added parser for Thai language"
},
Expand All @@ -21,6 +24,9 @@
},
{
"changed": "Fixed time not showing short for minutes when more than 20 minutes passed after some resolutions"
},
{
"changed": "Fixed tooltips showing too quickly"
}
]
},
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/com/mercury/platform/AppMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ public static void main(String[] args) {
System.setProperty("jna.nosys", "true");

UIManager.put("ToolTipManager.enableToolTipMode", "allWindows");
ToolTipManager.sharedInstance().setInitialDelay(100);
ToolTipManager.sharedInstance().setReshowDelay(100);

boolean standalone = BooleanUtils.toBoolean(System.getProperty("standalone"));
boolean dev = BooleanUtils.toBoolean(System.getProperty("dev"));
Expand Down

0 comments on commit 3f07df3

Please sign in to comment.