<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>511973</bug_id>
          
          <creation_ts>2025-11-11 22:53:05 +0000</creation_ts>
          <short_desc>Plasma Automatic Theme Switching from Day to Night is Too Late</short_desc>
          <delta_ts>2026-06-17 14:16:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Day/night schedule</component>
          <version>6.5.1</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wyatt Childers">kdebugs.81do7</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>agurenko</cc>
    
    <cc>chris-hartmann</cc>
    
    <cc>giovannisantini93</cc>
    
    <cc>hoffmann_lorenz</cc>
    
    <cc>ic</cc>
    
    <cc>ilikefoss</cc>
    
    <cc>jared</cc>
    
    <cc>kde</cc>
    
    <cc>kdedev</cc>
    
    <cc>lukasz</cc>
    
    <cc>m2t9gkr7t</cc>
    
    <cc>mikhailkrt</cc>
    
    <cc>miranda</cc>
    
    <cc>nate</cc>
    
    <cc>realityrecall+kde</cc>
    
    <cc>vlad.zahorodnii</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-workspace/-/commit/4c4f4402e67cb982357bedb84c398e9371953139</cf_commitlink>
          <cf_versionfixedin>6.7.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2469671</commentid>
    <comment_count>0</comment_count>
    <who name="Wyatt Childers">kdebugs.81do7</who>
    <bug_when>2025-11-11 22:53:05 +0000</bug_when>
    <thetext>SUMMARY
The current way that the day/night cycle is implemented is a bit too slow. What I mean by that is that, it waits until sundown is complete rather than starting when sundown starts (or going somewhere in the middle).

STEPS TO REPRODUCE
1. Set Plasma to use an automatic day/night theme
2. Adjust the day/night cycle to your lat/log coordinates
3. Wait until evening

OBSERVED RESULT
- Plasma waits until the sun is completely set before switching themes.
- In the day/night cycle settings Plasma displays the time for the start of sunset (which is not the time it switches to the night theme).

EXPECTED RESULT
- Plasma waits until about half way through sunset to switch themes.
- In the day/night cycle settings Plasma displays the time it is going to switch themes.


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 43
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.7-300.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X 16-Core Processor
Memory: 64 GiB of RAM (61.9 GiB usable)
Graphics Processor 1: AMD Radeon RX 7900 XTX
Graphics Processor 2: AMD Ryzen 9 7950X 16-Core Processor
Manufacturer: ASUS

ADDITIONAL INFORMATION
This could potentially be resolved by adding options like &quot;start at sunset, start after sunset, start X minutes before sunset.&quot; However, projecting my own use case ... I want the dark theme to be enabled so that Plasma isn&apos;t so hard on my eyes at night and so that it&apos;s easy to read in the daylight. So, about half way through sunrise and sunset seems like a more reasonable position to take.

My room was effectively near complete darkness even though the sun hadn&apos;t fully set and plasma (plus all of my apps waiting on the hint from Plasma) were still a very bright white.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2472006</commentid>
    <comment_count>1</comment_count>
    <who name="Jeffrey Bouter">kde</who>
    <bug_when>2025-11-21 20:50:48 +0000</bug_when>
    <thetext>I would like the default behavior to change as well, or at least to be able to change the behavior. I&apos;d personally like the dark mode to kick in as soon as Night Light kicks in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2473029</commentid>
    <comment_count>2</comment_count>
    <who name="TraceyC">kdedev</who>
    <bug_when>2025-11-26 23:14:57 +0000</bug_when>
    <thetext>This seems worth considering. I&apos;m pretty sure this is behaving &quot;as designed&quot;, so I&apos;m categorizing this as wishlist (feature request).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2473491</commentid>
    <comment_count>3</comment_count>
    <who name="John">ilikefoss</who>
    <bug_when>2025-11-29 13:56:21 +0000</bug_when>
    <thetext>I noticed this problem too as was getting darker and darker outside and and the switch was still not happening.
