-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2305 from axpoems/revamp-user-profile-sidebar
Implement new design for user profile sidebar
- Loading branch information
Showing
36 changed files
with
228 additions
and
115 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
apps/desktop/desktop/src/main/java/bisq/desktop/components/controls/MenuItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* This file is part of Bisq. | ||
* | ||
* Bisq is free software: you can redistribute it and/or modify it | ||
* under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or (at | ||
* your option) any later version. | ||
* | ||
* Bisq is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public | ||
* License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Bisq. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package bisq.desktop.components.controls; | ||
|
||
import bisq.desktop.common.utils.ImageUtil; | ||
import javafx.scene.control.Button; | ||
import javafx.scene.image.ImageView; | ||
|
||
public class MenuItem extends Button { | ||
private final ImageView defaultIcon, activeIcon; | ||
private ImageView buttonIcon; | ||
|
||
public MenuItem(String text, String defaultIconId, String activeIconId) { | ||
defaultIcon = ImageUtil.getImageViewById(defaultIconId); | ||
activeIcon = ImageUtil.getImageViewById(activeIconId); | ||
buttonIcon = defaultIcon; | ||
|
||
setText(text); | ||
setGraphic(buttonIcon); | ||
setGraphicTextGap(10); | ||
getStyleClass().add("menu-item"); | ||
|
||
attachListeners(); | ||
} | ||
|
||
private void attachListeners() { | ||
setOnMouseExited(e -> updateIcon(defaultIcon)); | ||
setOnMouseEntered(e -> updateIcon(activeIcon)); | ||
} | ||
|
||
private void updateIcon(ImageView newIcon) { | ||
if (buttonIcon != newIcon) { | ||
getChildren().remove(buttonIcon); | ||
buttonIcon = newIcon; | ||
getChildren().add(buttonIcon); | ||
} | ||
} | ||
} |
181 changes: 86 additions & 95 deletions
181
...ktop/desktop/src/main/java/bisq/desktop/main/content/chat/sidebar/UserProfileSidebar.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+531 Bytes
apps/desktop/desktop/src/main/resources/images/chat/ignore/ignore-green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.15 KB
apps/desktop/desktop/src/main/resources/images/chat/ignore/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+527 Bytes
apps/desktop/desktop/src/main/resources/images/chat/ignore/ignore-grey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.15 KB
apps/desktop/desktop/src/main/resources/images/chat/ignore/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+507 Bytes
apps/desktop/desktop/src/main/resources/images/chat/ignore/ignore-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.11 KB
apps/desktop/desktop/src/main/resources/images/chat/ignore/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+467 Bytes
apps/desktop/desktop/src/main/resources/images/chat/mention/mention-green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+835 Bytes
apps/desktop/desktop/src/main/resources/images/chat/mention/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+462 Bytes
apps/desktop/desktop/src/main/resources/images/chat/mention/mention-grey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+827 Bytes
apps/desktop/desktop/src/main/resources/images/chat/mention/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+463 Bytes
apps/desktop/desktop/src/main/resources/images/chat/mention/mention-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+799 Bytes
apps/desktop/desktop/src/main/resources/images/chat/mention/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+378 Bytes
...ktop/desktop/src/main/resources/images/chat/private-chat/private-chat-green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+606 Bytes
...p/desktop/src/main/resources/images/chat/private-chat/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+366 Bytes
...sktop/desktop/src/main/resources/images/chat/private-chat/private-chat-grey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+584 Bytes
...op/desktop/src/main/resources/images/chat/private-chat/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+369 Bytes
...ktop/desktop/src/main/resources/images/chat/private-chat/private-chat-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+583 Bytes
...p/desktop/src/main/resources/images/chat/private-chat/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+386 Bytes
apps/desktop/desktop/src/main/resources/images/chat/report/report-green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+689 Bytes
apps/desktop/desktop/src/main/resources/images/chat/report/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+386 Bytes
apps/desktop/desktop/src/main/resources/images/chat/report/report-grey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+684 Bytes
apps/desktop/desktop/src/main/resources/images/chat/report/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+396 Bytes
apps/desktop/desktop/src/main/resources/images/chat/report/report-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+674 Bytes
apps/desktop/desktop/src/main/resources/images/chat/report/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+473 Bytes
...esktop/desktop/src/main/resources/images/chat/undo-ignore/undo-ignore-green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1011 Bytes
...top/desktop/src/main/resources/images/chat/undo-ignore/[email protected]
Oops, something went wrong.
Binary file added
BIN
+473 Bytes
...desktop/desktop/src/main/resources/images/chat/undo-ignore/undo-ignore-grey.png
Oops, something went wrong.
Binary file added
BIN
+1007 Bytes
...ktop/desktop/src/main/resources/images/chat/undo-ignore/[email protected]
Oops, something went wrong.
Binary file added
BIN
+478 Bytes
...esktop/desktop/src/main/resources/images/chat/undo-ignore/undo-ignore-white.png
Oops, something went wrong.
Binary file added
BIN
+995 Bytes
...top/desktop/src/main/resources/images/chat/undo-ignore/[email protected]
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters