Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the possibility to customize each contextual menu separately #18

Closed
Nicryc opened this issue Aug 3, 2022 · 2 comments
Closed

Add the possibility to customize each contextual menu separately #18

Nicryc opened this issue Aug 3, 2022 · 2 comments
Labels
feature New feature or request

Comments

@Nicryc
Copy link

Nicryc commented Aug 3, 2022

It would be a could feature to be able to customize the different contextual menus separately.

For example I want to customize the contextual menu of the file explorer in a certain way and customize the contextual menu of the desktop in a different way, I also don't want to customize the contextual menu of the task bar and keep its default appearance.

I guess this is technically feasible since these contextual menus are already themed differently on vanilla Windows 10.

@moudey moudey added the feature New feature or request label Aug 4, 2022
@moudey
Copy link
Owner

moudey commented Aug 4, 2022

Hi @Nicryc,
This can be done in the following ways:

To customize the appearance by window use the following code:

default {

    //theme = [auto, dark, light, white, black, modern, modern_light, modern_dark, classic]

    // https://nilesoft.org/docs/functions/this
    theme = if(this.taskbar, theme.white, 
                        if(this.desktop, theme.black, theme.classic))
}

To customize the display of items by window:

dynamic {
    // by type
    item(title='item for taskbar only' type='taskbar')
    item(title='item for desktop only' type='desktop')
    item(title='item for file explorer only' type='~desktop|~taskbar')

    // or by where
    item(title='item for taskbar only' where=this.taskbar)
    item(title='item for desktop only' where=this.desktop)
    item(title='item for file explorer only' where=this.explorer)
}

@Nicryc
Copy link
Author

Nicryc commented Aug 5, 2022

Great! I guess I can close this then.

@Nicryc Nicryc closed this as completed Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants