Skip to content

Allow to not specify colors in DMenu.#326

Open
codybloemhard wants to merge 3 commits intosminez:developfrom
codybloemhard:develop
Open

Allow to not specify colors in DMenu.#326
codybloemhard wants to merge 3 commits intosminez:developfrom
codybloemhard:develop

Conversation

@codybloemhard
Copy link
Copy Markdown
Contributor

Allow the user to not specify colours, thus using the default colours of DMenu without having to set them again in Penrose.

Changed all Color fields in DMenuConfig to Option<Color>.
This is a breaking change.

I can make it so that it is not a breaking change but the code will be less idiomatic.
It can be done by leaving the fields as type Color and instead of checking for Some(color), check if the alpha bits in the colour are not set to 0 before adding the colour flags to DMenu.

If you want it like that and not how I did it currently, I'll update it.

The tests have been altered and added to in order to test the new behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant