How to change site title, site header and index title in Django Admin?

As of Django 1.7 you don’t need to override templates. You can now implement site_header, site_title, and index_title attributes on a custom AdminSite in order to easily change the admin site’s page title and header text. Create an AdminSite subclass and hook your instance into your URLconf: admin.py: from django.contrib.admin import AdminSite from django.utils.translation import … Read more

How to remove title bar in JFrame

The title bar can be removed by calling setUndecorated(true) on the Frame or JFrame instance, i.e. by setting the “undecorated” property to true. This removes both the title bar and the surrounding frame. Here’s the required code for the question: frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Already there frame.setExtendedState(JFrame.MAXIMIZED_BOTH); frame.setUndecorated(true); // <– the title bar is removed here On … Read more

NSWindow contentView not cover full window size – macOS & SwiftUI

I just used the following variant in AppDelegate, the content of ContentView and others can be any func applicationDidFinishLaunching(_ aNotification: Notification) { // Create the SwiftUI view that provides the window contents. let contentView = ContentView() .edgesIgnoringSafeArea(.top) // to extend entire content under titlebar // Create the window and set the content view. window = … Read more

How to draw custom button in Window Titlebar with Windows Forms?

The following will work in XP, I have no Vista machine handy to test it, but I think your issues are steming from an incorrect hWnd somehow. Anyway, on with the poorly commented code. // The state of our little button ButtonState _buttState = ButtonState.Normal; Rectangle _buttPosition = new Rectangle(); [DllImport(“user32.dll”)] private static extern IntPtr … Read more