Jump to content

AutoIT Editor Dark Theme


ssah8
 Share

Recommended Posts

The newest SciTE comes with a dark theme, cool !, now switching back to light(standard) theme, there are leftovers from the dark theme, so, i merged those two and recreate them to not leave leftovers from the prior (Light/Dark). Did not do it for all the themes, just those two default standard themes.

Spoiler
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# START: DO NOT CHANGE ANYTHING AFTER THIS LINE     #-#-#-#-# https://www.scintilla.org/SciTEDoc.html
# Light SciTE4AutoIt3 Color scheme
#------------------------------------------------------------
font.base=font:Verdana,size:10,$(font.override)
font.monospace=font:Courier New,size:10

error.marker.fore=#FFFF00
error.marker.back=#FFFF00                           ; on error event: side marker and console highlight

style.*.32=fore:#202020,back:#F0F4F9,$(font.base)   ; 32 is the default style and its features will be inherited by all other styles unless overridden.
style.au3.32=style.*.32=$(font.base),back:#F0F4F9   ; Background color
caret.line.back=#FFFED8
caret.line.back.alpha=256
caret.fore=#000000
selection.fore=#C200AE
selection.alpha=50
selection.back=#090909

style.error.0=fore:#F0F0F0,back:#FF0000
style.error.1=fore:#FFFF00,back:#FF0000
style.error.2=fore:#FF0000,back:#FFFFFF

highlight.current.word.colour=#C2FFAE
highlight.current.word.by.style=0                   ; NEEDED to fix globl highligh in #forceref
highlight.current.word.minlength=2                  ; NEEDED to fix global highlight for simple variable as $a

style.au3.38=fore:#DADADA,back:#F0F4F9              ; Calltips colors
calltips.color.highlight=#e7db74

style.*.33=fore:#000000,back:#C0C0C0,$(font.base)   ; 33 is used to display line numbers in the margin.
fold.margin.colour=#F0F4F9                          ;checkerboard pixel patter color 1 around fold trees
fold.margin.highlight.colour=#DDDDDD                ;checkerboard pixel patter color 2 around fold trees
fold.back=#DDDDDD                                   ;Color of symbol fill

style.au3.37=fore:#060606,back:#F0F4F9          ; indentation line

style.au3.34=fore:#0000FF,back:#F0F4F9          ; Brace highlight
style.au3.35=fore:#009933,back:#F0F4F9          ; Brace incomplete highlight

style.au3.0=fore:#000000,back:#F0F4F9           ; White space >>> must be #000000 but used by "User UDF's"
style.au3.1=fore:#008000,italics,back:#F0F4F9   ; Comment line
style.au3.2=fore:#008000,italics,back:#F0F4F9   ; Comment block
style.au3.3=fore:#0000FF,back:#F0F4F9           ; Number
style.au3.4=fore:#000090,back:#F0F4F9           ; Function
style.au3.5=fore:#0000FF,back:#F0F4F9           ; Keyword
style.au3.6=fore:#808000,back:#F0F4F9           ; Macro
style.au3.7=fore:#FF0000,back:#F0F4F9           ; String
style.au3.8=fore:#FF8000,back:#F0F4F9           ; Operator
style.au3.9=fore:#5A5A5A,back:#F0F4F9           ; Variable
style.au3.10=fore:#808080,back:#F0F4F9          ; Send keys in string
style.au3.11=fore:#808000,back:#F0F4F9          ; Pre-Processor
style.au3.12=fore:#DC143C,back:#F0F4F9          ; Special
style.au3.13=fore:#FF0000,back:#F0F4F9          ; Abbrev-Expand
style.au3.14=fore:#993399,back:#F0F4F9          ; COM Objects
style.au3.15=fore:#0080FF,back:#F0F4F9          ; Standard UDF's
style.au3.16=fore:#80C0FF,back:#F0F4F9          ; User UDF's >>> BUG "White space" is used

style.errorlist.32=$(font.base),back:#F0F4F9    ; ConsoleWrite output background color
style.errorlist.0=fore:#090909                  ; Actual consoleWrite output
style.errorlist.3=fore:#2A2A2A                  ; starting with @
style.errorlist.4=fore:#0000FF                  ; starting with >
style.errorlist.10=fore:#FF0000                 ; starting with !
style.errorlist.11=fore:#007F00,bold,           ; starting with +
style.errorlist.12=fore:#FF8800 #AF20C0         ; starting with -
style.errorlist.13=fore:#804000,bold,           ; starting with ---

# END => DO NOT CHANGE ANYTHING BEFORE THIS LINE  #-#-#-#-#-#
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

 

