Menu

Dark mode colors

GigiG
2022-07-28
2022-12-14
  • GigiG

    GigiG - 2022-07-28

    Hi all and thanks for this great project. Is there a way to change colors of DarkMode by editing js or css file? If so, where can I find those files and the relevant lines?
    Gigi

     
  • Ramiro  Prieto Alvarez

    The changes are located in the .oscuro class inside the following .css files

    ai2blockly.css
    blockly.css
    gwt.css
    Ya.css

     
  • Andrew Williams

    Andrew Williams - 2022-11-27

    Thanks for pointing this out to us Ramiro.
    I'm loving using this ai2offline and am very very grateful for your work to bring it to us, I also very much like working in dark mode.

    That being said that neon green was not making my day, so I came up with something a a little more tame.
    This is what I have done so far. Let me know if you want the files when I'm done.

     

    Last edit: Andrew Williams 2022-11-28
  • Ramiro  Prieto Alvarez

    It looks much cleaner that way.If you choose to share your changes, they will be gladly included in a future update.Cheers

     
  • Andrew Williams

    Andrew Williams - 2022-11-28

    No worries, I'm currently parameterize all the colors into CSS vars so you could just change 5 or so colors in one spot and get the completely new theme.
    Is this the best place to post a zip file when I'm done?

     
  • Andrew Williams

    Andrew Williams - 2022-11-28

    Well here is what I have so far, I went a little darker on the headers and main background but I think it looks pretty sweet.
    Just backup the files: ai2blockly.css, blockly.css, gwt.css, Ya.css and extract the zip file into war/static/css and enjoy!

    PS: Ramiro, please let me know how I can help more.

     
  • GigiG

    GigiG - 2022-11-28

    Hi Andrew, I tried replacing the original css files with yours but DarkMode the neon green is still there ...

     

    Last edit: GigiG 2022-11-28
  • Andrew Williams

    Andrew Williams - 2022-11-28

    GigiG Make sure to hold shift when you reload your browser they like to cache css. or just clear cache.

     
  • GigiG

    GigiG - 2022-11-28

    Great dark theme! Thanks

     
    👍
    1
  • Ramiro  Prieto Alvarez

    Great job, I found a small detail in the text color of the comments.

     
    • Andrew Williams

      Andrew Williams - 2022-11-28

      I see it, --text-dark-color works here

       
  • Ramiro  Prieto Alvarez

    it's a change in blockly.css and it's fixed

     

    Last edit: Ramiro Prieto Alvarez 2022-11-28
    • Andrew Williams

      Andrew Williams - 2022-11-28

      I have as follows, trying to stick to the variables to promote theming.
      We can always add some more as we go for a larger palette.

       
      👍
      1
  • Ramiro  Prieto Alvarez

    Thanks to Andrew Williams, it's now easier to edit the colors for dark mode in the Ya.css file.

     
  • Andrew Williams

    Andrew Williams - 2022-12-14

    Ramiro we missed the import extension dialog styling of the tabs.
    I've added the following locally to gwt.css, its basically a copy of buttons without the round corners and a thicker border.

    .oscuro .gwt-TabBar .gwt-TabBarItem {
    margin: 0px 5px 0px 0px;
    padding: 3px 6px 3px 6px;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    background-color: var(--button-color);
    border: 2px solid #cccccc;
    border-color: #e6e6e6 #e6e6e6 #bfbfbf;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    border-bottom-color: var(--light-bg-color);
    transform: scale(1); / Standard Property /
    transform-origin: 0 0; / Standard Property /
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .oscuro .gwt-TabBar .gwt-TabBarItem .gwt-Label {
    color: var(--text-dark-color);
    }

    .oscuro .gwt-TabBar .gwt-TabBarItem-selected {
    cursor: default;
    border-color: #e6e6e6 #e6e6e6 #bfbfbf;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    background-color: var(--light-bg-color);
    background-position: 0 -15px;
    -webkit-transition: background-position 0.1s linear;
    -moz-transition: background-position 0.1s linear;
    -o-transition: background-position 0.1s linear;
    transition: background-position 0.1s linear;
    }

    .oscuro .gwt-TabBar .gwt-TabBarItem-selected .gwt-Label {
    color: var(--text-sec-color);
    }

     
  • Ramiro  Prieto Alvarez

    OK, it will be included in the next update

     
    👍
    1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.