Skip to content

Commit

Permalink
Minor UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
axpoems committed Dec 10, 2023
1 parent edf0c69 commit 85dc868
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@

import bisq.desktop.common.Layout;
import bisq.desktop.main.content.chat.ChatView;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.layout.*;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class CommonChatView extends ChatView {
public static final double SIDE_PADDING = 40;

public CommonChatView(CommonChatModel model,
CommonChatController controller,
Pane chatMessagesComponent,
Expand Down Expand Up @@ -52,7 +55,12 @@ protected void configSideBarVBox() {
protected void configContainerHBox() {
containerHBox.setFillHeight(true);
Layout.pinToAnchorPane(containerHBox, 0, 0, 0, 0);
root.setContent(containerHBox);

AnchorPane wrapper = new AnchorPane();
wrapper.setPadding(new Insets(0, SIDE_PADDING, 0, SIDE_PADDING));
wrapper.getChildren().add(containerHBox);

root.setContent(wrapper);

HBox.setHgrow(centerVBox, Priority.ALWAYS);
HBox.setHgrow(sideBar, Priority.NEVER);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import bisq.desktop.common.Layout;
import bisq.desktop.components.containers.Spacer;
import javafx.geometry.Insets;
import javafx.scene.layout.*;
import lombok.extern.slf4j.Slf4j;

Expand All @@ -43,7 +44,12 @@ public PrivateChatView(PrivateChatModel model,
protected void configContainerHBox() {
containerHBox.setFillHeight(true);
Layout.pinToAnchorPane(containerHBox, 0, 0, 0, 0);
root.setContent(containerHBox);

AnchorPane wrapper = new AnchorPane();
wrapper.setPadding(new Insets(0, SIDE_PADDING, 0, SIDE_PADDING));
wrapper.getChildren().add(containerHBox);

root.setContent(wrapper);

left = new VBox();
HBox.setHgrow(left, Priority.NEVER);
Expand Down
2 changes: 1 addition & 1 deletion desktop/src/main/resources/css/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
}

.channel-selection-list-view .list-cell:selected {
-fx-background-color: -bisq-dark-grey-mid;
-fx-background-color: -bisq-dark-grey-dim;
-fx-fill: -fx-dark-text-color;
-fx-text-fill: -fx-dark-text-color;
}
Expand Down

0 comments on commit 85dc868

Please sign in to comment.