Spoiler
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# START: DO NOT CHANGE ANYTHING AFTER THIS LINE     #-#-#-#-# https://www.scintilla.org/SciTEDoc.html
# Dark SciTE4AutoIt3 Color scheme
#------------------------------------------------------------
font.base=font:Verdana,size:10,$(font.override)
font.monospace=font:Courier New,size:10

error.marker.fore=#9D004F
error.marker.back=#9D004F                           ; on error event: side marker and console highlight

style.*.32=fore:#D0D0D0,back:#202020,$(font.base)   ; 32 is the default style and its features will be inherited by all other styles unless overridden.
style.au3.32=style.*.32=$(font.base),back:#202020   ; Background color
caret.line.back=#333333
caret.line.back.alpha=256
caret.fore=#FFFFFF
selection.fore=#C2FFAE
selection.alpha=50
selection.back=#f9f9f9

style.error.0=fore:#FF0000,back:#F0F0F0
style.error.1=fore:#FF0000,back:#FFFF00
style.error.2=fore:#FFFFFF,back:#FF0000

highlight.current.word.colour=#C2FFAE
highlight.current.word.by.style=0                   ; NEEDED to fix globl highligh in #forceref
highlight.current.word.minlength=2                  ; NEEDED to fix global highlight for simple variable as $a

style.au3.38=fore:#DADADA,back:#202020              ; Calltips colors
calltips.color.highlight=#e7db74

style.*.33=fore:#DADADA,back:#202020,$(font.base)   ; 33 is used to display line numbers in the margin.
fold.margin.colour=#202020                          ;checkerboard pixel patter color 1 around fold trees
fold.margin.highlight.colour=#333333                ;checkerboard pixel patter color 2 around fold trees
fold.back=#333333                                   ;Color of symbol fill

style.au3.37=fore:#606060,back:#202020          ; indentation line

style.au3.34=fore:#00F0F0,back:#202020          ; Brace highlight
style.au3.35=fore:#00FF80,italics,back:#202020  ; Brace incomplete highlight

style.au3.0=fore:#80C0FF,back:#202020           ; White space >>> must be #000000 but used by "User UDF's"
style.au3.1=fore:#60A060,italics,back:#202020   ; Comment line
style.au3.2=fore:#60A060,italics,back:#202020   ; Comment block
style.au3.3=fore:#AE81FF,back:#202020           ; Number
style.au3.4=fore:#8080FF,back:#202020           ; Function
style.au3.5=fore:#C0FFFF,back:#202020           ; Keyword
style.au3.6=fore:#A0A000,back:#202020           ; Macro
style.au3.7=fore:#E6DB74,back:#202020           ; String
style.au3.8=fore:#FF8000,back:#202020           ; Operator
style.au3.9=fore:#D0D0D0,back:#202020           ; Variable
style.au3.10=fore:#A0A0A0,back:#202020          ; Send keys in string
style.au3.11=fore:#8996A8,back:#202020          ; Pre-Processor
style.au3.12=fore:#FFAAB7,back:#202020          ; Special
style.au3.13=fore:#FF80C0,back:#202020          ; Abbrev-Expand
style.au3.14=fore:#993399,back:#202020          ; COM Objects
style.au3.15=fore:#0080FF,back:#202020          ; Standard UDF's
style.au3.16=fore:#80C0FF,back:#202020          ; User UDF's >>> BUG "White space" is used

style.errorlist.32=$(font.base),back:#333333    ; ConsoleWrite output background color
style.errorlist.0=fore:#F9F9F9                  ; Actual consoleWrite output
style.errorlist.3=fore:#DADADA                  ; starting with @
style.errorlist.4=fore:#32FFFF                  ; starting with >
style.errorlist.10=fore:#FF0000                 ; starting with !
style.errorlist.11=fore:#EA9515,bold,           ; starting with +
style.errorlist.12=fore:#E6DB74 #FF0000         ; starting with -
style.errorlist.13=fore:#E87400,bold,           ; starting with ---


# END => DO NOT CHANGE ANYTHING BEFORE THIS LINE  #-#-#-#-#-#
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

 

...I've got to this back and forth due to Switching to and from "High contrast" windows themes, so I wanted to do the same flawlessly in SciTE, hence the above code.

Do your own copy and paste, or to a new file, just in case you wanna keep the original install, original.

WARNING: These themes are gravely flawed ( as discussed farther down ). Side effect include messing up any other extension type coloring due to inclusions of global parameters, out of place in a user only configuration file !!!.

It will be better to check out the betas that are available.

Edited by argumentum
added warning

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

