Adjust Selection Color (#73)

Replace selection color by one unified gray
Center message controls vertically inside their list cells

Fixes #62

Reviewed-on: https://git.kske.dev/zdm/envoy/pulls/73
Reviewed-by: DieGurke <maxi@kske.dev>
Reviewed-by: delvh <leon@kske.dev>
This commit is contained in:
Kai S. K. Engelbart 2020-09-30 21:05:32 +02:00
parent 80795a3fc2
commit 85d0aa37d2
4 changed files with 5 additions and 11 deletions

View File

@ -32,6 +32,6 @@ public final class MessageListCell extends AbstractListCell<Message, MessageCont
private void adjustPadding(int listWidth, boolean ownMessage) { private void adjustPadding(int listWidth, boolean ownMessage) {
int padding = 10 + Math.max((listWidth - 1000) / 2, 0); int padding = 10 + Math.max((listWidth - 1000) / 2, 0);
setPadding(ownMessage ? new Insets(0, padding, 6, 0) : new Insets(0, 0, 6, padding)); setPadding(ownMessage ? new Insets(3, padding, 3, 0) : new Insets(3, 0, 3, padding));
} }
} }

View File

@ -4,8 +4,10 @@
.context-menu, .context-menu > * { .context-menu, .context-menu > * {
-fx-background-radius: 15.0px; -fx-background-radius: 15.0px;
/*TODO: solution below does not work */ }
-fx-background-color: transparent;
.list-cell:selected, .menu-item:hover {
-fx-background-color: #454c4f;
} }
#text-enter-container, #contact-search-enter-container { #text-enter-container, #contact-search-enter-container {

View File

@ -22,10 +22,6 @@
-fx-background-color: #222222; -fx-background-color: #222222;
} }
.list-cell:selected, .list-cell:selected > *, .menu-item:hover {
-fx-background-color: #690099;
}
.received-message { .received-message {
-fx-background-color: gray; -fx-background-color: gray;
} }

View File

@ -18,10 +18,6 @@
-fx-background-color: #E3E3E3; -fx-background-color: #E3E3E3;
} }
.list-cell:selected, .list-cell:selected > *, .menu-item:hover {
-fx-background-color: #805959;
}
.received-message { .received-message {
-fx-background-color: lightgray; -fx-background-color: lightgray;
} }