The agenda view in the right panel of the "Calendar" sub-app presents a grid. The configuration of Korganizer offers many appreciated color settings except the color of the grid.
When, like in my case, one wants to integrate that view in a (very) dark theme and sets a very dark background for the agenda view, the grid then becomes hardly visible to invisible since it seems to be forced black. It would be nice to be able to set a clearer color.
I confirm it.
just to be clear I understand this request.
You are asking that the Korganizer configuration dialog=>Colors and Fonts should offer a setting for "Agenda view grid color"
(In reply to Allen Winter from comment #2)
> just to be clear I understand this request.
> You are asking that the Korganizer configuration dialog=>Colors and Fonts
> should offer a setting for "Agenda view grid color"
Yes, that would be great as a first step.
Something I would even appreciate more: having a single theme applied to both "month" and "agenda" views (currently, "month" view seems to have an hard-coded theme that cannot be modified) and have a "grid color" setting (and all the other colors) applied to all the calendar views, not only the agenda one.
A possible fix is for review at https://phabricator.kde.org/D24991
this patch is only for grid color. managing themes is a much bigger effort that won't be addressed in this bug report.
(In reply to Allen Winter from comment #4)
> A possible fix is for review at https://phabricator.kde.org/D24991
> this patch is only for grid color. managing themes is a much bigger effort
> that won't be addressed in this bug report.
I am not familiar with phabricator (and did not manage to get an account) nor with KDE code and strategy, but if the variables names are not misleading, I believe what I saw when following your link will not be satisfying for three reasons:
- the variables hourPen and halfHourPen seem to be assigned a value only if the window's text is dark (which is not the case in a dark theme, where the text is usually clear);
- the hue seems to be taken from somewhere else, probably the windows text, and is not customisable. More and more dark themes use quite saturated colours for the text (usually blue-less or "easy on the eyes"), and their users does not necessarily want that hue to be the agenda grid's hue (in my particular case the hue taken from the text would be fine, though);
- the colour does not depend any more on the colour scheme being or not the system's one (anyway, in the GUI, it is not possible to use the system's colour scheme for the agenda view, but at least there was some preparation to that future feature in the former code).
I hope this helps a little bit.
Git commit e031408f12dadff675a92a06eb9449a52e78d124 by Allen Winter.
Committed on 11/11/2019 at 16:25.
Pushed by winterz into branch 'release/19.12'.
agenda/agenda.cpp - grid colors when not using system settings
this addresses https://bugs.kde.org/show_bug.cgi?id=411608
which refers to a much older KOrganizer version 5.9.2.
Newer KOrganizer handles grid color (computed from the
windowtext) just fine when using system settings; but,
not when using customer background colors. With this
patch we fix that.
The bug report requested a custom configuration for the
grid color. The UX team doesn't want that and requested
to remove the ability for custom colors completely.
That's a different thread and a different fight.
Differential Revision: https://phabricator.kde.org/D411608
M +10 -13 src/agenda/agenda.cpp