Horizontal Scroll Bar
Implemented primaryScrollBar support for horizontal scroll bar as well.
This commit is contained in:
@ -262,7 +262,15 @@ public class ChatWindow extends JFrame {
|
||||
scrollPane.getVerticalScrollBar()
|
||||
.setUI(new PrimaryScrollBar(5, theme.getInteractableBackgroundColor(),
|
||||
new Color(theme.getInteractableBackgroundColor().getRGB() - 50),
|
||||
new Color(theme.getInteractableBackgroundColor().getRGB() + 170)));
|
||||
new Color(theme.getInteractableBackgroundColor().getRGB() + 170), true));
|
||||
scrollPane.getHorizontalScrollBar().setBackground(theme.getCellColor());
|
||||
scrollPane.getHorizontalScrollBar()
|
||||
.setUI(new PrimaryScrollBar(5, theme.getInteractableBackgroundColor(), new Color(theme.getInteractableBackgroundColor().getRGB() - 50),
|
||||
new Color(theme.getInteractableBackgroundColor().getRGB() + 170), false));
|
||||
// int currentVerticalScrollBarValue =
|
||||
// scrollPane.getVerticalScrollBar().getValue() +
|
||||
// scrollPane.getVerticalScrollBar().getVisibleAmount(); Work in Progress for
|
||||
// autoscroll
|
||||
// messageEnterTextArea
|
||||
messageEnterTextArea.setCaretColor(theme.getTypingMessageColor());
|
||||
messageEnterTextArea.setForeground(theme.getTypingMessageColor());
|
||||
|
Reference in New Issue
Block a user