GithubHelp home page GithubHelp logo

Comments (3)

alexbabits avatar alexbabits commented on June 13, 2024 2

Fix: Change Inherited State Var color (you can also change other colors if you want):

  1. Locate the extension on your machine. I'm using WSL and I found mine simply at home/.vscode-server/extensions/tintinweb.solidity-visual-auditor-0.2.0. If you are viewing this later, the version or naming might be slightly different.
  2. Go into src/features/deco.js
  3. Search for darkblue. Line 627 has the darkblue CSS decoration style, change it to whatever color you want, like aqua.
  4. Reload your project in VSCode and the color should update.

For some reason there is no color on my inherited functions, which were also dark blue. (But I think this is a general bug with VSCode because inherited functions sometimes simply don't register properly).

Find CSS colors here: https://www.w3.org/wiki/CSS/Properties/color/keywords

from vscode-solidity-auditor.

alexbabits avatar alexbabits commented on June 13, 2024 1

I agree++. I was looking for a way to change the color of dark blue semantic highlighting for inherited things to something more visible.

The documents currently seem to say that the colors are set in stone: https://marketplace.visualstudio.com/items?itemName=tintinweb.solidity-visual-auditor

"
Solidity-va.deco.statevars ... decorate statevars in code view (golden, green, blue boxes)
Solidity-va.deco.arguments ... enable/disable or select the mode for semantic highlighting of function arguments. (default: 'enable' = 'color and arrow')
Solidity-va.deco.argumentsMode ... select the mode for semantic highlighting of function arguments (may require a reload)
Solidity-va.deco.argumentsSuffix ... a custom Suffix/Symbol that is appended to the decoration when performing semantic highlighting for function arguments
"

from vscode-solidity-auditor.

Minh-Trng avatar Minh-Trng commented on June 13, 2024

@alexbabits great find! Will leave the issue open, so you can do a PR that changes the defaults if you want to :)

from vscode-solidity-auditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.