ubuntu-flutter-community / settings

:penguin: :orange_heart: :blue_heart: An Ubuntu Desktop system settings app made with Flutter.
GNU General Public License v3.0
273 stars 48 forks source link

Use gtk_window to replace native headerBar #418

Closed YoussefLasheen closed 1 year ago

YoussefLasheen commented 1 year ago
Before After
Screenshot from 2022-12-11 23-24-42 Screenshot from 2022-12-11 23-17-16
Screenshot from 2022-12-11 23-20-26 Screenshot from 2022-12-11 23-17-08
Screenshot from 2022-12-11 23-20-33 Screenshot from 2022-12-11 23-17-02

gtk_appbar is a flutter "fake" appbar that works as a drop in replacement for the Material AppBar. It will allow us to add flutter widgets like these examples from the official app. Screenshot from 2022-12-11 23-35-02 Screenshot from 2022-12-11 23-34-30 It just feels right to have full control over the headerbar of your linux app and it allows you adopt styles like gtk4 without waiting for google to implement them.

mivoligo commented 1 year ago

I don't have any say in this project but personally I do not like to have app controls inside window decoration.

Feichtmeier commented 1 year ago

Pretty amazing @YoussefLasheen !

@jpnurmi is working on a very similar thing on yaru widgets via window manager

Maybe you two could combine your two approaches?

Jupi007 commented 1 year ago

That's very cool @YoussefLasheen !

@jpnurmi is working on a very similar thing on yaru widgets via window manager

Maybe you two could combine your two approaches?

I have the same opinion 👍

YoussefLasheen commented 1 year ago

Where can I find @jpnurmi 's approach?

jpnurmi commented 1 year ago

WIP:

We'll have the missing pieces in the next window_manager release.

YoussefLasheen commented 1 year ago

Looks great. I am not sure how I can help though. I think I will continue developing my package as it's already been published.

Feichtmeier commented 1 year ago

Hey @YoussefLasheen I feel kind of bad because you made such a big effort in creating your package. Thanks for your efforts and eventually you could contribute to yaru_widgets if features of your package are not in YaruWindowTitlebar grafik

See you on discord :smile_cat: