From c55d3b3b322c8c18920d9a711c87c7c217078f77 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Tue, 27 Aug 2024 20:40:02 +0200 Subject: [PATCH] enhancement: harmonize buttons in HDD GUI panel Change label on Add Directory, to indicate it also supports archives. Harmonize the widths of those buttons. Improve label on CD select image file. --- src/osdep/gui/PanelHD.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/osdep/gui/PanelHD.cpp b/src/osdep/gui/PanelHD.cpp index c1d19714d..14f54363c 100644 --- a/src/osdep/gui/PanelHD.cpp +++ b/src/osdep/gui/PanelHD.cpp @@ -366,24 +366,24 @@ void InitPanelHD(const config_category& category) } } - cmdAddDirectory = new gcn::Button("Add Directory"); + cmdAddDirectory = new gcn::Button("Add Directory/Archive"); cmdAddDirectory->setBaseColor(gui_base_color); cmdAddDirectory->setForegroundColor(gui_foreground_color); - cmdAddDirectory->setSize(cmdAddDirectory->getWidth() + 30, BUTTON_HEIGHT); + cmdAddDirectory->setSize(cmdAddDirectory->getWidth() + 5, BUTTON_HEIGHT); cmdAddDirectory->setId("cmdAddDir"); cmdAddDirectory->addActionListener(hdAddActionListener); cmdAddHardfile = new gcn::Button("Add Hardfile"); cmdAddHardfile->setBaseColor(gui_base_color); cmdAddHardfile->setForegroundColor(gui_foreground_color); - cmdAddHardfile->setSize(cmdAddHardfile->getWidth() + 30, BUTTON_HEIGHT); + cmdAddHardfile->setSize(cmdAddDirectory->getWidth(), BUTTON_HEIGHT); cmdAddHardfile->setId("cmdAddHDF"); cmdAddHardfile->addActionListener(hdAddActionListener); cmdAddHardDrive = new gcn::Button("Add Hard Drive"); cmdAddHardDrive->setBaseColor(gui_base_color); cmdAddHardDrive->setForegroundColor(gui_foreground_color); - cmdAddHardDrive->setSize(cmdAddHardDrive->getWidth() + 30, BUTTON_HEIGHT); + cmdAddHardDrive->setSize(cmdAddDirectory->getWidth(), BUTTON_HEIGHT); cmdAddHardDrive->setId("cmdAddHardDrive"); cmdAddHardDrive->addActionListener(hdAddActionListener); @@ -419,8 +419,8 @@ void InitPanelHD(const config_category& category) cmdCDEject->setId("cmdCDEject"); cmdCDEject->addActionListener(cdButtonActionListener); - cmdCDSelectFile = new gcn::Button("Select Image"); - cmdCDSelectFile->setSize(SMALL_BUTTON_WIDTH * 4, SMALL_BUTTON_HEIGHT); + cmdCDSelectFile = new gcn::Button("Select image file"); + cmdCDSelectFile->setSize(SMALL_BUTTON_WIDTH * 6, SMALL_BUTTON_HEIGHT); cmdCDSelectFile->setBaseColor(gui_base_color); cmdCDSelectFile->setForegroundColor(gui_foreground_color); cmdCDSelectFile->setId("cmdCDSelectFile");