This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1683283226== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE5218F5DC959423A92DFB7FB" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE5218F5DC959423A92DFB7FB Content-Type: multipart/mixed; boundary="------------020300060308060306020308" This is a multi-part message in MIME format. --------------020300060308060306020308 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have prepared a patch implementing often-requested wish (218 votes) - changing color of fonts in taskbar (see https://bugs.kde.org/show_bug.cgi?id=3D118460). Any comments welcome, it is my first patch involving .kcfg and .ui, so I might have messed something up :) If it is OK, I would like to commit it during next feature unfreeze for stable branch (it is for 3.5.x, not for KDE4). If necessary, I can submit it to kde-usability for review. Here are the screenshots (they are with Polish text as KControl does not seem to respect KDE_LANG variable): Config window with custom colors disabled: http://lichota.net/~krzysiek/projects/kde/taskbar-colors/config-custom-co= lors-inactive.png Config window with custom colors enabled: http://lichota.net/~krzysiek/projects/kde/taskbar-colors/config-custom-co= lors-active.png Taskbar with "Classic" appearance: http://lichota.net/~krzysiek/projects/kde/taskbar-colors/custom-colors-cl= assic.png Taskbar with "Elegant" appearance: http://lichota.net/~krzysiek/projects/kde/taskbar-colors/custom-colors-el= egant.png Taskbar with "For transparency" appearance and transparent Kicker: http://lichota.net/~krzysiek/projects/kde/taskbar-colors/custom-colors-tr= ansparency.png Colors on screenshots have been chosen for demonstration, not because of their beauty :) Krzysztof Lichota --------------020300060308060306020308 Content-Type: text/x-patch; name="taskbar-colors2.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="taskbar-colors2.diff" Index: kcontrol/taskbar/kcmtaskbar.cpp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kcontrol/taskbar/kcmtaskbar.cpp (wersja 569913) +++ kcontrol/taskbar/kcmtaskbar.cpp (kopia robocza) @@ -30,6 +30,8 @@ #include #include #include +#include +#include =20 #define protected public #include "kcmtaskbarui.h" @@ -151,7 +153,9 @@ =20 connect(m_widget->kcfg_GroupTasks, SIGNAL(activated(int)), this, SLOT(slotUpdateComboBox())); + connect(m_widget->kcfg_UseCustomColors, SIGNAL(stateChanged(int)), t= his, SLOT(slotUpdateCustomColors())); =20 + slotUpdateCustomColors(); updateAppearanceCombo(); =20 if (KWin::numberOfDesktops() < 2) @@ -182,6 +186,18 @@ QTimer::singleShot(0, this, SLOT(notChanged())); } =20 +void TaskbarConfig::slotUpdateCustomColors() +{ + m_widget->kcfg_ActiveTaskTextColor->setEnabled(m_widget->kcfg_UseCus= tomColors->isChecked()); + m_widget->activeTaskTextColorLabel->setEnabled(m_widget->kcfg_UseCus= tomColors->isChecked()); + =20 + m_widget->kcfg_InactiveTaskTextColor->setEnabled(m_widget->kcfg_UseC= ustomColors->isChecked()); + m_widget->inactiveTaskTextColorLabel->setEnabled(m_widget->kcfg_UseC= ustomColors->isChecked()); + =20 + m_widget->kcfg_TaskBackgroundColor->setEnabled(m_widget->kcfg_UseCus= tomColors->isChecked()); + m_widget->taskBackgroundColorLabel->setEnabled(m_widget->kcfg_UseCus= tomColors->isChecked()); +} + void TaskbarConfig::slotUpdateComboBox() { int pos =3D TaskBarSettings::ActivateRaiseOrMinimize; Index: kcontrol/taskbar/kcmtaskbar.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kcontrol/taskbar/kcmtaskbar.h (wersja 569913) +++ kcontrol/taskbar/kcmtaskbar.h (kopia robocza) @@ -64,6 +64,7 @@ void slotUpdateComboBox(); void appearanceChanged(int); void notChanged(); + void slotUpdateCustomColors(); =20 private: TaskbarAppearance::List m_appearances; Index: kcontrol/taskbar/kcmtaskbarui.ui =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kcontrol/taskbar/kcmtaskbarui.ui (wersja 569913) +++ kcontrol/taskbar/kcmtaskbarui.ui (kopia robocza) @@ -177,6 +177,141 @@ appearance + + + kcfg_UseCustomColors + + + true + + + Use &custom colors + + + Alt+C + + + true + + + + + layout9 + + + + unnamed + + + + spacer11_2 + + + Horizontal + + + Expanding + + + + 191 + 20 + + + + + + kcfg_InactiveTaskTextColor + + + + + + + + spacer11 + + + Horizontal + + + Expanding + + + + 191 + 20 + + + + + + kcfg_TaskBackgroundColor + + + + + + = + + taskBackgroundColorLabel + + + &Background color: + + + kcfg_TaskBackgroundColor + + + + + kcfg_ActiveTaskTextColor + + + + + + = + + inactiveTaskTextColorLabel + + + Inacti&ve task text color: + + + kcfg_InactiveTaskTextColor + + + = + + activeTaskTextColorLabel + + + Active task te&xt color: + + + kcfg_ActiveTaskTextColor + + + + + spacer12 + + + Horizontal + + + Expanding + + + + 191 + 20 + + + + + spacer2 @@ -323,10 +458,16 @@ kcfg_ShowAllWindows kcfg_SortByDesktop showAllScreens + kcfg_SortByApp kcfg_ShowOnlyIconified kcfg_ShowIcon kcfg_ShowWindowListBtn kcfg_GroupTasks + appearance + kcfg_UseCustomColors + kcfg_InactiveTaskTextColor + kcfg_ActiveTaskTextColor + kcfg_TaskBackgroundColor kcfg_LeftButtonAction kcfg_MiddleButtonAction kcfg_RightButtonAction @@ -336,4 +477,9 @@ + + kcolorbutton.h + kcolorbutton.h + kcolorbutton.h + Index: kicker/taskbar/taskbar.kcfg =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kicker/taskbar/taskbar.kcfg (wersja 633266) +++ kicker/taskbar/taskbar.kcfg (kopia robocza) @@ -149,5 +149,25 @@