News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How do you change font colors in the Management panel?

Started by Citizen Joe, June 22, 2019, 09:29:30 PM

Previous topic - Next topic

Citizen Joe

Hi There,

This is my first question.  I did a search in the forum on what I was looking for (found one post), but it refers to a different set up than mine.

As the subject line suggests I'm trying to change some of the colors, specifically the font colors in the Management panel.  through a bit of trial and error I've managed to change the default (attachment CBSS01), to this (attachment CBSS02) which is more to my liking.  However, in the Management panel, Symbols tab, in the Symbols tree you'll see items labeled "Global functions", "Macro definitions", etc colored in black... It is the font colors of those items I'd like to change to a lighter color for easier readability.

For easier troubleshooting my setup is as follows:
Linux Mint version 19.1 Cinnamon edition (using Mint-Y-Dark theme)
Code::Blocks 16.01

Help on what particular settings to change, or files to edit would be appreciated.  If you require any further system information please let me know.  Thank you for your time and assistance.

Very Truly Yours,
Citizen Joe
---
"We have enough people here who know about UNIX and enough people who play Quake that we can make sysadmins out of parts." - Ficus, about Be's lack of a fulltime sysadmin.

Citizen Joe


Okay, did some more experimenting.  Made a test "Hello World" sorce code file and loaded it into Code::Blocks.  The "Symbols" label at the base of the tree will always be in a lighter colored font reguardless of weather it's the active label or not.  The sub-labels on the tree ("Global functions", "Macro definitions", etc) I found behave differently.  The sub-label, when active, will have its font in a lighter color.  When the sub-label is inactive and contains no items, then the sub-label font will remain in a darker color.  When the sub-label is inactive and contains at least one item, then the sub-label font will remain in a lighter color.  Still it would be nice to know if I can still change the darker color of the font to a lighter one.

So that little mystery is solved (sortof), but in exploring that I ran into a new issue.  The changes I made to the Enviroment  settings (as seen in attachment CBSS02) disappear upon closing Code::Blocks.  When you reopen the program it reverts to the default (as seen in attachment CBSS01).  It appears that the changes I'm making to the settings are not being save by Code::Blocks.  Can anyone shed some light on this issue?  Also since it's a new issue should I repost it seperately, or just leave it here?

Thanks again for any help given on either of these issues.

Very Truly Yours,
Citizen Joe
---
"We have enough people here who know about UNIX and enough people who play Quake that we can make sysadmins out of parts." - Ficus, about Be's lack of a fulltime sysadmin.

stahta01

Since, it is likely an already fixed issue; I would not report the issue unless you see it in the newest CB release. Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Citizen Joe


Quote from: stahta01 on June 23, 2019, 09:51:56 AM
Since, it is likely an already fixed issue; I would not report the issue unless you see it in the newest CB release. Tim S.

I said (sortof) solved.  While I understand the mechanics of what's going on, the underlying technical question "Can the font color be changed?" has yet to be addressed.  I'm looking for an answer of either:

a) Yes you can and  this is how you do it.
b) No you can not and this is why.

Also, the second issue I discovered about settings not being saved, and questions related to it, have yet to be addressed as well.

Thirdly, Code::Blocks version 16.01 is the latest version installed through the linux mint software manager.  So any newer versions of Code::Blocks has not yet reached the linux mint software repository.

Again any assistance on these issues will be appreciated.

Very Truly Yours,
Citizen Joe
---
"We have enough people here who know about UNIX and enough people who play Quake that we can make sysadmins out of parts." - Ficus, about Be's lack of a fulltime sysadmin.

sodev

Then complain about that at the Linux Mint Folks, latest release is 17.12, but i don't recommend using that in your case because afaik this also uses wxWidgets 2.8. Newer wxWidgets versions work much better in dark mode, your Linux probably ships a wxWidgets 3.0 version, you should build CodeBlocks from source against it, maybe even build wxWidgets 3.1 from source too.

Also that settings don't get saved sounds familiar. You are trying to fix a dead patient, thats kind of wasted time. Better upgrade to the latest source, if you still have issues, then you can try to fix them.

oBFusCATed