From what I noticed over a few days, I think it was about 30 minutes too late.
I manually changed it to happen sooner, but it would be great if the automatic switch would be tweak a bit based on all our reports from all over the world until is good enough for everyone or most of the people.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2473748</commentid>
    <comment_count>4</comment_count>
    <who name="Wyatt Childers">kdebugs.81do7</who>
    <bug_when>2025-11-30 22:28:01 +0000</bug_when>
    <thetext>(In reply to John from comment #3)
&gt; I noticed this problem too as was getting darker and darker outside and and
&gt; the switch was still not happening.
&gt; From what I noticed over a few days, I think it was about 30 minutes too
&gt; late.
&gt; I manually changed it to happen sooner, but it would be great if the
&gt; automatic switch would be tweak a bit based on all our reports from all over
&gt; the world until is good enough for everyone or most of the people.

Yeah, that&apos;s basically what happened to me. For now I just changed my coordinates to manual and moved them an hour or so east to get it to trigger closer to when I need it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2473750</commentid>
    <comment_count>5</comment_count>
    <who name="John">ilikefoss</who>
    <bug_when>2025-11-30 22:49:19 +0000</bug_when>
    <thetext>(In reply to Wyatt Childers from comment #4)
&gt; (In reply to John from comment #3)
&gt; &gt; I noticed this problem too as was getting darker and darker outside and and
&gt; &gt; the switch was still not happening.
&gt; &gt; From what I noticed over a few days, I think it was about 30 minutes too
&gt; &gt; late.
&gt; &gt; I manually changed it to happen sooner, but it would be great if the
&gt; &gt; automatic switch would be tweak a bit based on all our reports from all over
&gt; &gt; the world until is good enough for everyone or most of the people.
&gt; 
&gt; Yeah, that&apos;s basically what happened to me. For now I just changed my
&gt; coordinates to manual and moved them an hour or so east to get it to trigger
&gt; closer to when I need it.

I don&apos;t remember how I did it, but what you did seems familiar and I thing I did the same, with blindly moving a bit east.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2475010</commentid>
    <comment_count>6</comment_count>
    <who name="">mikhailkrt</who>
    <bug_when>2025-12-07 16:55:19 +0000</bug_when>
    <thetext>It would be nice also to unbind the night light from the cycle. Right now, in the settings -&gt; &quot;Display &amp; Monitor&quot; -&gt; &quot;Night Light&quot;, it is not possible to manually adjust the time borders of the night light as before, there are &quot;Always off&quot;, &quot;Always on night light&quot;, &quot;Sunrise and sunset&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2475032</commentid>
    <comment_count>7</comment_count>
    <who name="TraceyC">kdedev</who>
    <bug_when>2025-12-07 20:06:18 +0000</bug_when>
    <thetext>I&apos;m curious why this was closed as not a bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2475037</commentid>
    <comment_count>8</comment_count>
    <who name="Wyatt Childers">kdebugs.81do7</who>
    <bug_when>2025-12-07 20:37:52 +0000</bug_when>
    <thetext>(In reply to TraceyC from comment #7)
&gt; I&apos;m curious why this was closed as not a bug?

Looking at the emails it was an accident from mikhailkrt; changing it back to confirmed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2475175</commentid>
    <comment_count>9</comment_count>
    <who name="ic35734">ic</who>
    <bug_when>2025-12-08 16:05:28 +0000</bug_when>
    <thetext>I support this, it has also been bothering me that the day/night theme switching is too late.

Configuring the day/night cycle based on manual geographic location works perfectly for Night Light, it gets the start and end times of sunrise and sunset perfectly, and automatically adjusts them throughout the year.

But the theme switching is not right - it switches from the light theme to the dark theme at the exact time when Night Light&apos;s transition finishes, so at the &quot;end&quot; time of sunset. For me, at this time, for at least half an hour it has already been too dark outside for light mode to be comfortable without switching on all of the artificial light sources.

I think it would be much more ideal for the KDE Desktop to switch the light theme to the dark theme at the beginning of sunset, at the time when the Night Light transition first starts. I think that&apos;s exactly how Apple&apos;s iOS on the iPhone behaves with its automatic light/dark mode switching in the &quot;Sunset to Sunrise&quot; setting. It switches at the beginning of sunset.

I hope this will be resolved soon. KDE&apos;s automatic light/dark theme switching was a feature that I have been looking forward to for many months, but this issue just makes it uncomfortable to use.
Thank you and best regards</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2479704</commentid>
    <comment_count>10</comment_count>
    <who name="ic35734">ic</who>
    <bug_when>2025-12-26 15:09:44 +0000</bug_when>
    <thetext>Regarding my previous comment - my bad - it seems that iOS doesn&apos;t switch to the dark mode at the beginning of sunset, but right in the middle, between the beginning and end of sunset. I have no idea how it&apos;s handled by other GUI operating systems / desktop environments that have such a feature, but it&apos;s probably worth looking into it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2496188</commentid>
    <comment_count>11</comment_count>
    <who name="Gurenko Alex">agurenko</who>
    <bug_when>2026-02-19 12:26:18 +0000</bug_when>
    <thetext>*** Bug 515558 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2521145</commentid>
    <comment_count>12</comment_count>
    <who name="Giovanni Santini">giovannisantini93</who>
    <bug_when>2026-06-06 20:11:21 +0000</bug_when>
    <thetext>Hi, I would like to know if progress is happening regarding this and otherwise if/how to contribute.

Since I live in Northern Europe, during summers and winters the delay in switching becomes very wide and frustrating to work with.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2521428</commentid>
    <comment_count>13</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2026-06-08 10:55:41 +0000</bug_when>
    <thetext>&gt; Plasma waits until the sun is completely set before switching themes

Yeah, currently, transition times are synchronized to sunrise and civil dawn.

&gt; Plasma waits until about half way through sunset to switch themes.

We can give it a try.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2521436</commentid>
    <comment_count>14</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-06-08 11:27:25 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6697</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2521523</commentid>
    <comment_count>15</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2026-06-08 16:27:32 +0000</bug_when>
    <thetext>Git commit 4eb568e99c0d5295437426ad890329ee1648f22e by Vlad Zahorodnii.
Committed on 08/06/2026 at 15:02.
Pushed by vladz into branch &apos;master&apos;.

kcms/lookandfeel: Switch themes between civil dawn - sunrise and sunset - civil dusk

The global theme autoswitcher schedules the transition either at sunrise
or civil dusk, depending on time. One can argue that it&apos;s too late.

As a big of a compromise, this change makes the global theme transition
occur halfway between civil dawn and sunrise or sunset and civil dusk.

M  +17   -15   kcms/lookandfeel/kded/lookandfeelautoswitcher.cpp
M  +1    -2    kcms/lookandfeel/kded/lookandfeelautoswitcher.h

https://invent.kde.org/plasma/plasma-workspace/-/commit/4eb568e99c0d5295437426ad890329ee1648f22e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2521555</commentid>
    <comment_count>16</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2026-06-08 18:51:19 +0000</bug_when>
    <thetext>Git commit 4c4f4402e67cb982357bedb84c398e9371953139 by Vlad Zahorodnii.
Committed on 08/06/2026 at 16:30.
Pushed by vladz into branch &apos;Plasma/6.7&apos;.

kcms/lookandfeel: Switch themes between civil dawn - sunrise and sunset - civil dusk

The global theme autoswitcher schedules the transition either at sunrise
or civil dusk, depending on time. One can argue that it&apos;s too late.

As a big of a compromise, this change makes the global theme transition
occur halfway between civil dawn and sunrise or sunset and civil dusk.


(cherry picked from commit 4eb568e99c0d5295437426ad890329ee1648f22e)

Co-authored-by: Vlad Zahorodnii &lt;vlad.zahorodnii@kde.org&gt;

M  +17   -15   kcms/lookandfeel/kded/lookandfeelautoswitcher.cpp
M  +1    -2    kcms/lookandfeel/kded/lookandfeelautoswitcher.h

https://invent.kde.org/plasma/plasma-workspace/-/commit/4c4f4402e67cb982357bedb84c398e9371953139</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2523681</commentid>
    <comment_count>17</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-06-17 05:51:33 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6765</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2523808</commentid>
    <comment_count>18</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2026-06-17 13:16:09 +0000</bug_when>
    <thetext>Git commit 34cfbd588925922edcdf31bf32215d119e9b897b by Vlad Zahorodnii.
Committed on 17/06/2026 at 05:50.
Pushed by vladz into branch &apos;master&apos;.

startplasma: Tweak the time when global themes are switched

Amends 4eb568e99c0d5295437426ad890329ee1648f22e.

M  +8    -9    startkde/startplasma.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/34cfbd588925922edcdf31bf32215d119e9b897b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2523809</commentid>
    <comment_count>19</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-06-17 13:16:57 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6767</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2523848</commentid>
    <comment_count>20</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2026-06-17 14:16:52 +0000</bug_when>
    <thetext>Git commit f7b096ebf1e64adc7c3b7c0ff977baa0300cf1f1 by Vlad Zahorodnii.
Committed on 17/06/2026 at 13:16.
Pushed by vladz into branch &apos;Plasma/6.7&apos;.

startplasma: Tweak the time when global themes are switched

Amends 4eb568e99c0d5295437426ad890329ee1648f22e.


(cherry picked from commit 34cfbd588925922edcdf31bf32215d119e9b897b)

Co-authored-by: Vlad Zahorodnii &lt;vlad.zahorodnii@kde.org&gt;

M  +8    -9    startkde/startplasma.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/f7b096ebf1e64adc7c3b7c0ff977baa0300cf1f1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>