NSRequiresAquaSystemAppearance and pref panes - nspreferencepane

I have a System Preferences Pane that always opens in the light appearance mode when running in 10.14. Normal apps compiled in earlier system can use dark mode by including a plist parameter: NSRequiresAquaSystemAppearance = NO.
However, when I add this key to my Info.plist in the pref pane, nothing happens.
How can a custom System Preferences pane open in dark mode when dark mode is active on 10.14? Apple's default panes do and there is no key in those plists that seems to enable it.

Related

How can you keep the Structure window always displayed in Android Studio 3.5.1?

I'm sure that I open the Structure window in my Android Studio 3.5.1 project, you can see Image 1, but sometimes Android Studio 3.5.1 hide the Structure window automatically.
I hope to keep the Structure window displayed. How can I do?
Image 1
According to the docs you just need to choose Dock Pinned as View Mode of the Tool Window:
You can make a tool window stay open even if your focus is somewhere else, for example, in the editor or other tool window. To achieve that, use the Dock pinned mode when you select your viewing mode.
Here are the steps to change it:
On the title bar of a tool window, click the Show Options Menu icon, from the list of options, select View Mode and the actual mode option.
Right-click a tool window or a title bar and from the list of options, select View Mode and the actual mode option.

Editor window loses focus on shortcut view change

In Android studio, while having a .xml file (layout) open in editor window, there are two modes available: Design and Text. In Mac the short-cut for going back and forth in these views are said to be Control + Shift and Left/Right. However once you press one of these combination the editor window will lose the focus and in order to go back, you have to click on the editor window.
How can one resolve that without the extra click?

Changing Font Color in PyCharm "Run" pane

With a dark theme chosen, the "run" pane (not the python "console" nor the "terminal" accessible within PyCharm) shows a very dark font such that it can barely be seen. Switching to a light theme, all is well. I've found help (within Pycharm, here, Google, and YouTube) on setting the font colors for the editor, console, and terminal panes, but not a thing on changing the run-pane colors. Any ideas?
I usually just use native Editor settings in the Preferences.
So you can try going into the :
Preferences > Editor > Color Scheme > Console Colors
click on Console Colors and use the menu on the right
Console > Backgroud > select prefered color
Click Apply to test the color
Click OK to save changes
Hope that helps.
FWIW, I am using the Grep Console plugin (in my older 5.0.6 PyCharm Pro version) which also controls the Run panes and has a fairly configurable color scheme (both background and foreground):
This is how the Run pane looks like (snapshot intentionally smudged):

Android Studio: Create a second Windows window

I am getting familiar with Android Studio and now prefer it over Eclipse. However I find the window handling of Eclipse more efficient and flexible.
Is there any way to open a second window for the same project (like you can if you have separate projects)? Basically the "New Window" function of Eclipse.
Is there any way to store different window layouts and switch quickly between them (like the perspective of Eclipse)
I am developing on a Notebook, so space is limited. I rather switch with Alt+Tab between IDE windows than resizing 5 docked windows.
Opening a separate window (Qn #1)
This is possible. For an existing window tab, click and drag the tab outside of the window area of Android Studio. This is easier if the Window is in a restored state. So:
Ensure that there's some desktop area that's not covered by Android. This could be by ensuring the Android Studio window is not maximized (as you'd do on your notebook), or by having a dual-monitor setup.
Bring the window to be 'floated' to be the active tab
Drag the window outside of the Android Studio window area, and release mouse.
The window is now floating. To make it tabbed again, just drag it back to be where it was (beside other tabs).
Alt+Tab navigates between floating windows and the main IDE window.
Floating tool windows
Tool window tabs can be dragged in the same way:
... such that they float like this:
Window layouts (Qn #2)
It appears that there's only the option of a 'Default' layout, and after changing this (e.g. pinning tool windows), the option to revert to a previously saved 'Default' layout.
To save a layout, select 'Window' -> 'Save Current Layout as Default'. Now after re-arranging any tool window layouts, the saved layout can be restored via 'Window' -> 'Restore Default Layout'
Tool windows such as '1. Project', '2. Favorites', 'TODO', 'Terminal' etc. can be dragged to be in different border areas of the application. It's the arrangement of these tool windows that is affected by the layout feature.

Allow clicking in vim in cygwin

I am using vim, which I believe has a click function (you click, it changes the mode from edit, command, etc), however in Cygwin, you can't do that. Then again, I'm not sure if it's clicking is the thing in vim, let alone Cygwin.
I am using mintty, on Cygwin.
Clicking doesn't really change modes but, supposing your terminal emulator supports mouse reporting, you can activate mouse support in Vim with this command:
:set mouse=a
To activate mouse support permanently, add this line to your ~/.vimrc:
set mouse=a
See :help 'mouse'.
To get mouse positioning working with mintty (It's the default terminal emulator used when you start Cygwin now) on Cygwin you may need to alter the settings so that you get the expected behavior - Right click on the top left of the window to bring up the Options... menu then go to the Mouse settings. If you want it position the mouse with a left mouse click you need to select under 'Application' under the 'Default click target' which is in the 'Application mouse mode' box. If you have 'Window' selected then you'll need to hold down the selected Modifier key (as set immediately below this setting) - Usually the Shift key - and left click to position the mouse.
This worked for me:
Alt + Space -> Options -> Mouse -> Clicks place command line cursor
Options section:

Resources