News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

How can I modify the name color of project template?

Started by zhl, September 30, 2011, 02:57:01 AM

Previous topic - Next topic

zhl

I find that the colors of all the template names are red  when newly setting up a new project and then  I want to change the red color to black but I'm new to C:B and so can anyone give me an advice to slove my problem?
I'm using CB(rev7385)
Winxpsp3

Alpha

If you are looking to customize your syntax highlighting, the options are available under Settings->Editor...->Syntax highlighting.  (If it is something else you are trying to change, could you be a bit more descriptive?)

zhl

I just want to change the template name color of the project wizard dialog not the highlight syntax setting only like the picture below:
and in my C:B(rev7385) the name colors under all different  project type icons are red color and I want to change to black color like the picture.

Alpha

Strange, I have never seen the text in the wizard as anything but black on my system (in fact, the screenshot you posted is from my computer :)).  You could try clearing the configuration data (%APPDATA%\codeblocks), and updating to a newer nightly build.

By the way, if you are posting an image that is already hosted somewhere, it would be better to do something like

[img width=149 height=110]
http://wiki.codeblocks.org/images/8/8f/ProjectWizard.png
[/img]

or

[url=http://wiki.codeblocks.org/index.php?title=File:ProjectWizard.png]screenshot[/url]

instead of attaching it.

zhl

Quote from: Alpha on September 30, 2011, 04:31:19 AM
in fact, the screenshot you posted is from my computer :)).  

Yes,I'm reading your pages in wiki for CB including this addr:http://wiki.codeblocks.org/index.php?title=Creating_a_new_project in order to learn more about using CB although I'm using C:B to build AVR program for the time being.I'm also interested in studing C++ using CB(including editting source files and.building programs).

Quote from: Alpha on September 30, 2011, 04:31:19 AM
You could try clearing the configuration data (%APPDATA%\codeblocks), and updating to a newer nightly build.
I delete the default.conf and restart my CB,I find the template name color is black.but When I copy the default.conf from C:\Documents and Settings\Administrator\Application Data\CodeBlocks to the folder where nightly version locates for example:D:\7385 , I delete the %APPDATA%\codeblocks folder and I find the template name color still red.I do this because I want to make C:B portable according the page:http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_make_Code::Blocks_portable.3F

Jenna

If a template name is red, it means it has been edited by you (or is marked as edited by you).You can right-click on the icon and chose "why is this text red?" or something similar, to see where the edited script is.
You can also chose "Dismiss changes" to reset to defaults.

If it still appears, it might be a bug, and you should tell us what exactly you did to get this issue.

zhl

Quote from: jens on September 30, 2011, 06:38:54 AM
If a template name is red, it means it has been edited by you (or is marked as edited by you).You can right-click on the icon and chose "why is this text red?" or something similar, to see where the edited script is.
You can also chose "Dismiss changes" to reset to defaults.

If it still appears, it might be a bug, and you should tell us what exactly you did to get this issue.

I right-click on one icon and choose the command "discard modifications of this sript" and the color returns to black,so I modify the other name colors under every icon.then I delete the default.conf in the folder of nightly version(7385) downloaded from forum and restart CB to open the project wizard and find the name color is black.I copy the default.conf in %APPDATA%\codeblocks folder to the  nightly version  folder,and then I delete the %APPDATA%\codeblocks folder and find everything is good after restarting C:B.

I get this issue just after I copy the default.conf from %APPDATA%\codeblocks to nightly version folder and delete %APPDATA%\codeblocks folder.The colors under all icons are red and I don't make any change to stript file or modify other relevant files。

zhl

oh,an error still shows up when I choose the menu: File->New->Project to set up a project  and I select any pre-confured template from the New from template and the project fails to be created.CB shows me a message:Failed to load the wizard's script.Please check the debug log for details.I don't know whether this issue is a bug.

Alpha

Quote from: jens on September 30, 2011, 06:38:54 AM
If a template name is red, it means it has been edited by you (or is marked as edited by you).
I did not know that, thanks.  (I guess there are a lot of buttons in Code::Blocks I have yet to mess with...)

Quote from: zhl on September 30, 2011, 02:15:00 PM
I get this issue just after I copy the default.conf from %APPDATA%\codeblocks to nightly version folder and delete %APPDATA%\codeblocks folder.The colors under all icons are red and I don't make any change to stript file or modify other relevant files.
Assuming you still have this problem, does it work to re-discard the changes after setting up the portable version?

zhl

Quote from: Alpha on October 04, 2011, 12:52:00 AM
Assuming you still have this problem, does it work to re-discard the changes after setting up the portable version?

I right-click on the icon  and find that "discard modifications of this sript" doesn't show up again after I select the menu: discard modifications of this sript to change the red color to black and restart CB.so I fail to solve this problem because I know noting about using the script

Alpha

Sorry, I do not exactly understand what you are trying to say :?.

There is an alternate method of make Code::Blocks portable (Windows/Wine only).  PortableApps.com has an almost completed Code::Blocks setup.
If you would like to try it, the changes I made are:

  • replacing the contents of CodeBlocksPortable\App\AppInfo\Launcher\CodeBlocksPortable.ini with

[Launch]
ProgramExecutable=CodeBlocks\codeblocks.exe
CommandLineArguments=--no-check-associations --no-dde --no-splash-screen --personality=%CBP_PERSONALITY%

[Environment]
APPDATA=%PAL:DataDir%
PATH=%PAL:AppDir%\CodeBlocks%PATH_COMPILERS%;%PATH%

[FileWrite1]
File=%PAL:DataDir%\codeblocks\*.conf
Type=Replace
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\


  • replacing the files in CodeBlocksPortable\App\CodeBlocks with an SVN build of Code::Blocks