Dark Mode fine-tuning

This commit is contained in:
Reinhard Pointner 2019-05-08 23:26:41 +07:00
parent 93a41a41f1
commit f58cffda34
2 changed files with 7 additions and 3 deletions

View File

@ -87,7 +87,11 @@ public class ThemeSupport {
}
public static Color getPanelSelectionBorderColor() {
return new Color(0x163264);
return theme.isDark() ? new Color(0x191c26) : new Color(0x163264);
}
public static Color getBlankBackgroundColor() {
return getColor(0xF8F8FF);
}
public static LinearGradientPaint getPanelBackgroundGradient(int x, int y, int w, int h) {
@ -110,7 +114,7 @@ public class ThemeSupport {
}
public static ProgressIndicator getProgressIndicator() {
return new ProgressIndicator(Color.orange, withAlpha(getColor(0x000000), 0.25f));
return new ProgressIndicator(Color.orange, withAlpha(getLabelForeground(), 0.25f));
}
public static Color withAlpha(Color color, float alpha) {

View File

@ -10,7 +10,7 @@ import javax.swing.Icon;
public class BlankThumbnail implements Icon {
public static final BlankThumbnail BLANK_POSTER = new BlankThumbnail(48, 48, getColor(0xF8F8FF), getPanelSelectionBorderColor(), 0.68f, 1f);
public static final BlankThumbnail BLANK_POSTER = new BlankThumbnail(48, 48, getBlankBackgroundColor(), getPanelSelectionBorderColor(), 0.68f, 1f);
private int width;
private int height;