ZeroBrane: Change color of auto-completion menu...? - zerobrane

Is there any way to change the color of the auto-completion menu in ZeroBrane (v1.90)?
I have tried all the Tomorrow themes but it seems that the auto-completion menu in all of them is dark text on dark blur background. That does not fit my eyes at all, I cannot read what is highlighted.

This doesn't seem to be possible, as this is the only window controlled by Scintilla (an editor component used in the IDE) that doesn't provide a method to change its colors. See this discussion for details (this is related to Notepad++, but it's using the same editor component).
It may be possible to change by switching the color scheme in the OS or the window manager.

Related

IntelliJ Idea: how to dock the java-doc window

how can we dock the java-doc window to the IntelliJ IDE?
There is no Docked mode in the window-popup like explained in the IDE help
e.g. it should be like the Structure, Messages, Version Control tool Window.
Yes, there is something wrong with this window: by default it shows up in your face, preventing you from getting any work done, and it is not immediately obvious how to dismiss it. A programmer's first encounter with this window tends to be a rather bad user experience.
The way I dismiss it is as follows:
Click on the gray gear menu (the one at the top, not the blue one right below it)
Uncheck Floating mode. It will then obtain a "Docked Mode" option.
Move it to any side you like; it will then stay there.

Safari-style tabs Cocoa control?

I'm referring to the Safari 8's tabbar control (which looks almost exactly the same with Xcode 6's tabbar + the horizontal scrolling, if I'm not mistaken)
Is it available somewhere? How do I proceed?
P.S.: If the answer is something along the lines of "It's a custom control. But you can do it very easily by subclassing... everything there is to subclass", I'm prepared for it! lol
It is a custom control: ScrollableTabBarView. You can inspect it using F-Script
The closest visual match is the Yosemite style of MMTabBarView. This control however does not implement scrolling.
Also check out LITabControl and KPCTabsControl
It is just a Segmented / Tab bar with customized Radio buttons with added NSButton(this is for closing the tab).
You could check this using Accessibility Inspector.
And there is no straightforward control to achieve this, as you mentioned in P.S., you should go with customizing the controls.

how to align text center in nsMenuItem Cocoa Mac osx

I am new in MAC OS X development, I have to align text centre in nsMenuItem but I not find any particular solution. I checked on google but not find any tutorial.
Find some tutorial but not exactly same, in these tutorial we take a NSView in nsMenuItem and then Insert subview in NSVIEW to accomplish it centre align.
Is there is any better solution? Please provide me link if possible.
Edit : I attached screen shot, but this is not working for me.
Thanks
You can set the Attributed String of the menu item, which does allow you to center the text, as well as change the font, color and size of the text as well.
I do not know which version of Xcode/OSX you are using, but under Xcode 5.0.2 you can use the built-in interface builder to edit the attributed strings of menu items.
Click the MainMenu.xib entry, then click the menu you want to edit to open it, then click the menu entry. On the right side of the window there should be some options, if not click the right most square in the group of 3 at the top right of the Xcode window 1.
Once you have the right panel open click the Attributes Inspector icon [2] (4th from the left, looks like a slider type icon). At the bottom of the list of attributes you will see an entry for "Attrib. Title" [3].
That is where you can set a custom font, color and alignment for your menu item.
If you need more control then that provides, you can also embed custom NSViews into your menus which gives you complete control over how the menu will look.

Overriding Windows 8 application theme for a specific UserControl

I'm developing a Windows Store app using the "Dark" theme, which works fine for the main body of the app. However, for the settings flyout, I want to match the appearance of the system-provided "Permissions" flyout, which is to say, black on white.
Unfortunately, that's rather hard to set for every control with the Dark theme in operation.
Is there a way to use the "Light" theme, overriding the application default, for the UserControl I'm using for my settings pane, or is the only way to to do this to copy all the relevant chunks of the theme file for it into the resources of the UserControl?
I had this exact same problem - using the dark theme, and also using a light background for the settings flyout. The research that I did didn't turn up anything either. I ended up having to style my controls so that they would appear properly on the light settings flyout.
One other thought that I had was this, although I didn't go down this path - to use the light theme as the default, but change my app styling so that the main elements would appear dark. This would mean that the flyout controls would not have to be restyled. I guess it depends on how many controls you are using, and which path is easier.
If you go down the 2nd path, your app obviously loses the ability to change themes on the fly.

Color Menu Chooser

How can I make a color chooser for text to use in my cocoa app? I am trying to get the same color selection menu like used on microsoft word. Would this be a popup button or color well or what?
Thanks!
I would personally recommend that you don't emulate Microsoft's UI. It looks very un-Mac-like and you can do better.
You could implement something like this as a popup button and in the button's menu, use custom views for the various color picker sections. Apple's MenuItemView example code shows how to use custom views in menu items.
That's not a standard Cocoa control, so you'll have to come up with your own implementation if you want your picker to look just like that. You'd probably be better off using the standard Cocoa controls for colors, though -- they're used in many programs, so users will already be familiar with them. There's NSColorWell, which displays a single color, and NSColorPicker, which provides a user interface for selecting a color. Read about both in Color Programming Topics.