before-after: http://dawn.dev.hu/~ice/tmp/WPrefsMiscSpacing.png
still looks like shit, but now you can at least read it.
>From 9d576bf8debe3fa4250be9b65e72c78385aa121d Mon Sep 17 00:00:00 2001
From: Tamas TEVESZ <[email protected]>
Date: Fri, 2 Apr 2010 14:25:34 +0200
Subject: [PATCH] Fix spacing on WPrefs Misc panel
- w/o XKB_MODELOCK it looks like shit anyway, so let's at least
make the w/ XKB_MODELOCK case readable.
---
WPrefs.app/Preferences.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/WPrefs.app/Preferences.c b/WPrefs.app/Preferences.c
index a44c03e..13c8c23 100644
--- a/WPrefs.app/Preferences.c
+++ b/WPrefs.app/Preferences.c
@@ -251,14 +251,14 @@ static void createPanel(Panel * p)
/***************** Balloon Text ****************/
panel->ballF = WMCreateFrame(panel->box);
- WMResizeWidget(panel->ballF, 235, 125);
+ WMResizeWidget(panel->ballF, 235, 113);
WMMoveWidget(panel->ballF, 270, 10);
WMSetFrameTitle(panel->ballF, _("Show balloon text for..."));
for (i = 0; i < 4; i++) {
panel->ballB[i] = WMCreateSwitchButton(panel->ballF);
WMResizeWidget(panel->ballB[i], 205, 20);
- WMMoveWidget(panel->ballB[i], 15, 20 + i * 25);
+ WMMoveWidget(panel->ballB[i], 15, 20 + i * 22);
}
WMSetButtonText(panel->ballB[0], _("incomplete window titles"));
WMSetButtonText(panel->ballB[1], _("miniwindow titles"));
@@ -269,18 +269,18 @@ static void createPanel(Panel * p)
/***************** Options ****************/
panel->optF = WMCreateFrame(panel->box);
- WMResizeWidget(panel->optF, 235, 75);
- WMMoveWidget(panel->optF, 270, 145);
+ WMResizeWidget(panel->optF, 235, 97);
+ WMMoveWidget(panel->optF, 270, 128);
panel->raisB = WMCreateSwitchButton(panel->optF);
- WMResizeWidget(panel->raisB, 210, 30);
- WMMoveWidget(panel->raisB, 15, 7);
+ WMResizeWidget(panel->raisB, 210, 36);
+ WMMoveWidget(panel->raisB, 15, 5);
WMSetButtonText(panel->raisB, _("Raise window when switching\nfocus
with keyboard."));
#ifdef XKB_MODELOCK
panel->modeB = WMCreateSwitchButton(panel->optF);
- WMResizeWidget(panel->modeB, 210, 30);
- WMMoveWidget(panel->modeB, 15, 40);
+ WMResizeWidget(panel->modeB, 210, 40);
+ WMMoveWidget(panel->modeB, 15, 44);
WMSetButtonText(panel->modeB, _("Enable keyboard language\nswitch
button in window titlebars."));
#endif
@@ -288,7 +288,7 @@ static void createPanel(Panel * p)
/***************** Workspace border ****************/
panel->borderF = WMCreateFrame(panel->box);
- WMResizeWidget(panel->borderF, 240, 75);
+ WMResizeWidget(panel->borderF, 240, 80);
WMMoveWidget(panel->borderF, 20, 145);
WMSetFrameTitle(panel->borderF, _("Workspace border"));
--
1.7.0
--
[-]
mkdir /nonexistentFrom 9d576bf8debe3fa4250be9b65e72c78385aa121d Mon Sep 17 00:00:00 2001
From: Tamas TEVESZ <[email protected]>
Date: Fri, 2 Apr 2010 14:25:34 +0200
Subject: [PATCH] Fix spacing on WPrefs Misc panel
- w/o XKB_MODELOCK it looks like shit anyway, so let's at least
make the w/ XKB_MODELOCK case readable.
---
WPrefs.app/Preferences.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/WPrefs.app/Preferences.c b/WPrefs.app/Preferences.c
index a44c03e..13c8c23 100644
--- a/WPrefs.app/Preferences.c
+++ b/WPrefs.app/Preferences.c
@@ -251,14 +251,14 @@ static void createPanel(Panel * p)
/***************** Balloon Text ****************/
panel->ballF = WMCreateFrame(panel->box);
- WMResizeWidget(panel->ballF, 235, 125);
+ WMResizeWidget(panel->ballF, 235, 113);
WMMoveWidget(panel->ballF, 270, 10);
WMSetFrameTitle(panel->ballF, _("Show balloon text for..."));
for (i = 0; i < 4; i++) {
panel->ballB[i] = WMCreateSwitchButton(panel->ballF);
WMResizeWidget(panel->ballB[i], 205, 20);
- WMMoveWidget(panel->ballB[i], 15, 20 + i * 25);
+ WMMoveWidget(panel->ballB[i], 15, 20 + i * 22);
}
WMSetButtonText(panel->ballB[0], _("incomplete window titles"));
WMSetButtonText(panel->ballB[1], _("miniwindow titles"));
@@ -269,18 +269,18 @@ static void createPanel(Panel * p)
/***************** Options ****************/
panel->optF = WMCreateFrame(panel->box);
- WMResizeWidget(panel->optF, 235, 75);
- WMMoveWidget(panel->optF, 270, 145);
+ WMResizeWidget(panel->optF, 235, 97);
+ WMMoveWidget(panel->optF, 270, 128);
panel->raisB = WMCreateSwitchButton(panel->optF);
- WMResizeWidget(panel->raisB, 210, 30);
- WMMoveWidget(panel->raisB, 15, 7);
+ WMResizeWidget(panel->raisB, 210, 36);
+ WMMoveWidget(panel->raisB, 15, 5);
WMSetButtonText(panel->raisB, _("Raise window when switching\nfocus with keyboard."));
#ifdef XKB_MODELOCK
panel->modeB = WMCreateSwitchButton(panel->optF);
- WMResizeWidget(panel->modeB, 210, 30);
- WMMoveWidget(panel->modeB, 15, 40);
+ WMResizeWidget(panel->modeB, 210, 40);
+ WMMoveWidget(panel->modeB, 15, 44);
WMSetButtonText(panel->modeB, _("Enable keyboard language\nswitch button in window titlebars."));
#endif
@@ -288,7 +288,7 @@ static void createPanel(Panel * p)
/***************** Workspace border ****************/
panel->borderF = WMCreateFrame(panel->box);
- WMResizeWidget(panel->borderF, 240, 75);
+ WMResizeWidget(panel->borderF, 240, 80);
WMMoveWidget(panel->borderF, 20, 145);
WMSetFrameTitle(panel->borderF, _("Workspace border"));
--
1.7.0