How do you change the font Aptana Studio 3.5.0 editor tabs? - aptana3

My Aptana Studio just automatically updated to 3.5.0...the font size on the edit tabs is too big.
I cannot find a setting anywhere in the Preferences menu to change the UI Theme Font Sizes and theme colors.
My Theme is set to "Light Studio".
Does anyone have some config file magic to tweak the UI themes? I'm not talking about code editor colors here - rather the Tabs and sub windows that make up the Aptana/Eclipse app.
Thanks Much!
Don

Tested in Windows 7: open the folder
%APPDATA%\Aptana Studio 3\plugins\org.eclipse.platform_4.3.2.v20140221-1700\css
find the css file related to your theme (for example e4_default.css is the default theme) and customize the rule CTabItem, for example:
CTabItem {
font-style: normal;
font-weight: normal;
font-size: 9px;
}

It looks like an open bug. You can follow it at https://github.com/aptana/studio3/issues/235

If you go Window->Preferences->General->Appearance->Colors and Fonts->View and Editor Folders, then choose 'Part title font' (for tabs, etc.) or 'View message font'. Clicking on them will show a description of what that property applies to. The other items within the "View and Editor Folders" section only let you change the colour.
I had to restart Aptana for the changes to actually be displayed.

Related

Customize Firefox Developer dev tools color theme

Just as title says, I'd like to know if it's possible to change the color theme of Firefox Developer dev tools. Light and dark theme are nice, but I'd like to use a code color theme like Monokai or something similar, how can I do that?
Below you can see the current dark theme in the dev tools:
[
It's not documented (yet), but you could make an Add-on that uses gDevTools.registerTheme(themeDefinition) to create your own dev tools theme.
I found the answer to this in the Mozilla support forum and basically you have to modify the css style creating an overriding chrome stylesheet.
You would have to write your own style rules and apply them via
userChrome.css or Stylish. Use the !important flag to override
existing style rules.
https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity#The_!important_exception
The customization files userChrome.css (user interface) and
userContent.css (websites) are located in the chrome folder in the
Firefox profile folder.
http://kb.mozillazine.org/Editing_configuration

Increase code font size in firefox developer tool

How to increase code fonts in Firefox developer tools?
I know that there is a zoom function but I want to set the font size only for the code.
Open Firefox Developer Tools
Click anywhere within Firefox Developer Tools
Press Ctrl++ on Unix/Win or Cmd++ on Mac
To be clear, I mean the + key. You don't need to hold the Shift key while doing it.
Maybe an easier way will be to open about:config and set
devtools.toolbox.zoomValue to bigger value.
You need to modify userChrome.css under ~/.mozilla/firefox/[profile-name]/chrome with this:
/* Styles for Web developer tools */
#namespace url(http://www.w3.org/1999/xhtml);
.CodeMirror {
font-family: "Ubuntu Mono", monospace !important;
font-size: 15pt !important;
}
The result looks like this:
This only changes the debugger and style editor. There's a different selector for the html inspector. Not sure what that is yet.
Open Firefox and type about:support. In Application Basics section chose Profile Folder - Open Folder. It will fire your file manager. If there is no chrome folder than create it. After that go to this chrome folder and create an userChrome.css file, open it in a text editor and add :
.devtools-monospace {font-size: 12px!important;}
Save. Be sure to restart Firefox.
UPDATE: One thing bothered me - while typing in the devtools console the text actually a bit smaller than on output (after pressing Enter). In order to make it the same we need to change font-size for its corresponding css class too. I don't know its class name yet so I just set
* { font-size: 12px !important; } globally and it works.
So sure, as stated before, the short answer is cmd++.
But the + sign might not be directly accessible on your keyboard (no numeric key pad, laptop, strange layout).
You then have to press maj first to access the + sign, like, for example on the american keyboard layout: maj+=.
Unfortunately, even if you are correctly focused on the dev tool pane, cmd+maj+= increases the font of the web view pane, while cmd+- decreases the font on the dev tool pane.
And you end-up with a web tool pane with a font size so small that it is unreadable, and no way to increase it.
Then #Thal's answer comes handy, once focused to the dev tool pane cmd+0 resets the dev tool's font size to the original.
If you want to answer the question like #Timothy_Truckle is asking for, here are a couple of them (still focus on the dev tool pane, of course):
switch to the US keyboard layout and press cmd+=
find a keyboard layout with the + directly accessible, switch to it, and press cmd++
That's for you guys wondering why some find it hard to simply press cmd++ or why some find it hard to focus on the dev tool pane (because they actually focus on the dev tool pane, but the result is as if they were focused on the web view pane).
You can specify a style for the devtools-monospace class selector. To do so, edit userChrome.css in your mozilla profile's chrome directory, and specify the CSS properties you want. For example:
.devtools-monospace {
font-family: "Source Code Pro",monospace !important;
font-size: 16px !important;
}
The userChrome.css needs to be in the chrome folder of your Firefox profile. If the folder don't exist, create it. Your userChrome.css will then override the CSS from Firefox dev tools after you restart the browser.
To find your profile in Windows OS type: Strg + R and then enter:
%APPDATA%\Mozilla\Firefox\Profiles\
Some elements of Firefox can be styled in the userChrome.css file situated in your Firefox profile's chrome folder.
As of 2018, modify/create ~/.mozilla/firefox/[profile-name]/chrome/userChrome.css with something similar to:
#-moz-document url-prefix("chrome://devtools/content/") {
* { font-size: 13px !important; }
}
Then restart Firefox.
The solution on the Mozilla forums almost has it right: https://support.mozilla.org/en-US/questions/1198481
Using Ctrl+= or Cmd+= was not ideal for me since it increased fonts for all the elements of the window, including the tab names.
Using .devtools-monospace { font-size: 13px !important;} was almost ok, but it did not affect the Debugger and Network tabs.
Using #bohag_bihu's solution had side effects for the address bar and some other text inputs.
I accidentally had my firefox developer window resized to the minimum (couldn't even read it anymore), "CMD +" (mac) didn't work for me, well only for the main web page even if the console was focused, I just hit: "CMD 0" and it came back to normal, if it can be a good alternative to anyone else ;)
As John said, the way to increase the font-size in the devtools is to use ctrl/cmd+, just like you would on a web page. In fact the devtools is a webpage. You just need to make sure that the devtools frame is focused first.
I'm afraid there's no way to only increase the font-size for the code right now.
For certain Mozilla versions (I was testing on Mozilla SeaMonkey equivalent to Mozilla Firefox 52 ESR), an explicitly set root element is required.
This will work:
#namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#namespace html url("http://www.w3.org/1999/xhtml");
while this won't:
#namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#namespace html url("http://www.w3.org/1999/xhtml");
Once #namespace rules have been set,
you only need to add selectors and styles:
.devtools-monospace,
.CodeMirror,
.CodeMirror pre {
font-family: "Courier New", monospace !important;
font-size: 10pt !important;
}
This one works on FF => 68.0 Linux with userChrome.css. Inspector tools are now using CSS variables and the inspector tree itself is loaded in an iframe so none of the tweaks actually worked esp. with .CodeMirror classes.
You can find all the variables in this file (just copy paste below URL in FF to view source)
resource://devtools/client/themes/variables.css
For the userChrome.css part here's what solved it for me.
/* #namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); */
:root {
/* Text sizes */
--theme-code-font-size: 13px !important;
}
If userChrome.css is not loaded create userContent.css and add the same rulesets. Tried and tested on FF Mac/Linux 89

