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

Different colors for container states. #51

Open
aspizu opened this issue Oct 5, 2023 · 1 comment
Open

Different colors for container states. #51

aspizu opened this issue Oct 5, 2023 · 1 comment

Comments

@aspizu
Copy link

aspizu commented Oct 5, 2023

Allow setting different color styles for the container states above, below and sticky.

I'm trying to implement this, i've added the configuration option and styles but containers are not redrawn when the state changes. it does get redrawn when i move or resize the container. also the titlebar doesn't have the new style but the border does. and the container buttons don't have styles when pressing them.

@aspizu
Copy link
Author

aspizu commented Oct 5, 2023

	if (menu != NULL) {
		if (ev->window == menu->titlebar && ev->button == Button1) {
			mousemove(menu->titlebar, FLOAT_MENU, menu, ev->x_root, ev->y_root, 1);
		} else if (ev->window == menu->button && ev->button == Button1) {
			buttonrightdecorate(menu->button, menu->pixbutton, FOCUSED, 1);
		} else if (isvalidstate(ev->state) && ev->button == Button1) {
			mousemove(None, FLOAT_MENU, menu, ev->x_root, ev->y_root, 0);
		} else if (ev->window == menu->frame && ev->button == Button3) {

so it seems like we cannot get the style from here

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

No branches or pull requests

1 participant