How can I change window title font style and font color?
The titlebar text is managed by your operating system's window manager, and the only thing you can do as an application programmer is change the text value.
That is, unless you want to draw your own (fake) title bar. That's generally frowned upon, though. If you really want to, you can take a look at the source code of apps that do this, for example Chromium.
Related
I'm creating a custom colour theme extension for Visual Studio Code and I can't find out how to customise the colours for certain parts of the user interface. The theme is complete, apart from customising the reference popup window.
Here is the popup window I'm trying to customise:
I wish to change the blue background and if possible, the blue border lines. I'm sure this can be done because some of the built-in themes do so. Does anyone have an idea what I would need to put into the colour theme file to achieve this?
I'm also looking for pointers to customise the status bar colour (at the base of the editor).
As far as I know, this is not possible.
Some of the built-in themes are build differently. Most themes are textmate style themes, but you can see here that some of the built-in themes are .json files and are somehow handled differently.
You can find the theme documentation here. Specifically, this part is relevant:
Besides the TextMate language grammar standard scopes, VS Code also
has custom theme settings which you can use to tune your own theme:
rangeHighlight: Background color of range highlighted, like by Quick open and Find features.
selectionHighlight: Background color of regions highlighted while selecting.
inactiveSelection: Background color of selections when not in focus.
wordHighlight: Background color of a symbol during read-access, like reading a variable.
wordHighlightStrong: Background color of a symbol during write-access, like writing to a variable.
findMatchHighlight: Background color of regions matching the search.
currentFindMatchHighlight: Background color of the current region matching the search.
findRangeHighlight: Background color of regions selected for search.
linkForeground: Color of links.
activeLinkForeground: Color of active links.
hoverHighlight: Background color when hovered.
referenceHighlight: Background color of a reference when finding all references.
guide: Color of the guides displayed to indicate nesting levels.
You can find an example VS Code theme here which includes the custom
settings.
As we can see here, there is no special override for the references pane.
We can, though, see in the code that the dark blue for dark themes and the light blue for light themes that you're seeing in the references pane is a default value set in code here.
The colours for the UI itself are stored in the following file (ubuntu): /usr/share/code/resources/app/out/vs/workbench/electron-browser/workbench.main.css
You can edit that, or wait for March 2017 where a new version will be released which will allow customising these colours more easily.
Revisiting this in Sept/2022 out of necessity, I confirmed VS Code 1.70 has native support for manipulating colors for the Go to References/Definitions and Peek... overlays.
Change the overlay background and border as follows, but there's lots of other settings too; see peekView*
"workbench.colorCustomizations": {
"peekViewEditor.background": "#01041a",
"peekViewResult.background": "#054c8a",
"peekView.border": "#04fafa"
Is there a way to change the color of the grids in eclipse?
I am using the built-in 'Dark' theme, and the grid lines are too bright for me, they mess with my vision, I have some visual snow.
I think that is based on the "Window Color and Appearance" (that's the given name if you are under windows) of your desktop personalization just like the top bar maximize/minimize/close.
So you can always go there and change it in "3D objects", but be aware that this change will affect your whole desktop/windows visuals.
Altho, that beeing said, I know that there are ways tweak it around. This could give you a hand: http://marketplace.eclipse.org/content/eclipse-4-chrome-theme#.UYrzEkAW1J0
Also a tool called css spy will help you find what you want to edit faster: http://marketplace.eclipse.org/content/eclipse-4-tools-css-spy#.UYrzSkAW1J0
i am working on a website which involves a lot of colors and their combinations. but during page designing in eclipse whenever i write color attribute inside the style tag or in a css file, i get limited color list, can i get custom color dialog box or hexadecimal values with small preview of colors, that would be helpful during page designing as it would save a lot of time.
Note: recently i have set preferences of colors and fonts for java editor, and i believe this has nothing to do with it.
thanks.
I have tried this on a few installations of the 3.1.3 SDK.
When I add a label to my view, I would like to change the font to something like Futura. I know how to change the font, but, for some reason, it does not show that it is changed. ONLY when I edit the label by double clicking, do I see my new font. And, this is the only time that I do get to see the new font, is when editing the label.
Why does this happen? How can I change the font of my labels, and have it show up? Why would I care to have the font changed when I edit the label?!
There are only a few system fonts installed on the iPhone. So when you try to use a non standard font, ala Future, it will not work, because that is no installed on the iPhone.
Is there any way to change the letter-spacing of text in Eclipse's code editor?
Maybe you can try changing from a fixed width font to the variable width font like Verdana or Tahoma. Window->Preferences->Appearance->Colors and Fonts->Basic->Text Font
If you mean the java code editor in Eclipse this is not possible. The editor is not a word processor. You can only change the font setings (typeface, style, color, size).
If you are referring to this kind of letter spacing, then no, I do not think so.
Not in the sense that a typography system allows you to tweak the appearance of text on a printed page.
The default for me is Courier New Regular 10. You can change the size to 12 or some other size.
Are you trying to change the kerning rules? Kerning is positioning different letters in a variable-width font. For instance in the word "We", the "e" is tucked in a little bit under the "W". The page-layout software that magazine publishers use can control this.
Fonts are opaque to Eclipse; it doesn't give you a way to change the rules within the font. Unfortunately the best you can do is try the different fonts and sizes until you find one that has kerning rules that work, more or less.