mako icon indicating copy to clipboard operation
mako copied to clipboard

Add a titlebar

Open mendelmaleh opened this issue 4 years ago • 13 comments

I wanted mako to match the sway window aesthetics, so I added a titlebar. To enable it title-format needs to be set in the config. It will only render if that option is set and there is text to show, otherwise the notification will look like it used to before this.

mendelmaleh avatar Apr 06 '20 18:04 mendelmaleh

Force pushed because I fixed a bug in the first commit and rebased.

mendelmaleh avatar Apr 07 '20 04:04 mendelmaleh

Thanks for the patch! I'm wondering if this feature is worth the added complexity...

emersion avatar Apr 14 '20 09:04 emersion

Fixed up some quirks with border radius. I'm not aware of any other bugs, after using this for around a week and testing a bit. I do think this is worth it, it fits really well with sway, imo.

mendelmaleh avatar Apr 14 '20 11:04 mendelmaleh

Would there be a nice way to de-duplicate some of the rendering logic? format and title_format are pretty similar.

emersion avatar Apr 14 '20 11:04 emersion

I will try, but I'm very much a beginner at C. For the most part I avoided touching what I didn't need to xD

mendelmaleh avatar Apr 14 '20 11:04 mendelmaleh

Another edge case done, I will try now deduplicating the config.c.

mendelmaleh avatar Apr 14 '20 12:04 mendelmaleh

@emersion does this last commit look any good? It compiles and runs fine, but I really don't know much about styling, naming, etc. I didn't see a code style for the repo, so if there is a more general one I should be aware of do tell me, all resources are appreciated.

mendelmaleh avatar Apr 14 '20 14:04 mendelmaleh

@mendelmaleh Perhaps this will help regarding the styling: https://github.com/swaywm/sway/blob/master/CONTRIBUTING.md

ammgws avatar Jun 23 '20 11:06 ammgws

I'm on the fence wrt. this PR: I'm not sure we should add this extra functionality. I don't want to maintain software with too many features, and this opens the door to other UI elements like footer/sidebars/etc.

emersion avatar Sep 07 '20 10:09 emersion

I wonder, would it be sufficient to instead allow specifying a gradient with multiple stops that get passed straight to cairo? That would avoid adding (much) extra work on the mako side, and you can create a hard edge that appears to be a title bar if you wish.

vilhalmer avatar Sep 07 '20 12:09 vilhalmer

I think this is unnecessary. Now the PR has been open almost two years and there's been little interest in it.

markstos avatar Feb 24 '22 01:02 markstos

I feel like this merge request can be closed after 2 years of no activity as well. @emersion

NiciTheNici avatar Oct 24 '22 13:10 NiciTheNici

Probably safe to close this now?

noahhefner avatar Jun 19 '23 18:06 noahhefner