0

I recently started using GTK4 with gtk-rs for an application I am creating. I don't like the way the default titlebar ever looks, and I want to remove it. I want to keep the other decorations, such as the edges of the window, the traffic-lights, etc, but I don't like the titlebar. I have my own ideas for a titlebar I want to implement. How do I remove this using gtk-rs with GTK4?

I have looked into using CSS, but none of that is making sense. Other GUI systems tend to have their own settings for the Window object, such as Electron and Tauri. I also tried looking into these settings, but couldn't find anything.

1 Answer 1

2

GtkWindow has a method set_titlebar() which you can call with either None or with your own custom titlebar widget.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.