A pipe (vertical line) character shows between date and time in the Digital Clock widget on the panel

In Plasma 6.3, there is a pipe character now between the date and the time in the Digital Clock widget on the panel if you set the date to show “always beside time”.

The pipe seems to be a part of the clock, not the date, and it’s not there initially when the widget is added and the date is shown “always below time”. Once the setting is set to “always beside time”, the pipe appears and stays there even if the date is hidden altogether.

It doesn’t matter what font or font type and size are selected nor does it depend on whether the time is displayed as 12h or 24h.

Screenie-2025-02-19-16.43.00
Screenie-2025-02-19-16.50.45

Thank you.

1 Like

Hi - for reference, the relevant KDE Bugtracking System issues that were filed are:

1 Like

Thank you, again :grinning: I hope it gets removed. It’s seemingly a tiny thing but very annoying.

1 Like

Thanks, I dont want to pollute the bug report, but Im so happy this is being looked into

Its a pretty sloppy regression (appreciate you werent responsible for it though).

I wonder if maybe the datetime widget should have seperate tickboxes for ‘show date’ and ‘show time’.
That way you could add two of them with different styles, or just use a single one with a custom format string

But maybe thats one for another day

seems it’s quite a simple fix.

Back up and then edit :

/usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml

on line 610 change visible to false :

    Rectangle {
        id: separator

        property bool isOneLineMode: main.state == "oneLineDate"

        height: timeLabel.height * 0.8
        width: 0 //timeLabel.height / 16
        radius: 0//width / 2
        color: Kirigami.Theme.textColor

        anchors.leftMargin: timeMetrics.advanceWidth("") + width / 2
        anchors.verticalCenter: parent.verticalCenter
        anchors.left: dateLabel.right

        visible: false
    }

then restart the shell

killall plasmashell; kstart6 plasmashell

There was also a " " space I had to take out on line 606, I changed some numbers in that function too, not sure if that had any effect.

have a fiddle, it’s a QML plasmoid, you can’t break anything

you could copy it to /home/fuh/.local/share/plasma/plasmoids and make your own fork but that’s too much work.

and don’t forget to back your tweaked file up, because it’ll get wiped out in the next update.

I’m about to submit a proper fix for this which will make it optional.

Turns out that when you fix the bug about the time digits on vertical panels, the time and the date become a blur, and you really want a separator.

1 Like

great. just a thought, but I noticed monospace fonts look bad due to too much spacing either side of the |

Thanks for bringing it to my attention. I’ve been so busy testing locales, that font spacing hadn’t occurred to me.

There’s some code in this widget which handles the sizing, and there’s a CR in the repo regarding fixing that up, so that might be the fix for what you’re describing. If not, I’ll make sure that it’s OK in whatever I submit.

2 Likes