Skip to content
Snippets Groups Projects
Commit 9893862a authored by BERRADA Louise's avatar BERRADA Louise
Browse files
parents 65fcdaf8 5050c711
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ class ShukanParameters extends JFrame { ...@@ -71,7 +71,7 @@ class ShukanParameters extends JFrame {
} }
}); });
theme2 = new JButton("Thème clair"); theme2 = new JButton("Thème modéré");
theme2.setPreferredSize(new Dimension(150, 25)); theme2.setPreferredSize(new Dimension(150, 25));
theme2.addActionListener(new ActionListener() { theme2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
...@@ -90,7 +90,7 @@ class ShukanParameters extends JFrame { ...@@ -90,7 +90,7 @@ class ShukanParameters extends JFrame {
} }
}); });
theme3 = new JButton("Thème modéré"); theme3 = new JButton("Thème clair");
theme3.setPreferredSize(new Dimension(150, 25)); theme3.setPreferredSize(new Dimension(150, 25));
theme3.addActionListener(new ActionListener() { theme3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
...@@ -104,7 +104,6 @@ class ShukanParameters extends JFrame { ...@@ -104,7 +104,6 @@ class ShukanParameters extends JFrame {
canvas.setForeground(TEXT_COLOR, HOLLY_COLOR, INACTIVE_COLOR); canvas.setForeground(TEXT_COLOR, HOLLY_COLOR, INACTIVE_COLOR);
student.setBackgroundColor(BACK_COLOR2); student.setBackgroundColor(BACK_COLOR2);
student.setForeground(TEXT_COLOR); student.setForeground(TEXT_COLOR);
} }
canvas.repaint(); canvas.repaint();
} }
......
...@@ -48,6 +48,9 @@ public class ShukanStudent extends JPanel{ ...@@ -48,6 +48,9 @@ public class ShukanStudent extends JPanel{
private final Color GRID_COLOR = Color.BLACK; private final Color GRID_COLOR = Color.BLACK;
/** Text color */ /** Text color */
private Color TEXT_COLOR = Color.BLACK; private Color TEXT_COLOR = Color.BLACK;
/** Color background, text, hollydays*/
private Color BACK_COLOR2 = Color.LIGHT_GRAY;
/** Displayed data */ /** Displayed data */
private ShukanData data = null; private ShukanData data = null;
...@@ -74,7 +77,7 @@ public class ShukanStudent extends JPanel{ ...@@ -74,7 +77,7 @@ public class ShukanStudent extends JPanel{
fontMetrics = g2.getFontMetrics(); fontMetrics = g2.getFontMetrics();
fontHeight = fontMetrics.getAscent(); fontHeight = fontMetrics.getAscent();
g2.setColor(BACK_COLOR); g2.setColor(BACK_COLOR2);
g2.fillRect(appliWidth - w, appliHeight - h, w, h); g2.fillRect(appliWidth - w, appliHeight - h, w, h);
drawBox (g2, appliWidth - w, appliHeight - h, w, h); drawBox (g2, appliWidth - w, appliHeight - h, w, h);
displayCalendar(g2); displayCalendar(g2);
...@@ -167,5 +170,5 @@ public class ShukanStudent extends JPanel{ ...@@ -167,5 +170,5 @@ public class ShukanStudent extends JPanel{
public void setForeground(Color c){ public void setForeground(Color c){
TEXT_COLOR = c; TEXT_COLOR = c;
repaint(); repaint();
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment