[#2485] Add UI colors

This commit is contained in:
Ahanu Dewhirst 2024-07-17 01:35:47 +10:00
parent 32beec501f
commit b37d694a34
2 changed files with 23 additions and 0 deletions

View File

@ -85,6 +85,7 @@ public class UITheme {
Color getComponentTreeBackgroundColor();
Color getComponentTreeForegroundColor();
Color getvisibilityHiddenForegroundColor();
Color getFinPointGridMajorLineColor();
Color getFinPointGridMinorLineColor();
@ -371,6 +372,11 @@ public class UITheme {
return UIManager.getColor("Tree.textForeground");
}
@Override
public Color getvisibilityHiddenForegroundColor() {
return UIManager.getColor("Tree.textForeground.hidden.light");
}
@Override
public Color getFinPointGridMajorLineColor() {
return new Color( 0, 0, 255, 80);
@ -762,6 +768,11 @@ public class UITheme {
return getTextColor();
}
@Override
public Color getvisibilityHiddenForegroundColor() {
return UIManager.getColor("Tree.textForeground.hidden.dark");
}
@Override
public Color getFinPointGridMajorLineColor() {
return new Color(135, 135, 199, 197);
@ -1153,6 +1164,11 @@ public class UITheme {
return getTextColor();
}
@Override
public Color getvisibilityHiddenForegroundColor() {
return UIManager.getColor("Tree.textForeground.hidden.dark");
}
@Override
public Color getFinPointGridMajorLineColor() {
return new Color(164, 164, 224, 197);
@ -1563,6 +1579,11 @@ public class UITheme {
return getCurrentTheme().getComponentTreeForegroundColor();
}
@Override
public Color getvisibilityHiddenForegroundColor() {
return getCurrentTheme().getvisibilityHiddenForegroundColor();
}
@Override
public Color getFinPointGridMajorLineColor() {
return getCurrentTheme().getFinPointGridMajorLineColor();

View File

@ -9,6 +9,8 @@ Tree.paintLines = true
Tree.showCellFocusIndicator = true
Tree.wideSelection = true
Tree.paintSelection = true
Tree.textForeground.hidden.dark = darken($Tree.textForeground, 25%)
Tree.textForeground.hidden.light = lighten($Tree.textForeground, 25%)
# Margin as top,left,bottom,right
Tree.rendererMargins = 2, 0, 3, 0