Jour de congé ! : Modification des titres + des paramètres
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
package fr.monkhanny.dorfromantik.gui;
|
package fr.monkhanny.dorfromantik.gui;
|
||||||
|
|
||||||
|
import fr.monkhanny.dorfromantik.components.Title;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
@@ -32,9 +34,7 @@ public class GameModeSelectionPanel extends JPanel {
|
|||||||
background.add(mainPanel, BorderLayout.CENTER); // Placer le contenu principal sous le bouton
|
background.add(mainPanel, BorderLayout.CENTER); // Placer le contenu principal sous le bouton
|
||||||
|
|
||||||
// Title
|
// Title
|
||||||
titleLabel = new JLabel("Choisissez un mode de jeu", JLabel.CENTER);
|
titleLabel = new Title("Choisissez un mode de jeu", 60f, Color.WHITE);
|
||||||
titleLabel.setFont(new Font("Arial", Font.BOLD, 40));
|
|
||||||
titleLabel.setForeground(Color.WHITE);
|
|
||||||
mainPanel.add(titleLabel, createGridBagConstraints(0, 0, 2));
|
mainPanel.add(titleLabel, createGridBagConstraints(0, 0, 2));
|
||||||
|
|
||||||
mainPanel.add(Box.createVerticalStrut(30), createGridBagConstraints(0, 1, 1));
|
mainPanel.add(Box.createVerticalStrut(30), createGridBagConstraints(0, 1, 1));
|
||||||
|
@@ -191,13 +191,13 @@ public class SettingsPanel extends JPanel {
|
|||||||
JPanel sliderPanel = new JPanel(new BorderLayout());
|
JPanel sliderPanel = new JPanel(new BorderLayout());
|
||||||
sliderPanel.setOpaque(false);
|
sliderPanel.setOpaque(false);
|
||||||
|
|
||||||
JLabel lowLabel = new JLabel("Low");
|
JLabel lowLabel = new JLabel("Faible");
|
||||||
lowLabel.setFont(new Font("Roboto", Font.PLAIN, 18));
|
lowLabel.setFont(new Font("Roboto", Font.PLAIN, 18));
|
||||||
sliderPanel.add(lowLabel, BorderLayout.WEST);
|
sliderPanel.add(lowLabel, BorderLayout.WEST);
|
||||||
|
|
||||||
sliderPanel.add(volumeSlider, BorderLayout.CENTER);
|
sliderPanel.add(volumeSlider, BorderLayout.CENTER);
|
||||||
|
|
||||||
JLabel highLabel = new JLabel("High");
|
JLabel highLabel = new JLabel("Élevé");
|
||||||
highLabel.setFont(new Font("Roboto", Font.PLAIN, 18));
|
highLabel.setFont(new Font("Roboto", Font.PLAIN, 18));
|
||||||
sliderPanel.add(highLabel, BorderLayout.EAST);
|
sliderPanel.add(highLabel, BorderLayout.EAST);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user