Allow to disable separator in Digital clock one-line mode

I just updated plasma to 6.2.90 and the separator between date and time appeared in the digital clock widget. Looks like there’s no way to disable it, which is unfortunate because it adds visual clutter for me and makes it harder to see the date at a quick glance.

I would highly appreciate if there was an option to disable it, or maybe there is one which I was unable to find?

3 Likes

There’s no user-facing way to disable it, sorry.

Just thinking out loud here:

We could remove it from the custom date format, so users can type in their own separator (or none).

3 Likes

Hmm, interesting idea.

Using custom date you can already not include it. I have two lines on the panel and one line just above Condensed Weather on the desktop like below.

ddMMyyy Hours:Minutes:Seconds

if you go into edit mode, is there a blue highlighted padding associated with the whole area near and around the digital clock and system tray?

it looks like a thicker version of the blue highlight everywhere else around the panel when you are in edit mode.

you can just drag the margins separator out of the panel and both the system tray and digital clock will grow to fill the new space.

@skyfishgoo I think you missunderstand. It is not about margin ses
separator between widget, it is a new marker inside clock widget (specific to the clock and harcoded)

@kalinochkind @akselmo I had the same problem as OP and what I did is copy the clock widget from /usr/share/plasma/plasmaoids/org.kde.plasma.digitalclock to ~/.local/share/plasma/plasmaoids/.
I then modify the name and Id of the widget in the metada.json and modify the separator bar.
We can remove it then or reduce it, I modify it to make it look more like a dot (wich suit me).

apologies for the misunderstanding.

do you have a screenshot of what you are describing?

perhaps there is a hack of

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

that could do what you want.

Yes I was writing about that. It depends on youre version of plasma. I have it on a system with kde/plasma 6.3 dev (but not on my 6.2 version).

Edit:
@kalinochkind You can modify the separator (or remove it) by copy the widget (and maybe rename it) and look into the qml files.
The separator bar is in /home/$USER/.local/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui
you can search for separator

Rectangle {
id: separator

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

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

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

visible: isOneLineMode
}

myself I modify height and width like this (to have a dot of sort)

height: timeLabel.height * 0.2
width: timeLabel.height / 8

You could also make it like a dash with a little more work

@ngraham @akselmo But yes removing it could permit to choose other separator like ASCII bullet or utf8 stuff. don’t know why the choice for a hardcoded drawn line (quite opinionated), appart that then you can control the size of the bar to make it thin and 0.8 of panel heigt. Also you can have a straight vertical line even with italic font.

I also have a question about the org.kde.plasma.digitalclock files: it is better to rename/chang Id of the widget so not to have confilct ?

1 Like

Found this quite jarring after being upgraded to Plasma 6.3 on Fedora. For me, I keep multiple clock instances in my bar (my timezone and the timezones of my colleagues), but only want one to have a date.

image

from my plasma5 notes (might be a “6” now).

#to copy the settings for the clock plasmoid manually from /user to ~/.local use
kpackagetool5 --install /usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/

then if you want to revert back to the default, just delete your copy.

the disadvantage is if there is an update to the .qml you will not see it because your local file takes precedence , so i just modify the original and when my mods stop working, i know the .qml was updated and i need to reapply my mods.

Yeah, it’s not the prettiest and quite distracting if you don’t use a leading 0 in your clock. |0:32 looks like 10:32.

For anyone looking for a temporary solution that removes both the separator and the extra spacing it adds:

  1. Copy the plasmoid to your home directory
    cp -r /usr/share/plasma/plasmoids/org.kde.plasma.digitalclock ~/.local/share/plasma/plasmoids/
  2. Open it in in a text editor
  3. Delete this entire section
Rectangle {
id: separator

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

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

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

visible: isOneLineMode
}

4.Go to line 252 and change 2 to 1 at the end of the string
width: dateLabel.width + labelsGrid.width + timeMetrics.advanceWidth(" ") * 2

This should revert the clock to how it was before.
I also like to edit ~/.local/share/plasma/plasmoids/org.kde.plasma.digitalclock/metadata.json and change the name of the widget so I know I’m using the modified one.

Just for folks’ reference here, the relevant KDE Bugtracking System issues that were filed are:

I missed this thread and started a redundant one, sorry.

Yes, another voice for an option to disable this separator, please. It is jarring, there is no need for it and it wasn’t there until I updated to Plasma 6.3.

Thank you.

So this was fixed? Status says RESOLVED FIXED. But it’s still there in 6.3.3. It’s really ugly. I had to switch to “below time” for now. Do I have to remove, add again and reconfigure the widget? Thanks.

The first report - the bug that the separator persisted after unchecking “Show date” - is in Resolved/Fixed status, and shows the Version Fixed In as Plasma 6.3.1.

The second one - the feature request to be able to disable the separator when the date is shown - is in “Confirmed” status, so it’s waiting on someone to implement it :slight_smile:

1 Like

Ah, thank you, missed that!

That someone is me. The code is running here on my system, I just have to learn about how KDE does collaboration so I can share it. I’ve been held up a little as a prior engagement was pushed forward, but I’m on it.

Apologies for the delay.

2 Likes

No worries and thank you!

I didn’t know you had anything cooking on that, I had just meant the generic “someone” - that’s awesome!

Apologies if it’s redundant, but when I submitted my own groundbreaking code change for Kate a few months back, this page was really helpful for me: Infrastructure/GitLab - KDE Community Wiki

3 Likes