Skip to content

[Feature Request] Wallpapers: Adding separate paths for light and dark themes and dynamically changes with current windows theme color #877

@Louis047

Description

@Louis047

What is the request?

A feature addition for wallpapers widget where the user can add separate paths for both light theme and dark theme, which also dynamically changes with the current os theme color.

Why is it useful?

This is useful as not only does it enable users to organize their wallpapers but also adapt it to the os theme as well.

How could it be implemented?

can be implemented like this:

wallpapers:
    type: "yasb.wallpapers.WallpapersWidget"
    options:
      label: "<span>\udb83\ude09</span>"
      path: str # This lets user to choose either to use dynamic paths (`dark`/`light`) based on the os theme color with "dynamic" or use "normal" image path
      image_path:
        dark: "$env:USERPROFILE/Pictures/Wallpapers/Home Screen/Dark"
        light: "$env:USERPROFILE/Pictures/Wallpapers/Home Screen/Light"
        normal: "$env:USERPROFILE/Pictures/Wallpapers/Home Screen"
      ...

Then gallery fetches then automatically based on the path provided. then the wallpaper changes on the event of theme color toggle.

Additional context

Nothing much, everything is explained above. Hope this possible to implement and taken into consideration for the upcoming major release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new functionality or an enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions