Hey I was wondering if it was possible to have different colors in a text box in javafx.
You can set the CSS style. Look at the CSS Reference Guide.
Related
It's probably easy question, bu I can't find an answer.
I want to change background color of TEdit component when I click on it (on Focus), and the background should back to previous color when I click somewhere else.
P.S. I use a Firemonkey and it's multiplatform app, so I need to use a style.
The easiest way (and best) - place TRectangle without Stroke into Tedit, set its Align to Client and change its Fill color in Object Inspector.
Hard way:
Tedit is using bitmap from styles. You can see your current style for Tedit - place StyleBook, Load your style from file, find 'editstyle' object.
You can create a new style for Tedit (copy 'editstyle' in your current style, and name it like editstyle1, select background > Source Link in Object Inspector - select part on global style bitmap with your color, then you can change to new style like Edit1.StyleLookup := 'editstyle1';
Also use a useful forum: http://fire-monkey.ru with Google Translate.
I knew that colour can be set through
Settings->Style Configurator
but when the line that I am editing has a different font and background colour which I don't know how to set.
Also when I am selecting an block of code, I can't control the colour of the selection.
Basically I just want to set the editor to have the same color as the typical console, green on black background (which is friendly to eyes, not straining).
Is it possible to customise the color in the notepad++ editor ?
Or anyone knows of an editor that can meet this requirement ?
Thanks
For me it works fine to do the following:
Go to "Settings" Menu and choose "Style Configurator".
There you choose "Global Styles" (language list) and "Default Style" (style list) and set the colors you want.
You can also try to use the "Global override" style and check the different checkboxes.
In Notepad++ there is quick option without change color setting. In Notepad++ have many themes with different color option.
Notepad++ has many themes which you can select in a dropdown box in the Style Configurator window. Many of these themes (e.g. Bespin, Black board, Twilight) have dark background and different colors for different kinds of text for programming languages.
After Click “Save & Close” Button then Background and Font Color will change, like in the below image.
more information click here
I'm using Blank theme for styling my app. In this theme tabs do not stretching by width. How can I fix them?
Generally the simplest way is to open one of the native themes from the Codename One SVN and look there (specifically at the theme constants) to see what was done to accomplish that.
In this case just define tabsGridBool=true (checked) in the theme constants.
How can I edit the style of the lists´ scrollbar?
I want to modify its width, mainly.
To change his colors I use the UIID ScrollThumb, is this correct?
Thanks
#Shai Almog shows me how to edit the ScrollBar.
Using the UIIDs "Scroll" and "ScrollThumb", I can customize my apps´ scroll. Modifying padding/background I can control the width.
There are so many examples in the LWUIT svn.
Is there any color selector in Aptana? I mean, like the one that Dreamweaver displays when you are trying to choose an hexadecimal color, a small box of pre-defined colours. Thank you!
If you are editing a .css file, you can find a color picker at Commands->CSS->Insert color
There is no option for Aptana by default. Someone is developing one, according a blog post in aptanastudio (http://aptanastudio.tenderapp.com/discussions/questions/826-color-picker-css-editor) , but you can use an online tool like Chroma (http://lucumalabs.com/chroma/) instead