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

Custom title with image

It’s possible to set your own custom title layout, however the order of execution matters. You must do things in this order: requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.my_layout); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.my_custom_title); Additionally, you may need to increase the size of the title; if you don’t, then the bottom of your custom layout may just be covered up by your Activity. … Read more

Android: Custom Title Bar

I had the same issue as you. The issue is with something you have in your style. Try this out: <?xml version=”1.0″ encoding=”utf-8″?> <resources> <style name=”My_Theme”> <item name=”android:windowTitleSize”>35dp</item> <item name=”android:windowTitleBackgroundStyle”>@android:color/black</item> </style> </resources>

How to customize title bar and window of desktop application

######################################################### ## customize Title bar ## dotpy.ir ## iraj.jelo@gmail.com ######################################################### import sys from PyQt4 import QtGui from PyQt4 import QtCore from PyQt4.QtCore import Qt class TitleBar(QtGui.QDialog): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.setWindowFlags(Qt.FramelessWindowHint); css = “”” QWidget{ Background: #AA00AA; color:white; font:12px bold; font-weight:bold; border-radius: 1px; height: 11px; } QDialog{ Background-image:url(‘img/titlebar bg.png’); font-size:12px; color: black; } QToolButton{ … Read more

Remove icon/logo from action bar on android

Add the following code in your action bar styles: <item name=”android:displayOptions”>showHome|homeAsUp|showTitle</item> <item name=”displayOptions”>showHome|homeAsUp|showTitle</item> <item name=”android:icon”>@android:color/transparent</item> <!– This does the magic! –> PS: I’m using Actionbar Sherlock and this works just fine.

How to set different label for launcher rather than activity title?

Apparently <intent-filter> can have a label attribute. If it’s absent the label is inherited from the parent component (either Activity or Application). So using this, you can set a label for the launcher icon, while still having the Activity with it’s own title. Note that, while this works on emulators, it might not work on … Read more