Inconsolata font on Android Studio

I want to use Inconsolata font on a intelliJ editor (Android Studio) on Windows but it looks messy.
I managed to load inconsolata by adding some antialiasing options on studio.exe.vmoptions. I just added these options
-Dawt.useSystemAAFontSettings=on
-Dswing.aatext=true
-Dsun.java2d.xrender=true
and now the font loads but it looks too much crappy to use. Actually any font on this ide looks crappy. Here's a screenshot of the same font on SublimeText right and on Android Studio left
Anyone knows if you can use this font on intelliJ based editors or if there are some issues associated with this font?
We can simply use google fonts It's very easy to implements. only you have to follow these steps.
step 1) Open layout.xml of your project and the select font family of text view in attributes (for reference screen shot is attached)
step 2) The in font family select More fonts.. option if your font is not there. then you will see a new window will open, there you can type your required font & select the desired font from that list i.e) Regular, Bold, Italic etc.. as shown in below image.
step 3) Then you will observe a font folder will be auto generated in /res folder having your selected fonts xml file
Then you can directly use this font family in xml as
android:fontFamily="#font/inconsolata"

Why are fonts looking so different in different themes in intellij?

In IntelliJ the Darcula theme fonts look as follows
and in the default light theme they look as follows
I want to use the lighter default theme, but I find the fonts in darcula theme to be more "clear" then the default lighter theme. Can you let me know how to correct this?
PS : I am using a Linux machine
This is controlled by Settings -> Editor -> Color & Fonts -> Font
However, I do not see a difference between the fonts for Darcula and the default theme :
Darcula :
vs.
Default:
both seem to use the same Consolas, Size 12 font.
Update
Since this is happening on Linux, from here:
Anti-aliasing of fonts is available with Oracle Java 1.6 on Linux. To
do this on a per user basis, add the following line to the user's
~/.bashrc.
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=[setting]'
Two other useful links :
How to fix font anti-aliasing in IntelliJ IDEA when using high DPI?
Intellij IDEA font smoothing in linux
I had the same question, and finally was able to discover the following:
The issue is not one font smoothing, but of the Default theme and the Darcula theme using different fonts on Linux. On my computer, the Default theme uses DejaVu Sans Mono, 12pt, but the Darcula theme uses Source Code Pro, 14pt.
If you want the Darcula Font, then go to File > Settings > Editor > Colors and Fonts > Font, make a copy of the Default scheme, and then change the font to Source Code Pro, 14pt.
See also the Wikipedia article on Source Code Pro .

Validation (CSS 3.0): 'text-shadow' is not a known CSS property name

I have installed both the CSS Intellisense and web standards updates then restarted VS2010. I've also verified that I have "CSS 3.0" selected in the "CSS Version Validation" drop down that's part of the Style Sheet toolbar. I still don't see any intellisense and I continue to get this error for all CSS3 properties.
Sure the styles work in (newer) browsers, but this is annoying.
Any ideas?
open windows explorer and navigate to this directory:
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages\1033\schemas\CSS
make a backup copy of this file:
css30.xml
then open the above file (any text editor will do) an search for "text-shadow"
I'm assuming the entry is not there. If not add this line:
<cssmd:property-def _locID="text-shadow" _locAttrData="description,syntax" type="composite" description="Enables shadow effects to be applied to the text of the element." syntax="Example: h1 {text-shadow: 20px 12px 2px #333;}" enum="inherit initial none" />
EDIT: in my file this entry is just below the entry for "text-emphasis-position"

Resources