Quote from: Citizen Joe on June 23, 2019, 03:43:30 AM
Still it would be nice to know if I can still change the darker color of the font to a lighter one.
I doubt there is a settings for this.
Search Settings -> Environment -> Colours for something that looks like it will affect this colour.
But generally Symbol Browser is disabled, because it causes random crashes with wx3.x builds.


Quote from: Citizen Joe on June 23, 2019, 03:43:30 AM
The changes I made to the Enviroment  settings (as seen in attachment CBSS02) disappear upon closing Code::Blocks.  When you reopen the program it reverts to the default (as seen in attachment CBSS01).
The ~/.config/codeblocks/default.conf file has wrong permissions. It happens sometimes on ubuntus, don't know why and how to reproduce it. :(
Change the owner of the file and it will work again.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

oBFusCATed

Quote from: sodev on June 23, 2019, 08:32:08 PM
Then complain about that at the Linux Mint Folks, latest release is 17.12, but i don't recommend using that in your case because afaik this also uses wxWidgets 2.8. Newer wxWidgets versions work much better in dark mode, your Linux probably ships a wxWidgets 3.0 version, you should build CodeBlocks from source against it, maybe even build wxWidgets 3.1 from source too.

Also that settings don't get saved sounds familiar. You are trying to fix a dead patient, thats kind of wasted time. Better upgrade to the latest source, if you still have issues, then you can try to fix them.
I'm not sure how you've managed to gather so much misinformation in a single post, but you did it... :(
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

sodev


Landslyde

#8
Hi Citizen Joe:


I'm on Cinnamon 19.1, too. I use two themes: Cinnamon-Kashmir-Blue and 3D-Blue-Shades. While they're not black, they're easy on the eyes and they show white text. Just an idea.

oBFusCATed

Quote from: sodev on June 24, 2019, 08:53:50 PM
And what exactly is wrong in that post?
1. Blaming wx for cb issues.
2. Stating that 17.12 uses wx2.8, which is clearly not the case on most modern linuxes (it is up to the distro to choose the wx version). I think this version of mint is using wx3.0.
3. Stating that 17.12 will solve OP's problems
4. Not mentioning that 17.12 disables the Symbol browser for wx3.x builds.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Citizen Joe

Finally back...

Quote from: oBFusCATed on June 24, 2019, 08:17:46 PM
Quote from: Citizen Joe on June 23, 2019, 03:43:30 AM
Still it would be nice to know if I can still change the darker color of the font to a lighter one.
I doubt there is a settings for this.
Search Settings -> Environment -> Colours for something that looks like it will affect this colour.
But generally Symbol Browser is disabled, because it causes random crashes with wx3.x builds.

I went through all the color settings I could find and not any of them change the sub-label that is inactive and contains no items in the "Symbols" tree in the "Management" panel.  Perhaps a color setting they need to add in future releases of Code::Blocks.

I do not know what this "Symbol Browser" is or how it related to the font color of the item I'm referring to.  I'm just getting started with linux and still learning so every little bit helps.

Quote from: oBFusCATed on June 24, 2019, 08:17:46 PM
Quote from: Citizen Joe on June 23, 2019, 03:43:30 AM
The changes I made to the Enviroment  settings (as seen in attachment CBSS02) disappear upon closing Code::Blocks.  When you reopen the program it reverts to the default (as seen in attachment CBSS01).
The ~/.config/codeblocks/default.conf file has wrong permissions. It happens sometimes on ubuntus, don't know why and how to reproduce it. :(
Change the owner of the file and it will work again.

Bingo!  All it took was "sudo chown user:group default.conf" and that did the trick.  Thanks a million for that tip.

Quote from: Landslyde on June 25, 2019, 02:32:20 AM
I'm on Cinnamon 19.1, too. I use two themes: Cinnamon-Kashmir-Blue and 3D-Blue-Shades. While they're not black, they're easy on the eyes and they show white text. Just an idea.

Mint-Y-Dark theme is more of a grey/dark grey theme with light text and actually prefer it, at least for now.  The issue is with Code::Blocks and is something it looks like the devs will have to work on eventually.  Thanks for the idea though.
---
"We have enough people here who know about UNIX and enough people who play Quake that we can make sysadmins out of parts." - Ficus, about Be's lack of a fulltime sysadmin.