Author Topic: Dark Mode for Text Editor  (Read 2241 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Dark Mode for Text Editor
« on: January 22, 2023, 08:28:03 AM »
Does anyone know how to set the dark mode for the text editor in the file manager as default? Whenever I save a file it reverts back to light mode so I'm finding myself clicking the dark mode switch constantly. I just want to set it as default as I never use the light mode. Is this possible?

Offline
****
Re: Dark Mode for Text Editor
« Reply #1 on: January 22, 2023, 06:35:37 PM »
Unfortunately, the code editor is IonCube encoded, which makes it rather opaque:
Code: [Select]
/usr/local/cwpsrv/var/services/users/codeEditor.php
Maybe you could use a browser plugin to flip the form control around:
Code: [Select]
<select class="form-control" onchange="selectTheme(this.value)" data-ddg-inputtype="unknown">
                    <option value="default">Light Mode</option>
                    <option value="monokai">Dark Mode</option>
                </select>

Meanwhile, if you want to fix the English grammar of the File Manager interface, the file to edit is here:
/usr/local/cwpsrv/var/services/users/cwp_lang/en/filemanager.ini