...practically the same. I could have save me a good 4 hours if I dared look at the betas.
There is a thing or 2 that are missing in the betas that would be handy. One is the "triple dash" color that comes out brown default, I've added that, and the other is the default color for other text files, to keep it align with the concept of a dark or light theme.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

  • Developers

I'll  match your file with the current beta to see the differences.

Thanks Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers
On 11/9/2019 at 9:32 PM, Jos said:

I'll  match your file with the current beta to see the differences.

Thanks Jos

I looked at your files, but there are too many differences for a simple match so needs work. Also no idea which one you used for your "light" version you posted. 
@jpm worked on the current dark version so maybe he can have a look to see what we like to copy into the current version?

Jos 

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Not sure too understand what is proposed against what I submit. for dark

I just see the number and the keyword color swap. If I remmber what I did I try to fit the VSCode color.

YHe only think I did not manage (perhaps widows change since I test it) is the color of the vertu=ical indent line .

When using dark an after standard (light) the line is more dark than the default value (without using the SciteConfig value)

Just post where you can see Something which is not so cute so I can improve if needed.

Cheers

Link to comment
Share on other sites

Your dark theme is great, going back was not so great :(
So I fixed that in the standard theme.

The only thing I've added to your dark theme ( and matched it in the standard theme ) , is to have the default for other ( non-au3 ), a blackish background on whiteish text, as to not hurt my eyes for the sudden increase of brightness, as I use SciTE for most everything.

As a side note: I have a 35 inch as my main monitor and my eyesight is going down, fast. These sudden change in brightness, really does a number on me, therefore my attention to change everything I can to a dark theme. I use your dark theme's colors. I like them :) 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

Hi,

I checkcarefully your .SCiteConfig and I found out  that your propose blackisl/Whiteish is ok for Text file but no so good for .lua .html, … files

Neverther less I cannot find a solution for those files.

Another remarks is I cannot find where

error.marker.fore=#9D004F
error.marker.back=#9D004F                           ; on error event: side marker and console highlight
 

have influence can you tell me how to see the impact you propose?

Cheers

Link to comment
Share on other sites

error.marker.=xxx is not that really important given the true problem.

..it's a pickle @jmp. None of these ( windows OS or windows programs ), are designed for such radical change in visual style.
One would have to change every file for every language ( .lua, .html, etc ), and/or change the global file too.

I'll add your findings to my posting warning of the global side effects of its usage. :oops:

Please disregard my simplistic approach, as it would truly need a whole new global theme changer and not just for .au3 .
It's an undergoing that is quite time consuming and most likely, not backward compatible to prior releases of our SciTE to implement either.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

  • 2 months later...
On 11/29/2018 at 4:18 PM, mLipok said:

btw anybody focus on this settings

  Quote

style.au3.33=fore:#E4E4E4,back:#333333,$(font.base)            # Main pane - line numbers in the margin
style.au3.34=fore:#000000,bold,back:#00FA00                    # Main pane - matching braces respectively
style.au3.35=fore:#000000,italics,back:#FF0000                # Main pane - non-matching braces respectively
style.au3.36=fore:#000000,italics,back:#FF0000                # Main pane - used for displaying control characters
style.au3.37=fore:#777777,back:777777                        # Main pane - used for displaying indentation guides
style.au3.38=fore:#FFFFFF,back:#171717                        # Main pane - used for displaying calltips

 

Where did you get the definitions for the different styles?  (eg. 34 = matching braces)

Link to comment
Share on other sites

from SciTE doc 

https://www.scintilla.org/SciTEDoc.html

Quote

style.lexer.32
style.lexer.33
style.lexer.34
style.lexer.35
style.lexer.36
style.lexer.37
style.lexer.38

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

  • 1 month later...

Revisiting this...

I made my own theme with muted colors (if the point is to be relaxing to the eyes, then I need to avoid white and bright pink, etc).

The only problem I have is the cursor is just about the same color as the background, and it's thin to start with.  This is a problem at the start of the line or just to the right of a matching parenthesis, for example.  Can we set the cursor color?

Link to comment
Share on other sites

3 hours ago, quickbeam said:

The only problem I have is the cursor is just about the same color as the background

image.png.dc6eae27d5b847cc53f811a6533f92bb.png
the cursor looks OK in my setup. Then again, I'm using a dark theme ( High contrast tweak ), so if you use a "regular" windows, the cursor will be black instead of white, as the picture of my setup above shows.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

  • 3 months later...

I don't know if anyone has updated this thread but, Tools>SciTeTools>EditorColours> (click on the change scheme button at the bottom left of the window) > SciTe auto darkmode (or something similar).

 

Im very tired rn so I'm sorry if I didn't catch anyone else say this already

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...