active panel
This commit is contained in:
parent
7ba01f9504
commit
0ac0f0a8c7
@ -960,11 +960,17 @@ public class MainWindow extends JFrame {
|
|||||||
Color selColor = config.getSelectionColor();
|
Color selColor = config.getSelectionColor();
|
||||||
if (selColor == null) selColor = new Color(184, 207, 229);
|
if (selColor == null) selColor = new Color(184, 207, 229);
|
||||||
|
|
||||||
// Active panel uses selection color, inactive panel uses a very dark gray border
|
// Inactive indicator is more subtle (darker)
|
||||||
Color inactiveColor = new Color(45, 45, 45);
|
Color inactiveColor = new Color(60, 60, 60);
|
||||||
|
|
||||||
leftPanel.setBorder(BorderFactory.createLineBorder(activePanel == leftPanel ? selColor : inactiveColor, 2));
|
// We use a MatteBorder to create a "strip" only on the top edge
|
||||||
rightPanel.setBorder(BorderFactory.createLineBorder(activePanel == rightPanel ? selColor : inactiveColor, 2));
|
leftPanel.setBorder(BorderFactory.createCompoundBorder(
|
||||||
|
BorderFactory.createMatteBorder(3, 0, 0, 0, activePanel == leftPanel ? selColor : inactiveColor),
|
||||||
|
BorderFactory.createEmptyBorder(3, 5, 5, 5)));
|
||||||
|
|
||||||
|
rightPanel.setBorder(BorderFactory.createCompoundBorder(
|
||||||
|
BorderFactory.createMatteBorder(3, 0, 0, 0, activePanel == rightPanel ? selColor : inactiveColor),
|
||||||
|
BorderFactory.createEmptyBorder(3, 5, 5, 5)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user