pran-jal / Night-Owl-Theme-VS-Code

Night Owl Theme for vs code
https://marketplace.visualstudio.com/items?itemName=AncientLord.nightowl-theme
3 stars 2 forks source link

New settings for Python language and organization by language in Json file #2

Closed AyslanBatista closed 2 weeks ago

AyslanBatista commented 7 months ago

New settings for Python language

1. Python Metafunction

{
  "name": "[Python] Meta function",
  "scope": "meta.function.python",
  "settings": {
  "foreground": "#2b76e6"
  }
},

Allows you to view modules imported from the "typing" library in the function attributes with highlighted color.

before ⇾ after

Old-typing


2. Python Assignment

{ 
  "name": "[Python] Assignment",
  "scope": "keyword.operator.assignment.python",
  "settings": {
  "foreground":  "#51d6cf",
  }
},

I changed the color of the "=" assignment operator, to differentiate it from the "==" operator, making the code easier to read.

before ⇾ after

Old-typing


3. Python ALL CAPS

{   
  "name": "[Python] ALL CAPS",
  "scope": "constant.other.caps",
  "settings": {
  "fontStyle": "bold",
  "foreground": "#F78C6C",
  }
},

Variables with capital letters are considered "constants", and using other themes like Gruvbox, I realized that it helps a lot when reading the code to have these variables well highlighted.

before ⇾ after

Old-Variavel-Env


4. Python Docstring | Python Decorator

{
  "name": "[Python] Docstring",
  "scope": [
  "string.quoted.docstring.multi.python",
  "string.quoted.docstring.raw.multi.python",
  ],
  "settings": {
  "foreground": "#577997",
  "fontStyle": "italic",
  }
},
{
  "name": "[Python] Decorator Functions",
  "scope": "entity.name.function.decorator.python",
  "settings": {
  "foreground": "#a3ff86",
  "fontStyle": "bold",
  }
},

I changed the color of the "Docstrings" in Python and left the decorator bold. The reason for this is that when taking a code that had many decorators, a large docstring in the function and many strings within the function, I felt that the colors made the code very cluttered and difficult to visualize.

before ⇾ after

Old-Decoraitor-Docstring (1)

Observation: I want to apologize in advance, my English is average, so I'm sorry if at any point it was difficult to understand the things I wrote. And regarding the code, I never made a theme for vscode, the changes I made were from searching the internet to find out how it works. I tested it before shipping and everything appears to be working perfectly.