titlebar

Setting WindowButtonCommands styles in Mahapps.Metro

杀马特。学长 韩版系。学妹 提交于 2019-12-04 10:07:50
I want to change the style of the Min, Max and Close buttons for my WPF application. I'm using Mahapps.Metro and I have successfully managed to achieve the result I want, but only with the obsolete WindowMinButtonStyle , WindowMaxButtonStyle and WindowCloseButtonStyle properties in the MetroWindow class. The obsolete message on for example the WindowMinButtonStyle property reads: This property will be deleted in the next release. You should use LightMinButtonStyle or DarkMinButtonStyle in WindowButtonCommands to override the style. The problem is that I can't figure out how specifically to do

how to hide / collapse title bar in a UWP app?

拟墨画扇 提交于 2019-12-04 09:37:20
问题 Is there a way to somehow hide / collapse / make temporarily invisible (but not fully disable) titlebar in a UWP app? I know that it is possible to make app fullscreen after which title bar automatically collapses, but I need to implement it in a resizable desktop window. I also know that you can customize appearance of titlebar, like color, etc. Reason: I have an application with a lot of windows and need to save screen space and have more room for client area of windows. I've read different

how to disable notification bar for an android application? [duplicate]

北慕城南 提交于 2019-12-04 05:32:49
问题 This question already has answers here : Hide Notification bar (8 answers) Closed 6 years ago . I have an android application which lists installed applications and launch them on item click.I want to disable accessing NotificationBar from my application.ie,When user launch 'Browser' application from my application,it is possible to drag down the notification bar and he/she can change settings of gps,wifi etc...I tried this requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags

Custom title bar in PreferenceActivity?

浪尽此生 提交于 2019-12-04 04:54:04
问题 I am using a custom title bar for my all activities but i can use this in PreferenceActivity. All i can do in PreferenceActivity is this: @Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title_bar); super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences3); My title bar in preference activity stay always grey without any text but other

C# - How can I rename a process window that I started?

扶醉桌前 提交于 2019-12-03 19:34:43
问题 Is there any way I can rename the window titlebar of an application that I've launched? I.e. if I launched Notepad.exe, I could rename its title bar from "Untitled - Notepad" to "New Notepad Name". 回答1: You can do it using P/Invoke: [DllImport("user32.dll")] static extern int SetWindowText(IntPtr hWnd, string text); private void StartMyNotepad() { Process p = Process.Start("notepad.exe"); Thread.Sleep(100); // <-- ugly hack SetWindowText(p.MainWindowHandle, "My Notepad"); } The background of

Check login on every activity

南楼画角 提交于 2019-12-03 12:16:52
问题 I'm developing and app where the user must login before using it. I customized my titlebar and put a logout button there, to enable users to logout whenever they want, and login with another account. The app should then display the login activity again. That works well, but my problem is with the back button. When the user logs out, the login activity show up, but if he presses back, the app returns to the previous page, enabling the user to use that activity again, even without login. I have

How to change Eclipse window title?

懵懂的女人 提交于 2019-12-03 12:03:11
问题 How to change the title (last part of it) of a running Eclipse? I am speaking about Eclipse distribution itself, not about my program written for Eclipse. Currently I have the the following title: 1 this part is set in Window -> Preferences -> General -> Workspace -> Workspace name . Other parts are autogenerated. I want to change part 2 which is now Eclipse . I have several Eclipses installed and want to refer them here. UPDATE I found file plugin.xml inside ./plugins/org.eclipse.epp.package

jQuery dialog theme and style

江枫思渺然 提交于 2019-12-03 11:39:50
问题 How do I change the background color of the title bar of a jQuery dialog? I have looked at the themeroller but it does not seem to work for me. Thanks 回答1: I do this way (adding "ui-state-error" style for header): <script type="text/javascript"> $(function () { $("#msg").dialog({ open: function () { $(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error"); } }); }); </script> 回答2: You can change it by modifying the ui-dialog-titlebar CSS class, but I highly

Change Spinner DropDown width

房东的猫 提交于 2019-12-03 11:02:18
问题 I need resize this part size to full display. How can i do this? My adapter: String[] navigations = getResources().getStringArray(R.array.actionBar); ArrayAdapter<String> adapter = new ArrayAdapter<String>( getBaseContext(), R.layout.custom_spinner_title_bar, android.R.id.text1, navigations); adapter.setDropDownViewResource(R.layout.custom_spinner_title_bar); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST); actionBar.setListNavigationCallbacks(adapter, navigationListener); custom

Modifying Window Button Colors in Mac OS X

Deadly 提交于 2019-12-03 07:36:33
问题 How can I modify the red/yellow/green window buttons for close/minimize/zoom in Mac OS X? There must be an editable resource or plist somewhere. Here are the buttons I'm talking about: For red/green colorblind individuals, those colors can be maddening. I wish they chose the actual bluish shade of green used in a traffic light instead of the puke grass green. That grassy green is indeterminable from the red. Changing the theme to graphite is a poor alternative, so any other method is much