titlebar

Custom Nav Title offset ios 11

a 夏天 提交于 2020-01-04 09:38:32
问题 I have a custom navigation item title that is simply two labels, one on top of the other, loaded from a .xib file. It's loaded by calling this: class Utilities { /// Title and subtitle format custom title in Navigation bar. Top and bottom text are centered on one another. /// /// - Parameters: /// - navigationItem: The receiving controller's navigation item. /// - titleText: Top text to be displayed a little larger and more bold. /// - subtitleText: Bottom text to be displayed a little

Extend buttons to title bar in UWP

纵然是瞬间 提交于 2020-01-04 03:39:09
问题 Is there a simple way to extend window controls into the title bar and make them clickable? I read the related post (How to customize the application title bar for a UWP page) and I understand how to extend into the title bar area visually. However, my buttons are not clickable in that area (as if there is a layer over them, preventing them from being clicked). 回答1: Sure thing, you start with //draw into the title bar CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true; /

How to change title bar color without theme

寵の児 提交于 2020-01-03 15:21:15
问题 How I can change background color of titlebar without using theme. tnks in Android. 回答1: Try with the following code View titleView = getWindow().findViewById(android.R.id.titlebar); if (titleView != null) { ViewParent parent = titleView.getParent(); if (parent != null && (parent instanceof View)) { View parentView = (View)parent; parentView.setBackgroundColor(Color.RED); } } 回答2: ActionBar bar = getActionBar(); bar.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color

Change title of untitled tab in Visual Studio Code

若如初见. 提交于 2020-01-03 13:55:08
问题 I'm building a VS Code extension which includes changing the name/title of untitled-1 tab (unsaved file). I tried running the below code in debugger console of extension but it didn't reflect in the editor: vscode.workspace.textDocuments[0].fileName="myFile" Is it not possible or am I missing something? 回答1: It's not possible - if you check out the source code for the API definition in vscode.d.ts, you'll see that fileName is declared as readonly : export interface TextDocument { // ...

Change height of window title bar for Visual Studio 2013 and/or Office applications

假装没事ソ 提交于 2020-01-02 08:19:08
问题 I don't know why but Microsoft decided to make the title bars of the windows of Visual Studio 2013 and Office applications huge! They are so thicker than normal windows and this is really annoying especially if you have a small screen. Do you think there is a way to change this? 回答1: There is an extension for Visual Commander to hide Visual Studio 2013 title bar. In the HideTitleBar function instead of setting visibility to collapsed you can try to change height. 回答2: I don't think you can

Add a UserControl in/over titlebar in Window

十年热恋 提交于 2020-01-01 16:46:11
问题 In WPF, I want to add a userControl in/over titlebar in Window, like this: The Red part is that UserControl, and the Green part is titlebar. Now I hope to get some suggestions from you. Need to extend the Window class or just customize the style of the Window? It's better to provide source code. 回答1: You can do this by implementing your own title bar. In order to do so set your window style to none: WindowStyle="None" This will mean that the window will have no control box (minimize, maximize

Frameless window with controls in electron (Windows)

北慕城南 提交于 2019-12-31 08:03:25
问题 I want my app to have no title bar but still be closeable, draggable, minimizable, maximizable and resizable like a regular window. I can do this in OS X since there is a titleBarStyle option called hidden-inset that I can use but unfortunately it's not available for Windows, which is the platform that I'm developing for. How would I go about doing something like this in Windows? Here's an example of what I'm talking about. 回答1: Assuming you don't want window chrome, you can accomplish this

Android Theme.NoTitleBar doesnot work

倾然丶 夕夏残阳落幕 提交于 2019-12-31 03:24:09
问题 I am have a facebook like sliding menu bar in my app in which the two content and main layout of the app is handled by a Custom layout class. I want to remove the titlebar of my app Issue: Even though I place android:Theme.Light.NoTitleBar in my manifest there is a blank space of title bar. Due to which my whole layout is pushed downwards. I have tried using requestWindowFeature(Window.FEATURE_NO_TITLE); and getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,WindowManager

Title bar missing in NSOpenPanel?

依然范特西╮ 提交于 2019-12-30 09:29:14
问题 Since OS X 10.11 it seems the title bar no longer appears even when using setTitle: does anyone know what happened and how to get the old behavior back? 回答1: From the AppKit Release Notes for OS X v10.11: In 10.11, most NSOpenPanels have adopted a design that was formerly reserved only for applications which adopted iCloud Documents support and this panel design was only used if iCloud Drive was turned on in System Preferences. This note will refer to the design as the “iCloud Open Panel

Can you change the color of the titlebar of a userform in VBA using Windows API?

独自空忆成欢 提交于 2019-12-29 07:56:06
问题 Is it possible to change the color of the title bar for a VBA userform using Windows API. Please note that I am only interested in changing the color of the title bar for a particular userform and not a system-wide them change. Thanks! 回答1: Just for fun; UserForm: Private gHWND As Long Private Sub Label1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) If Button = 1 Then HandleDragMove gHWND End Sub Private Sub UserForm_Initialize() gHWND =