Results 1 to 4 of 4

Thread: Color schemes

  1. #1
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default Color schemes

    Hi all! In Simba 1.3, you can change the colors in your editor window! (Edit > Colors)

    This means Simba can be given a true dark theme for the first time.

    Here's an example:

    And here's the code used to generate it.

    Code:
    [Gutter]
    ecGutter.Background=2147483648
    ecGutterLineNumberPart.Foreground=14995159
    ecGutterLineNumberPart.Background=2147483649
    ecGutterLineNumberPart.Style=0
    ecGutterChangesPart.Foreground=32768
    ecGutterChangesPart.Background=536870911
    ecGutterChangesPart.Style=0
    ecGutterCodeFoldPart.Foreground=8421504
    ecGutterCodeFoldPart.Background=536870911
    ecGutterCodeFoldPart.Style=0
    ecGutterMarksPart.Foreground=65280
    ecGutterMarksPart.Background=65280
    ecGutterMarksPart.Style=0
    ecGutterSeparatorPart.Foreground=8421504
    ecGutterSeparatorPart.Background=15780518
    ecGutterSeparatorPart.Style=0
    
    [Editor]
    ecEdtior.Background=2147483648
    ecRightEdge.Foreground=12632256
    ecLineHighlight.Foreground=16777215
    ecLineHighlight.Background=8421504
    ecLineHighlight.Style=0
    ecFoldedCode.Foreground=255
    ecFoldedCode.Background=255
    ecFoldedCode.Style=0
    ecFoldedCodeLine.Foreground=255
    ecFoldedCodeLine.Background=255
    ecFoldedCodeLine.Style=0
    ecBracketMatch.Foreground=16776960
    ecBracketMatch.Background=536870911
    ecBracketMatch.Style=1
    
    [Highlighter]
    ecAttrAsm.Foreground=15793151
    ecAttrAsm.Background=536870911
    ecAttrAsm.Style=0
    ecAttrAsm.FrameEdges=1
    ecAttrAsm.FrameColor=536870911
    ecAttrAsm.FrameStyle=0
    ecAttrCase.Foreground=15793151
    ecAttrCase.Background=536870911
    ecAttrCase.Style=0
    ecAttrCase.FrameEdges=1
    ecAttrCase.FrameColor=536870911
    ecAttrCase.FrameStyle=0
    ecAttrComment.Foreground=8421504
    ecAttrComment.Background=536870911
    ecAttrComment.Style=1
    ecAttrComment.FrameEdges=1
    ecAttrComment.FrameColor=536870911
    ecAttrComment.FrameStyle=0
    ecAttrPreProc.Foreground=16776960
    ecAttrPreProc.Background=536870911
    ecAttrPreProc.Style=1
    ecAttrPreProc.FrameEdges=1
    ecAttrPreProc.FrameColor=536870911
    ecAttrPreProc.FrameStyle=0
    ecAttrPreProc2.Foreground=16776960
    ecAttrPreProc2.Background=536870911
    ecAttrPreProc2.Style=0
    ecAttrPreProc2.FrameEdges=1
    ecAttrPreProc2.FrameColor=536870911
    ecAttrPreProc2.FrameStyle=0
    ecAttrIdent.Foreground=15793151
    ecAttrIdent.Background=536870911
    ecAttrIdent.Style=0
    ecAttrIdent.FrameEdges=1
    ecAttrIdent.FrameColor=536870911
    ecAttrIdent.FrameStyle=0
    ecAttrNumber.Foreground=2147483661
    ecAttrNumber.Background=536870911
    ecAttrNumber.Style=0
    ecAttrNumber.FrameEdges=1
    ecAttrNumber.FrameColor=536870911
    ecAttrNumber.FrameStyle=0
    ecAttrReserved.Foreground=10855724
    ecAttrReserved.Background=536870911
    ecAttrReserved.Style=1
    ecAttrReserved.FrameEdges=1
    ecAttrReserved.FrameColor=536870911
    ecAttrReserved.FrameStyle=0
    ecAttrSpacing.Foreground=536870911
    ecAttrSpacing.Background=536870911
    ecAttrSpacing.Style=0
    ecAttrSpacing.FrameEdges=1
    ecAttrSpacing.FrameColor=536870911
    ecAttrSpacing.FrameStyle=0
    ecAttrString.Foreground=2147483661
    ecAttrString.Background=536870911
    ecAttrString.Style=0
    ecAttrString.FrameEdges=1
    ecAttrString.FrameColor=536870911
    ecAttrString.FrameStyle=0
    ecAttrOperator.Foreground=10855724
    ecAttrOperator.Background=536870911
    ecAttrOperator.Style=0
    ecAttrOperator.FrameEdges=1
    ecAttrOperator.FrameColor=536870911
    ecAttrOperator.FrameStyle=0
    I've named this color scheme "DarkBlue." Note the full dark theme relies on a windowing toolkit (GTK) to modify colors outside of the editor. I don't believe this can be done on Windows, for instance. You can still use a dark editor theme!

    Edit:

    I am still learning the color editor. Can anyone find out how to change the colors of the red and yellow boxes in this image?


    Edit 2:

    Here's an attempt at a solarized color scheme. It looks ok with my same GTK theme.



    Code:
    [Gutter]
    ecGutter.Background=2147483663
    ecGutterLineNumberPart.Foreground=536870911
    ecGutterLineNumberPart.Background=2147483663
    ecGutterLineNumberPart.Style=0
    ecGutterChangesPart.Foreground=32768
    ecGutterChangesPart.Background=536870911
    ecGutterChangesPart.Style=0
    ecGutterCodeFoldPart.Foreground=8421504
    ecGutterCodeFoldPart.Background=536870911
    ecGutterCodeFoldPart.Style=0
    ecGutterMarksPart.Foreground=536870911
    ecGutterMarksPart.Background=2147483663
    ecGutterMarksPart.Style=0
    ecGutterSeparatorPart.Foreground=8421504
    ecGutterSeparatorPart.Background=16777215
    ecGutterSeparatorPart.Style=0
    
    [Editor]
    ecEdtior.Background=3549952
    ecRightEdge.Foreground=12632256
    ecLineHighlight.Foreground=536870911
    ecLineHighlight.Background=536870911
    ecLineHighlight.Style=0
    ecFoldedCode.Foreground=8421504
    ecFoldedCode.Background=536870911
    ecFoldedCode.Style=0
    ecFoldedCodeLine.Foreground=536870911
    ecFoldedCodeLine.Background=536870911
    ecFoldedCodeLine.Style=0
    ecBracketMatch.Foreground=536870911
    ecBracketMatch.Background=536870911
    ecBracketMatch.Style=1
    
    [Highlighter]
    ecAttrAsm.Foreground=536870911
    ecAttrAsm.Background=536870911
    ecAttrAsm.Style=1
    ecAttrAsm.FrameEdges=1
    ecAttrAsm.FrameColor=536870911
    ecAttrAsm.FrameStyle=0
    ecAttrCase.Foreground=536870911
    ecAttrCase.Background=536870911
    ecAttrCase.Style=0
    ecAttrCase.FrameEdges=1
    ecAttrCase.FrameColor=536870911
    ecAttrCase.FrameStyle=0
    ecAttrComment.Foreground=7040600
    ecAttrComment.Background=536870911
    ecAttrComment.Style=1
    ecAttrComment.FrameEdges=1
    ecAttrComment.FrameColor=536870911
    ecAttrComment.FrameStyle=0
    ecAttrPreProc.Foreground=1526730
    ecAttrPreProc.Background=536870911
    ecAttrPreProc.Style=1
    ecAttrPreProc.FrameEdges=1
    ecAttrPreProc.FrameColor=536870911
    ecAttrPreProc.FrameStyle=0
    ecAttrPreProc2.Foreground=536870911
    ecAttrPreProc2.Background=536870911
    ecAttrPreProc2.Style=0
    ecAttrPreProc2.FrameEdges=1
    ecAttrPreProc2.FrameColor=536870911
    ecAttrPreProc2.FrameStyle=0
    ecAttrIdent.Foreground=13339430
    ecAttrIdent.Background=536870911
    ecAttrIdent.Style=1
    ecAttrIdent.FrameEdges=1
    ecAttrIdent.FrameColor=536870911
    ecAttrIdent.FrameStyle=0
    ecAttrNumber.Foreground=39300
    ecAttrNumber.Background=536870911
    ecAttrNumber.Style=1
    ecAttrNumber.FrameEdges=1
    ecAttrNumber.FrameColor=536870911
    ecAttrNumber.FrameStyle=0
    ecAttrReserved.Foreground=35253
    ecAttrReserved.Background=536870911
    ecAttrReserved.Style=1
    ecAttrReserved.FrameEdges=1
    ecAttrReserved.FrameColor=536870911
    ecAttrReserved.FrameStyle=0
    ecAttrSpacing.Foreground=536870911
    ecAttrSpacing.Background=536870911
    ecAttrSpacing.Style=0
    ecAttrSpacing.FrameEdges=1
    ecAttrSpacing.FrameColor=536870911
    ecAttrSpacing.FrameStyle=0
    ecAttrString.Foreground=39300
    ecAttrString.Background=536870911
    ecAttrString.Style=1
    ecAttrString.FrameEdges=1
    ecAttrString.FrameColor=536870911
    ecAttrString.FrameStyle=0
    ecAttrOperator.Foreground=9407612
    ecAttrOperator.Background=536870911
    ecAttrOperator.Style=1
    ecAttrOperator.FrameEdges=1
    ecAttrOperator.FrameColor=536870911
    ecAttrOperator.FrameStyle=0
    Last edited by KeepBotting; 05-12-2020 at 07:42 PM.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  2. #2
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    Pleasant
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

  3. #3
    Join Date
    Jan 2012
    Location
    in a galaxy far far away
    Posts
    371
    Mentioned
    3 Post(s)
    Quoted
    48 Post(s)

    Default

    no windows? :/ looks really cool though!
    >:)

  4. #4
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by chief herb View Post
    no windows? :/ looks really cool though!
    You can still change the editor colors on Windows. I don't know of a way to theme the rest of the window like you can with GTK. I'm sure there's a way, but it probably relies on third-party programs or files.

    A quick Google search turns up threads like this, which mostly contains instructions for enabling dark theme presets on a few specific programs (Settings, Edge, Office), and installing themes as add-ons for web browsers.

    However, it’s up to each developer to support Dark Mode, and many do not. And, as we mentioned before, this option doesn’t affect most desktop applications. Those remain white.
    In short, you can kinda do a dark theme for some programs but not all. Simba won't be affected by this change. The article then instructs in enabling a high-contrast theme, which is not the same as a dark theme.

    Setting this high contrast theme makes most desktop applications show a dark background. However, they don’t look all that great. High contrast themes are an accessibility feature designed to increase contrast, so the screen is easier to read and understand. They don’t look nearly as slick as a modern dark theme would.
    After that, a third-party program is actually recommended (never mind the fact that it costs $9.99!).

    So yes, you can do this but unless you augment Windows' poor theme support, it's not going to look great. Maybe you could use Rainmeter or something else that's gratis?
    Last edited by KeepBotting; 08-05-2019 at 08:19 PM. Reason: s/free/gratis/
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •