Hi,
I hadn't looked at Lazarus for a week, so maybe I missed something, but what is the reason that my default edit text background color is grey ? That is, the editable area. If the window is larger than the text, the rest is white
Marc

Mailing lists / lazarus / 2002-09
7 messages · 2 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
I hadn't looked at Lazarus for a week, so maybe I missed something, but what is the reason that my default edit text background color is grey ? That is, the editable area. If the window is larger than the text, the rest is white
Marc
Theme... theme... let me see... Basic (I'm not that into theming).
do you mean default? I don't have any nor could I find any with a quick search called basic.. If it is a special theme perhaps you could point me in the right direction to test it out.
To show the weirdness, not the while editor is grey, only where lines are. Say you have 3 lines of text, where 10 lines fit on the screen, only the area with the 3 lines is grey, the rest is white as I expected.
umm.. clueless here.. if it were my changes I would expect all areas where the "Default color" was checked for background color to be the same.. it is for me on every theme I have tried.
Including Default.. which as you say(assuming we are talking the same theme), is white.. And that is what I get..
Perhaps there is something wrong with the SynEdit Color implementation where it doesn't always update?
Sorry I can't be any help but like I say, every theme I have tried works... unless it is something I changed on my system that hasn't made it to CVS.. always a possibility that it is some odd behaviour which was fixed by something I changed since then. I guess we can find out with the next update..
The only oddities I have noticed with default is the system font color, and oddly enough.. custom drawn checkbox's.(I am attempting to finish up DrawFrameControl Check support.. next up tri-state!)
Either I'm completely blind or it is at a illogic place, but I couldn't find a way to set the default colors. What worked for me was to define the background color of a space white :)
I think this is what I meant... AKA in Editor Color Options.
Andrew
_________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com
On Wed, 25 Sep 2002 00:04:28 +0200 First off, what kind of theme are you using? I have…
Theme... theme... let me see... Basic (I'm not that into theming).
I have implemented a GTK Theme compatibility wherever possible.
I know (we discussed it :-)
That why I asked. Only in the editor, the background of the area where editble lines are is grey, the rest is white.
Edit boxes, combo boxes, other gnome windows (theme selector) the background is white.
To show the weirdness, not the while editor is grey, only where lines are.
Say you have 3 lines of text, where 10 lines fit on the screen, only the area with the 3 lines is grey, the rest is white as I expected.
I would suggest you override the default Text Background colors with White.. and the default text color with black. Which it should be anyway.. In Delphi the default color is always White, not clWindow. etc.
Either I'm completely blind or it is at a illogic place, but I couldn't find a way to set the default colors.
What worked for me was to define the background color of a space white :)
Marc
I hadn't looked at Lazarus for a week, so maybe I missed something, but what is the reason that my default edit text background color is grey ? That is, the editable area. If the window is larger than the text, the rest is white
First off, what kind of theme are you using? I have implemented a GTK Theme compatibility wherever possible. This means that the default background color aka clWindow, clWindowText etc, is going to Match your themes almost exactly. I haven't had any issues with it yet, however it does look rather bizzare on some themes.(NOT because it is wrong, but because the default colors look strange in a Text Edit) . For instance one Theme I have on my system is EnGradient EMacs, where the Window color is light Green, and the Text color is light Peach, which looks really wierd in a Text Edit, especially given the other defaults.
I would suggest you override the default Text Background colors with White.. and the default text color with black. Which it should be anyway.. In Delphi the default color is always White, not clWindow. etc.
Andrew
_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Eh... from my theme selector it is the 2nd entry
I am a Dummy.. I just looked it up on Freshmeat, first entry found.
I didn't even have to load the theme, I just looked at its RC file.. it was obvious what the problem had to be!
This is an easy fix, its not even worth waiting for the Patch(which on account of the bitmap stuff may take longer then I had planned).
In gtkproc.inc, line 3199, and 3202, where it says GTK_STATE_ACTIVE, change to GTK_STATE_NORMAL.
Go ahead and commit this change if you want, but like I said minimal problem.
Andrew
_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
On Wed, 25 Sep 2002 00:36:22 +0200 do you mean default? I don't have any nor could I find…
Eh... from my theme selector it is the 2nd entry
OK, I'll wait and see
OK
Marc
On Wed, 25 Sep 2002 21:50:51 +0200 I am a Dummy.. I just looked it up on Freshmeat, first…
OK, that did the trick. Altough the line numbers weren't correct, I guessed that you ment the ones in the COLOR_WINDOW section.
Committed.
Marc