https://bugs.kde.org/show_bug.cgi?id=519981

            Bug ID: 519981
           Summary: Hunyango wallpaper does not update accentColor as its
                    color cycles, leaving "Accent color from wallpaper"
                    stale
    Classification: Plasma
           Product: plasmashell
      Version First 6.6.4
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: Hunyango wallpaper
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: 1.0

The Hunyango wallpaper plugin (kdeplasma-addons → wallpapers/hunyango)          
  animates a background Rectangle through a continuous loop of randomly         
  generated HSL colors via ColorProvider.qml (a 30s color animation             
  followed by ScriptAction triggering the next color, repeating forever).       

  When the user enables Settings > Colors and Themes > Colors >                 
  "Accent color from wallpaper", the accent color is computed once              
  (presumably from the SVG / initial state) and never updates as                
  Hunyango cycles. Result: the accent stays frozen at one color while           
  the visible wallpaper background continuously changes through the             
  full hue spectrum, creating obvious mismatch between the wallpaper            
  and the rest of the UI tinting.                                               

  Inspecting the source confirms the cause:                                     

    /usr/share/plasma/wallpapers/org.kde.hunyango/contents/ui/main.qml          
    /usr/share/plasma/wallpapers/org.kde.hunyango/contents/ui/ColorProvider.qml

  Hunyango never assigns to wallpaperInterface.accentColor. By contrast,        
  the org.kde.image wallpaper does so explicitly in                             
  ImageStackView.qml:117-120 (`wallpaperInterface.accentColor =
mediaProxy.customColor`),                                                       
  which is why "Accent color from wallpaper" works for static images.           

  Bug 487572 ("Accent color from wallpaper doesn't sync with new                
  Picture of the Day", RESOLVED FIXED in 6.4) addressed the same                
  class of issue specifically for the POTD plugin. The same fix                 
  pattern needs to be applied to Hunyango.                                      

  Steps to reproduce                                                            
  ------------------                                                            
  1. System Settings > Colors and Themes > Colors > set "Accent color
     from wallpaper".                                                           
  2. System Settings > Wallpaper > select "Hunyango".
  3. Apply, observe initial accent color (e.g. taskbar highlights, focus        
     rings, switches).                                                          
  4. Wait 30 seconds — the wallpaper background visibly transitions
     to a new random hue.                                                       
  5. Observe accent color: unchanged.                                           
  6. Wait several minutes — wallpaper has cycled through many hues,             
     accent still unchanged.                                                    

  Actual result                                                                 
  -------------                                                                 
  Accent color is computed once at wallpaper load and never updates,
  even though the visible background is continuously changing.                  

  Expected result                                                               
  ---------------                                                               
  Accent color tracks the current wallpaper background color (or a
  derived value from it), updating as Hunyango cycles. A small lag
  is acceptable; complete absence of updates is not.                            

  Suggested fix                                                                 
  -------------                                                                 
  In wallpapers/hunyango/contents/ui/main.qml, expose the current
  ColorProvider.color to the wallpaper interface, e.g.:                         

      Connections {                                                             
          target: ColorProvider                                                 
          function onColorChanged() {                                           
              wallpaperInterface.accentColor = ColorProvider.color
          }                                                                     
      }                                                  

  (Or equivalent on the Rectangle, or by binding                                
  `wallpaperInterface.accentColor: ColorProvider.color` directly.)

  Note: the Haenau wallpaper has the same issue (no accentColor                 
  assignment), though there it is less visible because the visible              
  color is more constant. Worth fixing both in the same MR.                     

  System                                                                        
  ------                                                 
  - kdeplasma-addons:    6.6.4
  - plasma-workspace:    6.6.4                                                  
  - plasma-desktop:      6.6.4
  - KDE Frameworks:      6.26.0                                                 
  - Qt:                  6.11.0                                                 
  - Kernel:              7.0.4 (xanmod1)
  - Distribution:        Arch Linux (rolling) — using CachyOS x86_64-v3         
                         repositories prepended over upstream Arch repos.       
                         This is *not* a CachyOS-installed system.              
  - Wayland session, Plasma autologin via SDDM 0.21.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to