Author Topic: Themes not applying?  (Read 14401 times)

Offline yahav123

  • Single posting newcomer
  • *
  • Posts: 3
Themes not applying?
« on: March 08, 2019, 11:27:34 pm »
Hey, I just installed Code Blocks and I really hate the default theme so I decided to change it. I followed two tutorials on how to do it (the instructions was the same), and two configuration files for the themes and in both the themes didn't apply - I opened the cb_share_config.exe, chose the config file for the themes and checked all the boxes and than chose the destination default file, I transferred the config file and than save it. After that I opened Code Blocks and changed the themes - and it didn't work. and so I did it for 4 times and it still dosen't work. does someone know what's the problem?
That's what I get from Code::Blocks console:

(didn't copy that all) ...

Loading lexer_squirrel
Loading lexer_srec
Loading lexer_tehex
Loading lexer_vbscript
Loading lexer_verilog
Loading lexer_vhdl
Loading lexer_xml
HeaderFixup
HelpPlugin
HexEditor
IncrementalSearch
cbKeyBinder
lib_finder
MouseSap
NassiShneidermanPlugin
OccurrencesHighlighting
OpenFilesList
Profiler
ProjectOptionsManipulator
ProjectsImporter
RegExTestbed
ReopenEditor
rndgen
ScriptedWizard
SmartIndentCpp
SmartIndentFortran
SmartIndentHDL
SmartIndentLua
SmartIndentPascal
SmartIndentPython
SmartIndentXML
SpellChecker
SymTab
ThreadSearch
ToDoList
ToolsPlus
wxSmith
wxSmithMime
wxSmithAui
wxSmithContribItems
WindowsXPLookNFeel
Running startup script
Script plugin registered: Find Broken Files plugin
Script/function 'edit_startup_script.script' registered under menu '&Settings/-Edit startup script'
SpellChecker: Thesaurus files 'C:\Program Files (x86)\CodeBlocks\share\codeblocks\SpellChecker\th_en_US.idx' not found!
« Last Edit: March 08, 2019, 11:41:12 pm by yahav123 »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7668
    • My Best Post
Re: Themes not applying?
« Reply #1 on: March 08, 2019, 11:39:49 pm »
So, if the directions you followed are not top secret you might post a link to what steps you followed!

You basically said I did something and it did not work; how do you think someone can help you with a post like that?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline yahav123

  • Single posting newcomer
  • *
  • Posts: 3
Re: Themes not applying?
« Reply #2 on: March 09, 2019, 12:04:51 am »
Yes, you right, sorry about that. So first, I opened C:\Program Files (x86)\CodeBlocks and than opened the cb_share_config.exe file and chose the source configuration file (unfortunally it dosen't let me attach files with the extension .conf, see links to the config files in the tutorials below), and than chose the default.conf file as the destination configuration in the folder C:\Users\****\AppData\Roaming\CodeBlocks. after doing that, I clicked on the transfer button and than on the save button (all that while Code Blocks is closed). I opened Code Blocks and went to Settings --> Editor --> Syntax Highlighting and in the Colour theme chose kft2 (and almost everything else) and pressed ok. and when I opened new empty file nothing happens - it stays as the default, white theme, and did the samething over 3 times with no success.

tutorials that I followed:
https://medium.com/@yzhong.cs/change-editor-theme-for-code-blocks-windows-linux-mac-92e9c15cbca4 and also:
https://www.dreamincode.net/forums/topic/351185-change-theme-in-codeblocks/
« Last Edit: March 09, 2019, 12:09:41 am by yahav123 »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7668
    • My Best Post
Re: Themes not applying?
« Reply #3 on: March 09, 2019, 03:31:02 am »
It worked for me; but, it did take more than one try.

What Code::Blocks version are you using?

I am using 17.12.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7668
    • My Best Post
Re: Themes not applying?
« Reply #4 on: March 09, 2019, 03:38:27 am »
What does "(and almost everything else) " mean?
I only had to select the "Color Theme" of kft and click OK and it worked.
Note: I might have had to exit out of CB and reenter because the first time the added themes did not show in the list. So, I re-transferred them and tried again.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7668
    • My Best Post
Re: Themes not applying?
« Reply #5 on: March 09, 2019, 03:41:47 am »
What file extension is the new file using?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline yahav123

  • Single posting newcomer
  • *
  • Posts: 3
Re: Themes not applying?
« Reply #6 on: March 09, 2019, 10:22:29 am »
Hey, I used to new config files one with the extension .config and one with the .config file whice I had copy-paste what this site says and like you did it multiple times. and as to your question "almost everything else", I ment by that that I chose to transfer all the themes by checking all the boxes and than clicking tranfer and save.   

UPDATE: reinstalled Code::Blocks, still dosen't works.   
 
UPDATE 2: when I'm applying any theme I get this:SpellChecker: Thesaurus files 'C:\Program Files (x86)\CodeBlocks\share\codeblocks\SpellChecker\th_en_US.idx' not found!  I know it dosen't connected because this is spellchecker but maybe it's stopping the themes from applying.


the .conf download link:
https://gist.github.com/yzhong52/6852140faa233408de67
the .config downlload :
https://www.dreamincode.net/forums/topic/351185-change-theme-in-codeblocks/
« Last Edit: March 09, 2019, 11:08:38 am by yahav123 »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7668
    • My Best Post
Re: Themes not applying?
« Reply #7 on: March 09, 2019, 01:52:45 pm »
You create a new file in CB to test the theme; what file extension does that have?

Do you select the theme inside of Code::Blocks?
Quote
Settings --> Editor --> Syntax Highlighting and in the Colour theme chose kft2

If you do, does the theme appear [to] work in the bottom window?

Tim S.
« Last Edit: March 09, 2019, 02:29:48 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ProDigit

  • Single posting newcomer
  • *
  • Posts: 4
Re: Themes not applying?
« Reply #8 on: February 28, 2020, 08:53:47 am »
Yeah not working.
I had it working on 17.12 mingw version (the latest) on my C drive, but when i reinstalled to an external drive (D:), the config file wasn't in the 'C:\Users\[USER]\AppData\Roaming\CodeBlocks'-folder, but in the 'D:\Program Files (x86)\CodeBlocks'-folder.
After following the guide, and using cb_share_config on the default.conf on the D: drive location;  doing 'settings>>editor>>Syntax Highlighting' on the bottom window, the colors do change.
But the main editor doesn't change, not even with a reboot.
I tried making a new project, without success on running the theme...


*Windows 10 Home 64bit, 16GB RAM, N5000 CPU, 32GB of free SSD space left on C, and a few terabytes on D.

Edit: seems like I also don't get a blank window to code in. Something appears broken.
I'll reinstall.
« Last Edit: February 28, 2020, 09:12:34 am by ProDigit »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Themes not applying?
« Reply #9 on: February 28, 2020, 09:10:29 am »
Are you using the cb_launcher script? If you're not then the config file should always be read/written from your user's folder.
(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!]

Offline ProDigit

  • Single posting newcomer
  • *
  • Posts: 4
Re: Themes not applying?
« Reply #10 on: February 28, 2020, 09:15:09 am »
Are you using the cb_launcher script? If you're not then the config file should always be read/written from your user's folder.
I tried both the launcher and normal codeblocks.exe without success.

Offline ProDigit

  • Single posting newcomer
  • *
  • Posts: 4
Re: Themes not applying?
« Reply #11 on: February 28, 2020, 09:27:14 am »
Ok, nevermind.
The code window is now having the right theme.
I redownloaded, and reinstalled it, and instead of 'custom' install, I selected 'full install'.
It still allowed me to install to D:

The only thing I like less, is that all other panels aren't changed. Just the main.cpp window.
Now also default.conf is loaded from the C:\Users\[USER]\AppData\Roaming\CodeBlocks directory
« Last Edit: February 28, 2020, 09:28:54 am by ProDigit »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Themes not applying?
« Reply #12 on: February 28, 2020, 10:56:55 pm »
The only thing I like less, is that all other panels aren't changed. Just the main.cpp window.
If you're talking about the theme of windows, this is not possible at the moment. There are rumors that MicroSoft would introduce the dark theme to win32 applications in the future, so there is some kind of hope...
(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!]

Offline ProDigit

  • Single posting newcomer
  • *
  • Posts: 4
Re: Themes not applying?
« Reply #13 on: February 29, 2020, 06:04:24 am »
Not just borders, I mean all the other windows. The only window that has the color applied, is the code window (main.cpp).
The debugger, file tree window etc... are all still with a white background.

It is possible in other coding programs (like Visual).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Themes not applying?
« Reply #14 on: February 29, 2020, 12:45:31 pm »
It is possible in other coding programs (like Visual).
They don't use win32 api to create their UI, they use toolkits which support custom themes. Changing to some other API is close to impossible at the moment.
(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!]