Author Topic: General dark theme (not only for editor)  (Read 139741 times)

Offline jleon

  • Single posting newcomer
  • *
  • Posts: 5
General dark theme (not only for editor)
« on: February 09, 2018, 09:54:46 pm »
Hello there
I'm a new CodeBlocks user. I followed the instructions given in  https://sangams.com.np/installing-codeblocks-dark-themes/ to change the Code::Blocks theme, but that only works for the editor window. Is it possible to set a theme for the whole environment e.g. menu bar,  Management panel, Logs & others, etc.? Something like KDevelop does:


Thanks in advance,

jleon

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: General dark theme (not only for editor)
« Reply #1 on: February 09, 2018, 10:29:43 pm »
No it is not possible, because codeblocks uses wxWidgets. wxWidgets uses as many default controls as possible and also the default colors. So if you change the windows theme also the controls in codeblocks will have the same color.

Maybe, if wxWidgets implements theme support, also codeblocks will add it....

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: General dark theme (not only for editor)
« Reply #2 on: February 09, 2018, 10:50:03 pm »
No it is not possible, because codeblocks uses wxWidgets. wxWidgets uses as many default controls as possible and also the default colors.
This is only true for windows/osx. On linux the gtk theme could be changed even per application.
(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 jleon

  • Single posting newcomer
  • *
  • Posts: 5
Re: General dark theme (not only for editor)
« Reply #3 on: February 09, 2018, 11:09:14 pm »
I'm using Linux. So I guess I could with some luck accomplish that. ¿How could I?

jleon

Offline jleon

  • Single posting newcomer
  • *
  • Posts: 5
Re: General dark theme (not only for editor)
« Reply #4 on: February 09, 2018, 11:25:12 pm »
By the way I already changed the Application Color Scheme in Colors-System Settings (openSUSE), and that's why KDevelop changed its theme. But Code::Blocks does not implement that change.

jleon

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: General dark theme (not only for editor)
« Reply #5 on: February 10, 2018, 02:39:28 am »
You've changed the qt theme, now change the gtk+ theme and it will work. There are some gtk themes that use the qt drawing, so you could make it work consistently. But I don't know details. Search the net.
(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 jleon

  • Single posting newcomer
  • *
  • Posts: 5
Re: General dark theme (not only for editor)
« Reply #6 on: February 12, 2018, 09:59:03 pm »
Thanks a lot. After some hours of trying I finally managed to get to the right settings.

Configure desktop->Appearance->Application Style- GNOME Application Style (GTK)
Select GTK2 Theme: Breeze-Dark
Select GTK3 Theme: Breeze-Dark


jleon

Offline jleon

  • Single posting newcomer
  • *
  • Posts: 5
Re: General dark theme (not only for editor)
« Reply #7 on: February 12, 2018, 10:14:54 pm »
The final result was:


Offline Sahadat Husain

  • Single posting newcomer
  • *
  • Posts: 2
    • Latest Tech Blog
Re: General dark theme (not only for editor)
« Reply #8 on: July 29, 2021, 10:51:21 am »
No, it is not possible. You can set the dark mode for all the app by following these steps. Setting >> Personalization >> color >> dark theme

To download 15 code blocks dark theme and step by step guide to install it you can follow this article: https://nextprotips.com/how-to-install-codeblocks-dark-theme
Sahadat Husain

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: General dark theme (not only for editor)
« Reply #9 on: July 29, 2021, 11:32:56 am »
@Sahadat Husain: You're posting in the wrong topic.

Just for reference: https://trac.wxwidgets.org/ticket/19223
Still not possible on Windows and if wxWidgets continues to be Win32 API based, it won't be possible for a long while...
(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!]

wfzhangtong

  • Guest
Re: General dark theme (not only for editor)
« Reply #10 on: November 19, 2022, 10:46:19 am »
CodeLite also uses wxWidgets, but it supports dark mode on Windows 10.
So I think CodeBlocks should be able to implement dark mode in the same way.

Offline vwdvaan

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: General dark theme (not only for editor)
« Reply #11 on: November 15, 2023, 10:26:29 pm »
We need to wait for wxWidgets 3.3.x. Has the dark mode implemented.

https://docs.wxwidgets.org/latest/classwx_app.html#af8c93d7e3345e62a58325f3ab1d158d6

« Last Edit: November 16, 2023, 07:03:13 am by vwdvaan »
Win 10, MinGW 122.0, wxWidgets 3.1.7

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: General dark theme (not only for editor)
« Reply #12 on: November 15, 2023, 11:05:23 pm »
We need to wait for wxWidgets 3.2.x. Has the dark mode implemented.

https://docs.wxwidgets.org/latest/classwx_app.html#af8c93d7e3345e62a58325f3ab1d158d6

That link is for wxWidgets 3.3.0 and up not 3.2.x
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