Basic4Android v1.8 Color Schemes

COBRASoft

Active Member
Licensed User
Longtime User
Hi,

This thread is all about color schemes in B4A. Since v1.8 it is possible to change the colors of the editor. This can be done manually in the 'B4A.xml' file, which can be found in your B4A installation folder.

Erel: is there a way to change the color of the line numbers and the closed regions? Also the line color between methods should be changeable.

I've attached a first example of this coloring. Please check the zip for a complete screenshot.

B4X:
<!-- Highlighting Styles -->    
    <Styles>
        <Style Key="IdeBackground" ForeColor="#1E3C4B"/>
        <Style Key="DefaultStyle" ForeColor="WHITE"/>
        <Style Key="GlobalVariablesStyle" ForeColor="#F2E6AB"/>
        <Style Key="ReservedWordStyle" ForeColor="#72C1E2" />
        <Style Key="NumberStyle" ForeColor="#F9BC7E" />
        <Style Key="TypeWordStyle" ForeColor="#00B7EB" />
        <Style Key="StringDefaultStyle" ForeColor="#F9BC7E" />
        <Style Key="CommentDefaultStyle" ForeColor="#52A146" />
        <Style Key="PreProcessorDirectiveKeywordStyle" Name="Pre-Processor Directive Keyword" ForeColor="#E0D000" />
    </Styles>
Greetings,
Sigurd
 

Attachments

  • ColorScheme.jpg
    ColorScheme.jpg
    27.8 KB · Views: 522
Last edited:

vb1992

Well-Known Member
Licensed User
Longtime User
It would be nice to change the background color of the IDE of any given project, sometimes I have 5 projects opened up at once, and If I was able to set a few of the background colors to different colors, it would be easier to remember visually which one I am in.

I'll have 3 camera projects going on at once, so I have to
figure out which is the latest I am currently working on...etc
 
Upvote 0

COBRASoft

Active Member
Licensed User
Longtime User
Erel, is it possible to change the highlightcolor of variables and undeclared ones? Cyan on yellow is not readable :).

Any idea when the next build will be available of this beta? I really like it!
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I've added another several options:
B4X:
   <Styles>
      <Style Key="IdeBackground" ForeColor="White"/>
      <Style Key="ContentDivider" ForeColor="ControlDark"/>
      <Style Key="LineNumber" ForeColor="Teal" />
      <Style Key="ToolTipBackground" ForeColor="Info" />
      <Style Key="DefaultStyle" ForeColor="Black"/>
      <Style Key="GlobalVariablesStyle" ForeColor="#6600CC"/>
      <Style Key="ReservedWordStyle" ForeColor="Blue" />
      <Style Key="NumberStyle" ForeColor="Purple" />
      <Style Key="TypeWordStyle" ForeColor="DarkCyan" />
      <Style Key="StringDefaultStyle" ForeColor="Maroon" />
      <Style Key="CommentDefaultStyle" ForeColor="Green" />
      <Style Key="SelectionHighlight" ForeColor="PaleTurquoise" />
      <Style Key="ReferenceHighlight" ForeColor="#00FFEF" />
      <Style Key="UndeclaredIdentifier" ForeColor="Red" />
      <Style Key="PreProcessorDirectiveKeywordStyle" Name="Pre-Processor Directive Keyword" ForeColor="Gray" />
   </Styles>

The next beta will be released today.

We will have a separate thread for custom themes once the final version is released.
 
Upvote 0

vb1992

Well-Known Member
Licensed User
Longtime User
Will we be able to load a custom theme per project?

So if I have three projects opened at the same time,
I can load theme1, theme2, theme3 for different
project ide windows?

:icon_clap:
 
Upvote 0

COBRASoft

Active Member
Licensed User
Longtime User
Erel, Thank you for adding these. At first sight, I'm missing 'ToolTipParameterColor'. This is now white in my colorscheme on the lightyellow background... Kinda hard to read :). Greetings, Sigurd
 
Upvote 0

COBRASoft

Active Member
Licensed User
Longtime User
Sample tooltip

Hey Erel,

Here is an example of a tooltip. Look at the white parameters.

Greetings,
Sigurd
 

Attachments

  • ExampleTooltip.jpg
    ExampleTooltip.jpg
    17.6 KB · Views: 341
Upvote 0

COBRASoft

Active Member
Licensed User
Longtime User
Erel, perhaps you could place all the color settings in a seperate XML file. This would make it easier to share them.

It would also be interesting if we could use our own name for the XML file (for sharing). In the IDE we could select the colorscheme we want to use. This could probably also solve the problem of multiple open projects?
 
Upvote 0

COBRASoft

Active Member
Licensed User
Longtime User
Yes, my suggestion was for a future version. Sharing only the styles seems logic.

Great job on 1.78, works great here!
 
Upvote 0

COBRASoft

Active Member
Licensed User
Longtime User
Dark Blue Color Scheme

Here is a soft colorscheme, works best on IPS monitors :)

B4X:
<Styles>
        <Style Key="IdeBackground" ForeColor="#1D314C"/>
        <Style Key="ContentDivider" ForeColor="#C2D5DC"/>
        <Style Key="LineNumber" ForeColor="#58859B" />
        <Style Key="ToolTipBackground" ForeColor="#36598A" />
        <Style Key="DefaultStyle" ForeColor="#F0F0F0"/>
        <Style Key="GlobalVariablesStyle" ForeColor="#D8CFA0"/>
        <Style Key="ReservedWordStyle" ForeColor="#9CC4D2" />
        <Style Key="NumberStyle" ForeColor="#F4AF82" />
        <Style Key="TypeWordStyle" ForeColor="#45B6DC" />
        <Style Key="StringDefaultStyle" ForeColor="#F4AF82" />
        <Style Key="CommentDefaultStyle" ForeColor="#85DE6D" />
        <Style Key="SelectionHighlight" ForeColor="#2B70B6" />
        <Style Key="ReferenceHighlight" ForeColor="#E0E0E0" />
        <Style Key="UndeclaredIdentifier" ForeColor="#FF1E1E" />
        <Style Key="PreProcessorDirectiveKeywordStyle" Name="Pre-Processor Directive Keyword" ForeColor="#FFE5C2" />
</Styles>
 
Upvote 0

CharlesIPTI

Active Member
Licensed User
Longtime User
HURTs

Getting older finally need reading glasses, took for granted the ability to wheel / scroll mouse Zoom into most text editors so someone might appreciate my little xml change..

B4A was giving me eye strain enough to whip up these little changes



Rename your old one rename this one to Xml
black IDE small color changes
enough to get you started on your own preferences
 

Attachments

  • B4A.txt
    7.3 KB · Views: 325
Upvote 0
Top