-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from the2dl/main
Updated to add a VS Code theme that matches the Chronicle editor
- Loading branch information
Showing
6 changed files
with
172 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const vscode = require('vscode'); | ||
|
||
function activate(context) { | ||
// Apply your theme settings | ||
const themeId = 'YARA-L Theme'; | ||
vscode.workspace.getConfiguration().update('workbench.colorTheme', themeId, vscode.ConfigurationTarget.Workspace); | ||
} | ||
// Deactivate theme when unloading | ||
function deactivate() {} | ||
|
||
module.exports = { | ||
activate, | ||
deactivate | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"name": "YARA-L Theme", | ||
"type": "dark", // Specifies that your theme is a dark theme, which aligns with VS Code's default dark theme settings | ||
"colors": { | ||
"editor.background": "#161624" | ||
}, | ||
"tokenColors": [ | ||
// Your custom token color modifications: | ||
{ | ||
"scope": "variable.name.yara-l", | ||
"settings": { | ||
"foreground": "#C586C0" | ||
} | ||
}, | ||
{ | ||
"scope": "string.regexp.yara-l", | ||
"settings": { | ||
"foreground": "#d3772e" | ||
} | ||
}, | ||
{ | ||
"scope": "variable.parameter.yara-l", | ||
"settings": { | ||
"foreground": "#679ad1" | ||
} | ||
}, | ||
{ | ||
"scope": "constant.numeric.yara-l", | ||
"settings": { | ||
"foreground": "#b8cba9" | ||
} | ||
}, | ||
{ | ||
"scope": ["keyword.other.unit.yara-l", "constant.language.today.yara-l"], | ||
"settings": { | ||
"foreground": "#b8cba9" | ||
} | ||
}, | ||
|
||
{ | ||
"scope": "constant.language.yara-l", | ||
"settings": { | ||
"foreground": "#679ad1" | ||
} | ||
}, | ||
{ | ||
"scope": "entity.name.tag.yara-l", | ||
"settings": { | ||
"foreground": "#679ad1" | ||
} | ||
}, | ||
{ | ||
"scope": "keyword.control.yara-l", | ||
"settings": { | ||
"foreground": "#679ad1" | ||
} | ||
}, | ||
{ | ||
"scope": "string.quoted.double.yara-l", | ||
"settings": { | ||
"foreground": "#c5947c" | ||
} | ||
}, | ||
{ | ||
"scope": "comment.line.double-slash.yara-l", | ||
"settings": { | ||
"foreground": "#698a55" | ||
} | ||
}, | ||
{ | ||
"scope": "comment.block.yara-l", | ||
"settings": { | ||
"foreground": "#698a55" | ||
} | ||
}, | ||
{ | ||
"scope": "support.function.yara-l", | ||
"settings": { | ||
"foreground": "#569cd6" | ||
} | ||
}, | ||
{ | ||
"scope": "support.function.statistical.yara-l", | ||
"settings": { | ||
"foreground": "#679ad1" | ||
} | ||
} | ||
] | ||
} |