[pim/korganizer] /: Month View: allow configuring a custom color for today's date cell.

Allen Winter null at kde.org
Tue Jan 20 13:10:04 GMT 2026


Git commit 08428ff2899e0e3df04436460682ebaaa0e867fc by Allen Winter.
Committed on 20/01/2026 at 12:47.
Pushed by winterz into branch 'master'.

Month View: allow configuring a custom color for today's date cell.

BUG: 92612
FIXED-IN: 6.7.0

M  +1    -1    CMakeLists.txt
M  +6    -0    doc/index.docbook
M  +10   -3    src/prefs/koprefsdialogcolorsandfonts.cpp
M  +6    -0    src/settings/korganizer.kcfg
M  +2    -0    src/whatsnew/whatsnewtranslations.cpp

https://invent.kde.org/pim/korganizer/-/commit/08428ff2899e0e3df04436460682ebaaa0e867fc

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c440a080a..4f3f2e196 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -127,7 +127,7 @@ set(PIMCOMMON_LIB_VERSION "6.6.40")
 set(LIBKDEPIM_LIB_VERSION "6.6.40")
 set(LIBINCIDENCEEDITOR_LIB_VERSION "6.6.40")
 set(CALENDARSUPPORT_LIB_VERSION "6.6.40")
-set(EVENTVIEW_LIB_VERSION "6.6.41")
+set(EVENTVIEW_LIB_VERSION "6.6.43")
 
 # Find KF6 package
 find_package(KF6I18n ${KF_MIN_VERSION} CONFIG REQUIRED)
diff --git a/doc/index.docbook b/doc/index.docbook
index c6af4dad2..f223b6832 100644
--- a/doc/index.docbook
+++ b/doc/index.docbook
@@ -2397,6 +2397,12 @@ allowing you to select the to-do due today color.</para></listitem>
 allowing you to select the to-do overdue color.</para></listitem>
 </varlistentry>
 
+<varlistentry>
+  <term><guilabel>Month view today background color</guilabel></term>
+  <listitem><para>This button opens the <guilabel>Select Color</guilabel> dialog,
+      allowing you to select the background color for today's date in Month view.</para></listitem>
+</varlistentry>
+
 <varlistentry>
 <term><guilabel>Tags</guilabel></term>
 <listitem><para>This group allows you to assign a color to each tag. Select
diff --git a/src/prefs/koprefsdialogcolorsandfonts.cpp b/src/prefs/koprefsdialogcolorsandfonts.cpp
index e5ddecccf..91bcbf7ad 100644
--- a/src/prefs/koprefsdialogcolorsandfonts.cpp
+++ b/src/prefs/koprefsdialogcolorsandfonts.cpp
@@ -89,9 +89,16 @@ KOPrefsDialogColorsAndFonts::KOPrefsDialogColorsAndFonts(QObject *parent, const
     colorLayout->addWidget(todoOverdueColor->label(), 8, 0);
     colorLayout->addWidget(todoOverdueColor->button(), 8, 1);
 
+    // Monthview Today Color
+    Korganizer::KPrefsWidColor *monthTodayColor = addWidColor(KOPrefs::instance()->monthTodayColorItem(), colorFrame);
+    monthTodayColor->label()->setToolTip(monthTodayColor->button()->toolTip());
+    monthTodayColor->label()->setWhatsThis(monthTodayColor->button()->whatsThis());
+    colorLayout->addWidget(monthTodayColor->label(), 9, 0);
+    colorLayout->addWidget(monthTodayColor->button(), 9, 1);
+
     // categories colors
     auto categoryGroup = new QGroupBox(i18nc("@title:group", "Tags"), colorFrame);
-    colorLayout->addWidget(categoryGroup, 9, 0, 1, 2);
+    colorLayout->addWidget(categoryGroup, 10, 0, 1, 2);
 
     auto categoryLayout = new QGridLayout;
     categoryGroup->setLayout(categoryLayout);
@@ -121,7 +128,7 @@ KOPrefsDialogColorsAndFonts::KOPrefsDialogColorsAndFonts(QObject *parent, const
 
     // resources colors
     auto resourceGroup = new QGroupBox(i18nc("@title:group", "Resources"), colorFrame);
-    colorLayout->addWidget(resourceGroup, 10, 0, 1, 2);
+    colorLayout->addWidget(resourceGroup, 11, 0, 1, 2);
 
     QBoxLayout *resourceLayout = new QHBoxLayout;
     resourceGroup->setLayout(resourceLayout);
@@ -144,7 +151,7 @@ KOPrefsDialogColorsAndFonts::KOPrefsDialogColorsAndFonts(QObject *parent, const
     connect(mResourceButton, &KColorButton::changed, this, &KOPrefsDialogColorsAndFonts::setResourceColor);
     resourceLayout->addWidget(mResourceButton);
 
-    colorLayout->setRowStretch(11, 1);
+    colorLayout->setRowStretch(12, 1);
 
     auto fontFrame = new QWidget(widget());
     tabWidget->addTab(fontFrame, QIcon::fromTheme(QStringLiteral("preferences-desktop-font")), i18nc("@title:tab", "Fonts"));
diff --git a/src/settings/korganizer.kcfg b/src/settings/korganizer.kcfg
index b42be8eb1..75f8cfa26 100644
--- a/src/settings/korganizer.kcfg
+++ b/src/settings/korganizer.kcfg
@@ -319,6 +319,12 @@
       <whatsthis>Select the to-do overdue color here.</whatsthis>
       <default>255, 100, 100</default>
     </entry>
+    <entry type="Color" key="Month Today Color" name="MonthTodayColor">
+      <label>Month view today background color</label>
+      <tooltip>Set the background color for today's date in month view</tooltip>
+      <whatsthis>In Month View, select the background color for today's date.</whatsthis>
+      <default>221, 251, 232</default>
+    </entry>
   </group>
   <!-- Colors and Fonts Page: Fonts Tab -->
   <group name="Fonts">
diff --git a/src/whatsnew/whatsnewtranslations.cpp b/src/whatsnew/whatsnewtranslations.cpp
index cc05c4add..1212d74d4 100644
--- a/src/whatsnew/whatsnewtranslations.cpp
+++ b/src/whatsnew/whatsnewtranslations.cpp
@@ -20,6 +20,8 @@ QList<KLazyLocalizedString> WhatsNewTranslations::lastNewFeatures() const
         kli18n("Month view: no longer display the month year header to save vertical space and remove redundancy"),
         kli18n("Month view: use a slightly different color for drawing the day headers for days outside of the currently selected month"),
         kli18n("Month view: the navigation controls on the lower right side are removed in favor of the improved application navigator bar"),
+        kli18n("Month view: the background color for today's date cell can be changed. To configure the color,  set the \"Month view today background color\""
+               " in the Colors and Fonts settings"),
         kli18n("Navigator bar: improved by adding week scrolling and showing/hiding the sidebar on a per-view basis"),
         kli18n("Navigator bar: added a button to scroll the view to the current date"),
     };


More information about the kde-doc-english mailing list