diff --git a/man/icewm-preferences.pod b/man/icewm-preferences.pod index 633bd72b2..b84b77fb8 100644 --- a/man/icewm-preferences.pod +++ b/man/icewm-preferences.pod @@ -1077,6 +1077,13 @@ B to allow B for B. Command to run for address bar entries. +=item B="nohup|(nice[[:space:]]+-n[[:space:]]*[[:digit:]]+)|sudo|(LANG|LC_[[:alnum:]]]*)(=|=[^[:space:]]+)" + +Regular expression (POSIX Extended flavor) which marks the begin of a +command line in command input fields. Such prefixes are ignored while +the auto-completion action is performed, typically for commands acting +as pass-through wrapper, executing the specified command. + =back =head2 WINDOW MENUS @@ -1201,13 +1208,6 @@ Dimension of the large icons. Dimension of the large icons. -=item B="nohup|(nice[[:space:]]+-n[[:space:]]*[[:digit:]]+)|sudo|(LANG|LC_[[:alnum:]]]*)(=|=[^[:space:]]+)" - -Regular expression (POSIX Extended flavor) which marks the begin of a -command line in command input fields. Such prefixes are ignored while -the auto-completion action is performed, typically for commands acting -as pass-through wrapper, executing the specified command. - =item B=3 [0-64] Horizontal margin of the quickswitch window. @@ -1549,6 +1549,11 @@ Text color in the quick switch window. Rectangle around the active icon in the quick switch window. +=item B = "" + +The color for the quick switch border. When empty, a one pixel wide +elevation border will be drawn, based on the quick switch background. + =item B = "rgb:C0/C0/C0" Background of the taskbar. diff --git a/src/themable.h b/src/themable.h index 410fe3688..f69e56e73 100644 --- a/src/themable.h +++ b/src/themable.h @@ -88,6 +88,7 @@ XSV(const char *, clrMoveSizeStatus, "rgb:C0/C0/C0") XSV(const char *, clrMoveSizeStatusText, "rgb:00/00/00") XSV(const char *, clrQuickSwitch, "rgb:C0/C0/C0") XSV(const char *, clrQuickSwitchText, "rgb:00/00/00") +XSV(const char *, clrQuickSwitchBorder, 0) XSV(const char *, clrQuickSwitchActive, 0) XSV(const char *, clrDefaultTaskBar, "rgb:C0/C0/C0") XSV(const char *, clrNormalButton, "rgb:C0/C0/C0") @@ -260,6 +261,7 @@ cfoption icewm_themable_preferences[] = { OSV("ColorMoveSizeStatusText", &clrMoveSizeStatusText, "Text color of move/resize status window"), OSV("ColorQuickSwitch", &clrQuickSwitch, "Background of the quick switch window"), + OSV("ColorQuickSwitchBorder", &clrQuickSwitchBorder, "Border color of the quick switch window"), OSV("ColorQuickSwitchText", &clrQuickSwitchText, "Text color in the quick switch window"), OSV("ColorQuickSwitchActive", &clrQuickSwitchActive, "Rectangle arround the active icon in the quick switch window"), OSV("ColorDefaultTaskBar", &clrDefaultTaskBar, "Background of the taskbar"), diff --git a/src/wmswitch.cc b/src/wmswitch.cc index 650542f5b..75d985999 100644 --- a/src/wmswitch.cc +++ b/src/wmswitch.cc @@ -447,6 +447,7 @@ SwitchWindow::SwitchWindow(YWindow *parent, ISwitchItems *items, fWorkspace(WorkspaceInvalid), switchFg(&clrQuickSwitchText), switchBg(&clrQuickSwitch), + switchBc(&clrQuickSwitchBorder), switchHl(&clrQuickSwitchActive), switchMfg(&clrActiveTitleBarText), switchFont(switchFontName), @@ -597,16 +598,22 @@ void SwitchWindow::paint(Graphics &g, const YRect &/*r*/) { fGradient = switchbackPixbuf->scale(width() - 2, height() - 2); } - g.setColor(switchBg); - g.drawBorderW(0, 0, width() - 1, height() - 1, true); + if (switchBc) { + g.setColor(switchBc); + g.drawRect(0, 0, width() - 1, height() - 1); + } else { + g.setColor(switchBg); + g.drawBorderW(0, 0, width() - 1, height() - 1, true); + } if (fGradient != null) g.drawImage(fGradient, 1, 1, width() - 2, height() - 2, 1, 1); - else - if (switchbackPixmap != null) + else if (switchbackPixmap != null) g.fillPixmap(switchbackPixmap, 1, 1, width() - 3, height() - 3); - else + else { + g.setColor(switchBg); g.fillRect(1, 1, width() - 3, height() - 3); + } m_verticalStyle ? paintVertical(g) : paintHorizontal(g); } diff --git a/src/wmswitch.h b/src/wmswitch.h index b75d94922..7349c0c10 100644 --- a/src/wmswitch.h +++ b/src/wmswitch.h @@ -90,6 +90,7 @@ class SwitchWindow: public YPopupWindow { YColorName switchFg; YColorName switchBg; + YColorName switchBc; YColorName switchHl; YColorName switchMbg; YColorName switchMfg;