GUI style updates

This commit is contained in:
2022-03-21 10:12:39 +01:00
parent a2b1a7693e
commit 54383de1c3
3 changed files with 10 additions and 8 deletions

View File

@@ -10,6 +10,7 @@ import ch.psi.utils.State;
import ch.psi.utils.Str;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Font;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
@@ -27,6 +28,7 @@ public class PSSS extends Panel {
volatile boolean updatingPlot;
volatile boolean updatingImage;
final Color PLOT_BACKGROUND =Color.WHITE;
final Font TICK_LABEL_FONT = new Font("Arial", 0, 14);
public PSSS() {
initComponents();
@@ -37,6 +39,10 @@ public class PSSS extends Panel {
history.setPlotBackgroundColor(PLOT_BACKGROUND);
histogramGeneratorPanelCenter.getPlot().setPlotBackgroundColor(PLOT_BACKGROUND);
histogramGeneratorFwhm.getPlot().setPlotBackgroundColor(PLOT_BACKGROUND);
plot.setTickLabelFont(TICK_LABEL_FONT);
history.setTickLabelFont(TICK_LABEL_FONT);
histogramGeneratorPanelCenter.getPlot().setTickLabelFont(TICK_LABEL_FONT);
histogramGeneratorFwhm.getPlot().setTickLabelFont(TICK_LABEL_FONT);
}
//Overridable callbacks
@@ -216,7 +222,6 @@ public class PSSS extends Panel {
history.setDurationMillis(1800000);
history.setFocusable(false);
history.setTickLabelFont(new java.awt.Font("SansSerif", 0, 14)); // NOI18N
jLabel1.setText("Average:");
@@ -606,7 +611,7 @@ public class PSSS extends Panel {
.addComponent(radioCrystalScan)
.addComponent(radioCameraScan)
.addComponent(radioEnergyScan)
.addComponent(btAbort, javax.swing.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE))
.addComponent(btAbort, javax.swing.GroupLayout.DEFAULT_SIZE, 218, Short.MAX_VALUE))
.addContainerGap())
);
jPanel2Layout.setVerticalGroup(