From 0b8788467dba5aea8384031964c25129aec4202e Mon Sep 17 00:00:00 2001 From: Moncef STITI Date: Mon, 2 Dec 2024 22:08:09 +0100 Subject: [PATCH] =?UTF-8?q?Modification=20des=20param=C3=A8tres=20pour=20l?= =?UTF-8?q?'ergonomie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dorfromantik/gui/SettingsPanel.java | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/fr/monkhanny/dorfromantik/gui/SettingsPanel.java b/src/fr/monkhanny/dorfromantik/gui/SettingsPanel.java index 54113fd..21b7310 100644 --- a/src/fr/monkhanny/dorfromantik/gui/SettingsPanel.java +++ b/src/fr/monkhanny/dorfromantik/gui/SettingsPanel.java @@ -88,8 +88,9 @@ public class SettingsPanel extends JPanel { // Titre de la section (ex: "Musique" ou "SFX") JLabel titleLabel = new JLabel(labelText); - titleLabel.setFont(new Font("Roboto", Font.BOLD, 30)); + titleLabel.setFont(new Font("Roboto", Font.PLAIN, 30)); titleLabel.setAlignmentX(Component.CENTER_ALIGNMENT); // Alignement à gauche + titleLabel.setForeground(Color.WHITE); // Couleur du texte panel.add(titleLabel); panel.add(Box.createVerticalStrut(10)); // Espacement vertical @@ -99,13 +100,14 @@ public class SettingsPanel extends JPanel { mutePanel.setOpaque(false); JLabel muteLabel = new JLabel("Couper le son"); - muteLabel.setFont(new Font("Roboto", Font.PLAIN, 18)); // Augmentation de la taille du texte + muteLabel.setFont(new Font("Roboto", Font.PLAIN, 22)); // Augmentation de la taille du texte + muteLabel.setForeground(Color.WHITE); muteLabel.setAlignmentX(Component.LEFT_ALIGNMENT); // Aligner le texte à gauche mutePanel.add(muteLabel); // Ajouter la checkbox après le texte pour qu'elle soit à droite JCheckBox muteCheckBox = new JCheckBox(); - muteCheckBox.setFont(new Font("Roboto", Font.PLAIN, 18)); // Optionnel, si le style du texte dans la case est souhaité + muteCheckBox.setFont(new Font("Roboto", Font.PLAIN, 22)); // Optionnel, si le style du texte dans la case est souhaité muteCheckBox.setFocusPainted(false); muteCheckBox.setOpaque(false); muteCheckBox.setBorderPainted(false); @@ -123,7 +125,8 @@ public class SettingsPanel extends JPanel { JPanel volumePanel = new JPanel(new BorderLayout()); volumePanel.setOpaque(false); JLabel manageVolumeLabel = new JLabel("Gérer le son"); - manageVolumeLabel.setFont(new Font("Roboto", Font.PLAIN, 18)); + manageVolumeLabel.setFont(new Font("Roboto", Font.PLAIN, 22)); + manageVolumeLabel.setForeground(Color.WHITE); volumePanel.add(manageVolumeLabel, BorderLayout.NORTH); // Création et ajout du slider @@ -147,7 +150,8 @@ public class SettingsPanel extends JPanel { // Titre de la section JLabel titleLabel = new JLabel("Focus Automatique"); - titleLabel.setFont(new Font("Roboto", Font.BOLD, 30)); + titleLabel.setFont(new Font("Roboto", Font.PLAIN, 30)); + titleLabel.setForeground(Color.WHITE); titleLabel.setAlignmentX(Component.CENTER_ALIGNMENT); // Aligner le texte au centre panel.add(titleLabel); panel.add(Box.createVerticalStrut(10)); // Espacement vertical @@ -159,7 +163,8 @@ public class SettingsPanel extends JPanel { // Texte explicatif avant la case à cocher JLabel descriptionLabel = new JLabel("Gestion du focus automatique (nécessite une bonne carte graphique) :"); - descriptionLabel.setFont(new Font("Roboto", Font.PLAIN, 18)); + descriptionLabel.setFont(new Font("Roboto", Font.PLAIN, 22)); + descriptionLabel.setForeground(Color.WHITE); descriptionLabel.setAlignmentX(Component.LEFT_ALIGNMENT); // Aligner à gauche checkBoxPanel.add(descriptionLabel); // Ajouter le texte dans le panneau @@ -168,7 +173,7 @@ public class SettingsPanel extends JPanel { // Case à cocher JCheckBox autoFocusCheckBox = new JCheckBox(); - autoFocusCheckBox.setFont(new Font("Roboto", Font.PLAIN, 18)); + autoFocusCheckBox.setFont(new Font("Roboto", Font.PLAIN, 22)); autoFocusCheckBox.setFocusPainted(false); autoFocusCheckBox.setOpaque(false); autoFocusCheckBox.setBorderPainted(false); @@ -192,13 +197,15 @@ public class SettingsPanel extends JPanel { sliderPanel.setOpaque(false); JLabel lowLabel = new JLabel("Faible"); - lowLabel.setFont(new Font("Roboto", Font.PLAIN, 18)); + lowLabel.setFont(new Font("Roboto", Font.PLAIN, 22)); + lowLabel.setForeground(Color.WHITE); sliderPanel.add(lowLabel, BorderLayout.WEST); sliderPanel.add(volumeSlider, BorderLayout.CENTER); JLabel highLabel = new JLabel("Élevé"); - highLabel.setFont(new Font("Roboto", Font.PLAIN, 18)); + highLabel.setFont(new Font("Roboto", Font.PLAIN, 22)); + highLabel.setForeground(Color.WHITE); sliderPanel.add(highLabel, BorderLayout.EAST); return sliderPanel;