mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
WPrefs: minor reorganisation in the Keyboard Shortcut panel
The goal was to reduce the risk of truncated lines in the list of actions (a few of them are a bit long - and need to be!), so it was an opportunity to align the widgets with consistent spacing. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
14dc8dd415
commit
7e40a61d16
@@ -513,8 +513,8 @@ static void createPanel(Panel * p)
|
|||||||
|
|
||||||
/* **************** Actions **************** */
|
/* **************** Actions **************** */
|
||||||
panel->actL = WMCreateLabel(panel->box);
|
panel->actL = WMCreateLabel(panel->box);
|
||||||
WMResizeWidget(panel->actL, 280, 20);
|
WMResizeWidget(panel->actL, 314, 20);
|
||||||
WMMoveWidget(panel->actL, 20, 10);
|
WMMoveWidget(panel->actL, 9, 9);
|
||||||
WMSetLabelFont(panel->actL, boldFont);
|
WMSetLabelFont(panel->actL, boldFont);
|
||||||
WMSetLabelText(panel->actL, _("Actions"));
|
WMSetLabelText(panel->actL, _("Actions"));
|
||||||
WMSetLabelRelief(panel->actL, WRSunken);
|
WMSetLabelRelief(panel->actL, WRSunken);
|
||||||
@@ -525,8 +525,8 @@ static void createPanel(Panel * p)
|
|||||||
WMSetLabelTextColor(panel->actL, panel->white);
|
WMSetLabelTextColor(panel->actL, panel->white);
|
||||||
|
|
||||||
panel->actLs = WMCreateList(panel->box);
|
panel->actLs = WMCreateList(panel->box);
|
||||||
WMResizeWidget(panel->actLs, 280, 190);
|
WMResizeWidget(panel->actLs, 314, 191);
|
||||||
WMMoveWidget(panel->actLs, 20, 32);
|
WMMoveWidget(panel->actLs, 9, 31);
|
||||||
WMSetListUserDrawProc(panel->actLs, paintItem);
|
WMSetListUserDrawProc(panel->actLs, paintItem);
|
||||||
WMHangData(panel->actLs, panel);
|
WMHangData(panel->actLs, panel);
|
||||||
|
|
||||||
@@ -541,30 +541,30 @@ static void createPanel(Panel * p)
|
|||||||
/***************** Shortcut ****************/
|
/***************** Shortcut ****************/
|
||||||
|
|
||||||
panel->shoF = WMCreateFrame(panel->box);
|
panel->shoF = WMCreateFrame(panel->box);
|
||||||
WMResizeWidget(panel->shoF, 190, 210);
|
WMResizeWidget(panel->shoF, 178, 214);
|
||||||
WMMoveWidget(panel->shoF, 315, 10);
|
WMMoveWidget(panel->shoF, 333, 8);
|
||||||
WMSetFrameTitle(panel->shoF, _("Shortcut"));
|
WMSetFrameTitle(panel->shoF, _("Shortcut"));
|
||||||
|
|
||||||
panel->shoT = WMCreateTextField(panel->shoF);
|
panel->shoT = WMCreateTextField(panel->shoF);
|
||||||
WMResizeWidget(panel->shoT, 160, 20);
|
WMResizeWidget(panel->shoT, 160, 20);
|
||||||
WMMoveWidget(panel->shoT, 15, 65);
|
WMMoveWidget(panel->shoT, 9, 65);
|
||||||
WMAddNotificationObserver(typedKeys, panel, WMTextDidChangeNotification, panel->shoT);
|
WMAddNotificationObserver(typedKeys, panel, WMTextDidChangeNotification, panel->shoT);
|
||||||
|
|
||||||
panel->cleB = WMCreateCommandButton(panel->shoF);
|
panel->cleB = WMCreateCommandButton(panel->shoF);
|
||||||
WMResizeWidget(panel->cleB, 75, 24);
|
WMResizeWidget(panel->cleB, 75, 24);
|
||||||
WMMoveWidget(panel->cleB, 15, 95);
|
WMMoveWidget(panel->cleB, 9, 95);
|
||||||
WMSetButtonText(panel->cleB, _("Clear"));
|
WMSetButtonText(panel->cleB, _("Clear"));
|
||||||
WMSetButtonAction(panel->cleB, clearShortcut, panel);
|
WMSetButtonAction(panel->cleB, clearShortcut, panel);
|
||||||
|
|
||||||
panel->defB = WMCreateCommandButton(panel->shoF);
|
panel->defB = WMCreateCommandButton(panel->shoF);
|
||||||
WMResizeWidget(panel->defB, 75, 24);
|
WMResizeWidget(panel->defB, 75, 24);
|
||||||
WMMoveWidget(panel->defB, 100, 95);
|
WMMoveWidget(panel->defB, 94, 95);
|
||||||
WMSetButtonText(panel->defB, _("Capture"));
|
WMSetButtonText(panel->defB, _("Capture"));
|
||||||
WMSetButtonAction(panel->defB, captureClick, panel);
|
WMSetButtonAction(panel->defB, captureClick, panel);
|
||||||
|
|
||||||
panel->instructionsL = WMCreateLabel(panel->shoF);
|
panel->instructionsL = WMCreateLabel(panel->shoF);
|
||||||
WMResizeWidget(panel->instructionsL, 160, 55);
|
WMResizeWidget(panel->instructionsL, 160, 55);
|
||||||
WMMoveWidget(panel->instructionsL, 15, 140);
|
WMMoveWidget(panel->instructionsL, 9, 140);
|
||||||
WMSetLabelTextAlignment(panel->instructionsL, WACenter);
|
WMSetLabelTextAlignment(panel->instructionsL, WACenter);
|
||||||
WMSetLabelWraps(panel->instructionsL, True);
|
WMSetLabelWraps(panel->instructionsL, True);
|
||||||
WMSetLabelText(panel->instructionsL, _("Click on Capture to interactively define the shortcut key."));
|
WMSetLabelText(panel->instructionsL, _("Click on Capture to interactively define the shortcut key."));
|
||||||
|
|||||||
Reference in New Issue
Block a user