Background screen colors in IDE

nfordbscndrd

Well-Known Member
Licensed User
Longtime User
I would like comments in my code to have a different background color so that they stand out more. In VB6, I have Black on Light Green, but when I try that in B4A's XML, its actual color depends on the IDE background. For example, if the IDE background is Cyan, the Light Green comment background looks a dull yellow.

I assume this is because the comment background's alpha is not solid. Is there any way to fix that? (Couldn't find anything via Google.)
 

nfordbscndrd

Well-Known Member
Licensed User
Longtime User
I don't see anything in your post about changing Alpha to solid. As I said, when I set BackColor to Light Green for comments and the IDE's BackColor is Cyan, the comment's BackColor looks like muddy yellow. So I assume that the comment's BackColor's Alpha is not solid.
 
Upvote 0

nfordbscndrd

Well-Known Member
Licensed User
Longtime User
By default the comments background is completely transparent.

I think we are talking about different things. I'm using the following:

<Style Key="IdeBackground" ForeColor="Cyan" />
<Style Key="CommentDefaultStyle" ForeColor="Black" />
<Style Key="CommentDefaultStyle" BackColor="LightGreen" />

In the image below, B4A is on the left and VB6 on the right with the same color specs.

My question about Alpha was because I assumed that it was less than solid and the IDE's Cyan background was diluting the Comment's LightGreen. However, I just tried Yellow in B4A for comments and it looked as expected. So I guess Android/B4A just has a different opinion of what Light Green should be versus VB6's.
 

Attachments

  • CommentBackcolor.jpg
    36.2 KB · Views: 200
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…