# Anybody done a dark theme for swipl-win and the edit window?

**URL:** <https://swi-prolog.discourse.group/t/anybody-done-a-dark-theme-for-swipl-win-and-the-edit-window/4554>\
**Category:** Discussion\
**Created:** [October 13, 2021, 7:09pm UTC](https://swi-prolog.discourse.group/t/anybody-done-a-dark-theme-for-swipl-win-and-the-edit-window/4554 "2021-10-13T19:09:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wisermans](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/wisermans/32/3113_2.png) [@Wisermans](https://swi-prolog.discourse.group/u/Wisermans)\
**Post date:** [October 13, 2021, 7:09pm UTC](https://swi-prolog.discourse.group/t/anybody-done-a-dark-theme-for-swipl-win-and-the-edit-window/4554/1 "2021-10-13T19:09:01Z")

</div>

I looked around and saw that there was a [dark.pl](https://www.swi-prolog.org/pldoc/doc/_SWI_/library/theme/dark.pl?show=src) file that could be modified knowing that it is named dark but in fact it is what is now named a “black theme” to make the difference in between dark and black background.

Bug ? It is autoloaded under my Linux Manjaro KDE Plasma as i use dark by default on my system but the editor keeps being on a white background, when i open a pl file from swipl-win.

So i was wondering if some members of the community had been facing the same problem or had done their own custom dark theme ?

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [October 14, 2021, 9:19am UTC](https://swi-prolog.discourse.group/t/anybody-done-a-dark-theme-for-swipl-win-and-the-edit-window/4554/2 "2021-10-14T09:19:51Z")

</div>

??. Starting swipl-win on Linux and doing

```
?- [library(theme/dark)].

```

Turns the console dark and subsequent editors dark. So, what exactly are you doing? Don’t expect the `auto` theme to work. It only works from `swipl` when running from a terminal in dark mode that supports ANSI color inspection.

---

<div class="post-metadata">

**Author:** ![Wisermans](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/wisermans/32/3113_2.png) [@Wisermans](https://swi-prolog.discourse.group/u/Wisermans)\
**Post date:** [October 14, 2021, 11:12am UTC](https://swi-prolog.discourse.group/t/anybody-done-a-dark-theme-for-swipl-win-and-the-edit-window/4554/3 "2021-10-14T11:12:33Z")

</div>

The configuration where i installed swipl is a Manjaro KDE Plasma (Arch Linux) and i am looking at finding an easy way to have my background / main text color in the pce editor and the graphical debugger fitting to my Linux color theme.

As far as i understood all is to be done manually if i want it to fit to my theme.

In swipl-win I get the menus and so on correctly displayed in my theme as i suppose that it is linked to the system but text is displayed in a flashy way with lines of chars on white background. If i use dark.pl it changes background to black. So at minimum my question is where can i change those chars background ?

In the pce editor or graphical debugger, it is a light theme that is used (may it be dark or not) i-e no consistency vs swipl-win and i am wondering where the background color can be changed as the editor configuration files seem to be just about fonts and their size and dark.pl not having such info.

EDIT: As i prefer using VI + swipl in the terminal, my personal main concern is more about the pce editor and graphical debugger colors configuration.
