make panels dark with white font, so it doesnt hurt eyes in dark room

This commit is contained in:
mykola2312 2024-04-29 04:46:20 +03:00
parent 56a25aaa65
commit 3018d94a2c

View file

@ -198,18 +198,27 @@ public class MenuPanel extends JPanel {
final JPanel categoryPanel = new JPanel(new BorderLayout()); final JPanel categoryPanel = new JPanel(new BorderLayout());
final JPanel channelPanel = new JPanel(new BorderLayout()); final JPanel channelPanel = new JPanel(new BorderLayout());
logPanel.setBackground(Color.BLACK);
categoryPanel.setBackground(Color.BLACK);
channelPanel.setBackground(Color.BLACK);
final JSplitPane hsp = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, categoryPanel, channelPanel); final JSplitPane hsp = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, categoryPanel, channelPanel);
hsp.setDividerLocation(0.35); hsp.setDividerLocation(0.35);
hsp.setBackground(Color.BLACK);
final JSplitPane vsp = new JSplitPane(JSplitPane.VERTICAL_SPLIT, logPanel, hsp); final JSplitPane vsp = new JSplitPane(JSplitPane.VERTICAL_SPLIT, logPanel, hsp);
vsp.setDividerSize(2); vsp.setDividerSize(2);
vsp.setContinuousLayout(true); vsp.setContinuousLayout(true);
vsp.setDividerLocation(50); vsp.setDividerLocation(50);
vsp.setBackground(Color.BLACK);
add(vsp); add(vsp);
categoryList = new JList<Category>(); categoryList = new JList<Category>();
categoryList.setFont(getFont()); categoryList.setFont(getFont());
categoryList.setForeground(Color.WHITE);
categoryList.setBackground(Color.BLACK);
final JScrollPane categoryListScroll = new JScrollPane(categoryList); final JScrollPane categoryListScroll = new JScrollPane(categoryList);
categoryListScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER); categoryListScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
categoryListScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); categoryListScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
@ -218,6 +227,9 @@ public class MenuPanel extends JPanel {
channelList = new JList<Channel>(); channelList = new JList<Channel>();
channelList.setFont(getFont()); channelList.setFont(getFont());
channelList.setForeground(Color.WHITE);
channelList.setBackground(Color.BLACK);
final JScrollPane channelListScroll = new JScrollPane(channelList); final JScrollPane channelListScroll = new JScrollPane(channelList);
channelListScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER); channelListScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
channelListScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); channelListScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);