-
Notifications
You must be signed in to change notification settings - Fork 6
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
Request: User selectable button colors #26
Comments
Here's a WIP patch. If it works, we might be able to consider some variant of it. The main thing that could use attention is the line width of the minimize and maximize buttons don't always match the close button, apparently because close uses diagonal lines while the others use straight ones. |
This patch adds the three options you requested. Apply it with |
This is because I made the patch against the |
I've found an issue with that patch, and it's not visual but in performance. There's a significant lag and "choppiness " while resizing windows. The master branch build is perfectly smooth when resizing windows. |
Thanks for the report. I think it's due to the added |
This version should fix that particular issue. This wayfire pull request might interest you as well. |
Can confirm the latest patch fixed that resizing lag. It is as smooth as the master branch. Thanks again! |
Maybe the disconnect between the button line widths isn't such a sin, I'll consider adding the patch. I almost think we should render the buttons with GL directly instead of cairo, but this would require further developments. |
Is this patch available somewhere still? I don't see it anywhere in the repo, and the termbin links no longer exist. |
Hi, I have updated the temporary link. For what it's worth, pixdecor patches are being held up by the fact that wayfire track-wlroots branch is still not merged. Please ping @ammen99 for more information. |
You can submit a PR at any time to the master branch, but I'm not pushing anything to the master branch until track-wlroots-0.18 is merged, which depends on wayfire track-wlroots branch being merged. I don't want to push anything to track-wlroots-0.18 pixdecor branch that is unrelated to tracking wlroots. So there's a chance you might have to rebase the PR in the future. The other option is to wait, as you said. This might make more sense. |
Well here's a patch containing my changes for now. Been using it all day and haven't ran into any issues, except for: |
The dynamic changing is probably related to an optimization, where the title is only updated when key properties are changed. See i.e. https://github.com/soreau/pixdecor/blob/master/src/deco-subsurface.cpp#L66-L70 I'm not sure about the 'weird' titlebar rendering if font size is small or large, though I haven't tested your changes nor looked into them in any depth. Another thing is, pixdecor prefers wayfire settings to gsettings but for this particular case, I think it might make sense, because the setting is presumably integrated with gtk. And since you have the patch, please go ahead and make a PR against master so we don't forget about it. 👍 |
This allows buttons to be a png image or different color, along with spacing and line thickness options. Fixes #26.
This allows buttons to be a png image or different color, along with spacing and line thickness options. Fixes #26.
With the default (black) color and dark theme buttons are almost invisible. I modified deco-theme.cpp line 210 to draw the the lines in white and looks great for now, almost matching my GTK Adwaita-Dark. It would be awesome for users to be able to assign the color in wayfire.ini (other useful options: width of a stroke and space between icons).
The text was updated successfully, but these errors were encountered: