Added vscodium

This commit is contained in:
Kristofers Solo 2022-04-28 22:23:08 +03:00
parent d7dddc39ef
commit 098b5a1bc7
4191 changed files with 662 additions and 253125 deletions

View File

@ -47,7 +47,7 @@ graph_symbol_net = "default"
graph_symbol_proc = "default"
#* Manually set which boxes to show. Available values are "cpu mem net proc", separate values with whitespace.
shown_boxes = "proc"
shown_boxes = "cpu mem net proc"
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
update_ms = 1000
@ -95,7 +95,7 @@ cpu_invert_lower = True
cpu_single_graph = False
#* Show cpu box at bottom of screen instead of top.
cpu_bottom = True
cpu_bottom = False
#* Shows the system uptime in the CPU box.
show_uptime = True

View File

@ -3,8 +3,8 @@
#################################
# Enabled client-side shadows on windows. Note desktop windows
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
# Enabled client-side shadows on windows. Note desktop windows
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
# unless explicitly requested using the wintypes option.
#
# shadow = false
@ -30,7 +30,7 @@ shadow-offset-y = -7;
#
# no-dock-shadow = false
# Don't draw shadows on drag-and-drop windows. This option is deprecated,
# Don't draw shadows on drag-and-drop windows. This option is deprecated,
# you should use the *wintypes* option in your config file instead.
#
# no-dnd-shadow = false
@ -44,12 +44,12 @@ shadow-offset-y = -7;
# Blue color value of shadow (0.0 - 1.0, defaults to 0).
# shadow-blue = 0
# Do not paint shadows on shaped windows. Note shaped windows
# here means windows setting its shape through X Shape extension.
# Those using ARGB background is beyond our control.
# Deprecated, use
# Do not paint shadows on shaped windows. Note shaped windows
# here means windows setting its shape through X Shape extension.
# Those using ARGB background is beyond our control.
# Deprecated, use
# shadow-exclude = 'bounding_shaped'
# or
# or
# shadow-exclude = 'bounding_shaped && !rounded_corners'
# instead.
#
@ -70,11 +70,11 @@ shadow-exclude = [
];
# Specify a X geometry that describes the region in which shadow should not
# be painted in, such as a dock window region. Use
# be painted in, such as a dock window region. Use
# shadow-exclude-reg = "x10+0+0"
# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on.
#
# shadow-exclude-reg = ""
# shadow-exclude-reg = ""
# Crop shadow of a window fully on a particular Xinerama screen to the screen.
# xinerama-shadow-crop = false
@ -144,9 +144,9 @@ focus-exclude = [ "class_g = 'Cairo-clock'" ];
# Use fixed inactive dim value, instead of adjusting according to window opacity.
# inactive-dim-fixed = 1.0
# Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
# like `50:name *= "Firefox"`. picom-trans is recommended over this.
# Note we don't make any guarantee about possible conflicts with other
# Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
# like `50:name *= "Firefox"`. picom-trans is recommended over this.
# Note we don't make any guarantee about possible conflicts with other
# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
# example:
# opacity-rule = [ "80:class_g = 'URxvt'" ];
@ -160,20 +160,20 @@ focus-exclude = [ "class_g = 'Cairo-clock'" ];
# Parameters for background blurring, see the *BLUR* section for more information.
# blur-method =
# blur-method =
# blur-size = 12
#
# blur-deviation = false
# Blur background of semi-transparent / ARGB windows.
# Bad in performance, with driver-dependent behavior.
# Blur background of semi-transparent / ARGB windows.
# Bad in performance, with driver-dependent behavior.
# The name of the switch may change without prior notifications.
#
# blur-background = false
# Blur background of windows when the window frame is not opaque.
# Blur background of windows when the window frame is not opaque.
# Implies:
# blur-background
# blur-background
# Bad in performance, with driver-dependent behavior. The name may change.
#
# blur-background-frame = false
@ -219,7 +219,7 @@ vsync = true;
# Enable remote control via D-Bus. See the *D-BUS API* section below for more details.
# dbus = false
# Try to detect WM windows (a non-override-redirect window with no
# Try to detect WM windows (a non-override-redirect window with no
# child that has 'WM_STATE') and mark them as active.
#
# mark-wmwin-focused = false
@ -229,7 +229,7 @@ mark-wmwin-focused = true;
# mark-ovredir-focused = false
mark-ovredir-focused = true;
# Try to detect windows with rounded corners and don't consider them
# Try to detect windows with rounded corners and don't consider them
# shaped windows. The accuracy is not very high, unfortunately.
#
# detect-rounded-corners = false
@ -241,28 +241,28 @@ detect-rounded-corners = true;
# detect-client-opacity = false
detect-client-opacity = true;
# Specify refresh rate of the screen. If not specified or 0, picom will
# Specify refresh rate of the screen. If not specified or 0, picom will
# try detecting this with X RandR extension.
#
refresh-rate = 60
#refresh-rate = 0
# Limit picom to repaint at most once every 1 / 'refresh_rate' second to
# boost performance. This should not be used with
# Limit picom to repaint at most once every 1 / 'refresh_rate' second to
# boost performance. This should not be used with
# vsync drm/opengl/opengl-oml
# as they essentially does sw-opti's job already,
# as they essentially does sw-opti's job already,
# unless you wish to specify a lower refresh rate than the actual value.
#
# sw-opti =
# sw-opti =
# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy,
# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy,
# provided that the WM supports it.
#
# use-ewmh-active-win = false
# Unredirect all windows if a full-screen opaque window is detected,
# to maximize performance for full-screen windows. Known to cause flickering
# Unredirect all windows if a full-screen opaque window is detected,
# to maximize performance for full-screen windows. Known to cause flickering
# when redirecting/unredirecting windows.
#
# unredir-if-possible = false
@ -273,52 +273,52 @@ refresh-rate = 60
# Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
# unredir-if-possible-exclude = []
# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
# in the same group focused at the same time.
#
# detect-transient = false
detect-transient = true
# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if
# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if
# detect-transient is enabled, too.
#
# detect-client-leader = false
detect-client-leader = true
# Resize damaged region by a specific number of pixels.
# A positive value enlarges it while a negative one shrinks it.
# If the value is positive, those additional pixels will not be actually painted
# to screen, only used in blur calculation, and such. (Due to technical limitations,
# with use-damage, those pixels will still be incorrectly painted to screen.)
# Primarily used to fix the line corruption issues of blur,
# in which case you should use the blur radius value here
# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`,
# with a 5x5 one you use `--resize-damage 2`, and so on).
# Resize damaged region by a specific number of pixels.
# A positive value enlarges it while a negative one shrinks it.
# If the value is positive, those additional pixels will not be actually painted
# to screen, only used in blur calculation, and such. (Due to technical limitations,
# with use-damage, those pixels will still be incorrectly painted to screen.)
# Primarily used to fix the line corruption issues of blur,
# in which case you should use the blur radius value here
# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`,
# with a 5x5 one you use `--resize-damage 2`, and so on).
# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly.
#
# resize-damage = 1
# Specify a list of conditions of windows that should be painted with inverted color.
# Specify a list of conditions of windows that should be painted with inverted color.
# Resource-hogging, and is not well tested.
#
# invert-color-include = []
# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer.
# Might cause incorrect opacity when rendering transparent content (but never
# practically happened) and may not work with blur-background.
# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer.
# Might cause incorrect opacity when rendering transparent content (but never
# practically happened) and may not work with blur-background.
# My tests show a 15% performance boost. Recommended.
#
# glx-no-stencil = false
# GLX backend: Avoid rebinding pixmap on window damage.
# Probably could improve performance on rapid window content changes,
# GLX backend: Avoid rebinding pixmap on window damage.
# Probably could improve performance on rapid window content changes,
# but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.).
# Recommended if it works.
#
# glx-no-rebind-pixmap = false
# Disable the use of damage information.
# Disable the use of damage information.
# This cause the whole screen to be redrawn everytime, instead of the part of the screen
# has actually changed. Potentially degrades the performance, but might fix some artifacts.
# The opposing option is use-damage
@ -326,31 +326,31 @@ detect-client-leader = true
# no-use-damage = false
use-damage = true
# Use X Sync fence to sync clients' draw calls, to make sure all draw
# calls are finished before picom starts drawing. Needed on nvidia-drivers
# Use X Sync fence to sync clients' draw calls, to make sure all draw
# calls are finished before picom starts drawing. Needed on nvidia-drivers
# with GLX backend for some users.
#
# xrender-sync-fence = false
# GLX backend: Use specified GLSL fragment shader for rendering window contents.
# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl`
# GLX backend: Use specified GLSL fragment shader for rendering window contents.
# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl`
# in the source tree for examples.
#
# glx-fshader-win = ''
# Force all windows to be painted with blending. Useful if you
# Force all windows to be painted with blending. Useful if you
# have a glx-fshader-win that could turn opaque pixels transparent.
#
# force-win-blend = false
# Do not use EWMH to detect fullscreen windows.
# Do not use EWMH to detect fullscreen windows.
# Reverts to checking if a window is fullscreen based only on its size and coordinates.
#
# no-ewmh-fullscreen = false
# Dimming bright windows so their brightness doesn't exceed this set value.
# Brightness of a window is estimated by averaging all pixels in the window,
# so this could comes with a performance hit.
# Dimming bright windows so their brightness doesn't exceed this set value.
# Brightness of a window is estimated by averaging all pixels in the window,
# so this could comes with a performance hit.
# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0)
#
# max-brightness = 1.0
@ -362,17 +362,17 @@ use-damage = true
# Set the log level. Possible values are:
# "trace", "debug", "info", "warn", "error"
# in increasing level of importance. Case doesn't matter.
# If using the "TRACE" log level, it's better to log into a file
# in increasing level of importance. Case doesn't matter.
# If using the "TRACE" log level, it's better to log into a file
# using *--log-file*, since it can generate a huge stream of logs.
#
# log-level = "debug"
log-level = "warn";
# Set the log file.
# If *--log-file* is never specified, logs will be written to stderr.
# Otherwise, logs will to written to the given file, though some of the early
# logs might still be written to the stderr.
# If *--log-file* is never specified, logs will be written to stderr.
# Otherwise, logs will to written to the given file, though some of the early
# logs might still be written to the stderr.
# When setting this option from the config file, it is recommended to use an absolute path.
#
# log-file = '/path/to/your/log/file'
@ -384,33 +384,33 @@ log-level = "warn";
# write-pid-path = '/path/to/your/log/file'
# Window type settings
#
# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
# "unknown", "desktop", "dock", "toolbar", "menu", "utility",
# "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
#
# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
# "unknown", "desktop", "dock", "toolbar", "menu", "utility",
# "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
# "tooltip", "notification", "combo", and "dnd".
#
#
# Following per window-type options are available: ::
#
#
# fade, shadow:::
# Controls window-type-specific shadow and fade settings.
#
#
# opacity:::
# Controls default opacity of the window type.
#
#
# focus:::
# Controls whether the window of this type is to be always considered focused.
# Controls whether the window of this type is to be always considered focused.
# (By default, all window types except "normal" and "dialog" has this on.)
#
#
# full-shadow:::
# Controls whether shadow is drawn under the parts of the window that you
# normally won't be able to see. Useful when the window has parts of it
# Controls whether shadow is drawn under the parts of the window that you
# normally won't be able to see. Useful when the window has parts of it
# transparent, and you want shadows in those areas.
#
#
# redir-ignore:::
# Controls whether this type of windows should cause screen to become
# Controls whether this type of windows should cause screen to become
# redirected again after been unredirected. If you have unredir-if-possible
# set, and doesn't want certain window to cause unnecessary screen redirection,
# set, and doesn't want certain window to cause unnecessary screen redirection,
# you can set this to `true`.
#
wintypes:
@ -435,6 +435,8 @@ opacity-rule = [
"95:class_g = 'Code'",
"95:class_g = 'code'",
"95:class_g = 'code-oss'",
"95:class_g = 'vscodium'",
"95:class_g = 'VSCodium'"
]

View File

@ -1 +1 @@
{"ms-vscode.references-view-0.0.86":true,"ms-vscode.js-debug-companion-1.0.16":true,"bceskavich.theme-dracula-at-night-2.6.0":true,"ms-python.vscode-pylance-2022.4.2":true,"lefd.sweetdracula-monokai-1.1.2":true}
{"ms-vscode.references-view-0.0.86":true,"ms-vscode.js-debug-companion-1.0.16":true}

View File

@ -1,10 +0,0 @@
## How to contribute
1. Fork and clone this repo. `git clone https://github.com/<YOUR-USERNAME>/visual-studio-code`
2. Create a branch for your changes. `git checkout -b my-new-feature`
3. Install dependencies. `yarn install`
4. Hack away.
5. Build and attach your changes to VSCode. `yarn run dev`
6. Eject your changes from VSCode. `yarn run eject`
7. Commit and push your changes.
8. Submit a PR for discussion.

View File

@ -1,9 +0,0 @@
node_modules
theme
build
# Logs + dependency pieces
logs
*.log
yarn-debug.log*
yarn-error.log*

View File

@ -1,3 +0,0 @@
{
"editor.formatOnSave": true
}

View File

@ -1,42 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Language="en-US" Id="theme-dracula-at-night" Version="2.6.0" Publisher="bceskavich"/>
<DisplayName>Dracula At Night</DisplayName>
<Description xml:space="preserve">Dracula At Night — A Dracula fork, with a darker flavor</Description>
<Tags>dracula,dark,theme,color-theme</Tags>
<Categories>Themes</Categories>
<GalleryFlags>Public</GalleryFlags>
<Badges></Badges>
<Properties>
<Property Id="Microsoft.VisualStudio.Code.Engine" Value="^1.13.0" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionDependencies" Value="" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionPack" Value="" />
<Property Id="Microsoft.VisualStudio.Code.LocalizedLanguages" Value="" />
<Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="https://github.com/bceskavich/dracula-at-night.git" />
<Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="https://github.com/bceskavich/dracula-at-night.git" />
<Property Id="Microsoft.VisualStudio.Services.Links.GitHub" Value="https://github.com/bceskavich/dracula-at-night.git" />
<Property Id="Microsoft.VisualStudio.Services.Links.Support" Value="https://github.com/bceskavich/dracula-at-night/issues" />
<Property Id="Microsoft.VisualStudio.Services.Branding.Color" Value="#0e1419" />
<Property Id="Microsoft.VisualStudio.Services.Branding.Theme" Value="dark" />
<Property Id="Microsoft.VisualStudio.Services.GitHubFlavoredMarkdown" Value="true" />
</Properties>
<License>extension/LICENSE.txt</License>
<Icon>extension/dracula-at-night.png</Icon>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Code"/>
</Installation>
<Dependencies/>
<Assets>
<Asset Type="Microsoft.VisualStudio.Code.Manifest" Path="extension/package.json" Addressable="true" />
<Asset Type="Microsoft.VisualStudio.Services.Content.Details" Path="extension/README.md" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Content.Changelog" Path="extension/CHANGELOG.md" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Content.License" Path="extension/LICENSE.txt" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Icons.Default" Path="extension/dracula-at-night.png" Addressable="true" />
</Assets>
</PackageManifest>

View File

@ -1,89 +0,0 @@
# Changelog
## 2.6.0
v2.6.0 includes a bunch of changes from the past few months. It's been a while since a release has been queued up!
- Haskell syntax coloring fixes (https://github.com/bceskavich/dracula-at-night/commit/cff5fe299ddda7f944e023ef32bd16039486d4d3)
- TypeScript JSX syntax coloring fixes (https://github.com/bceskavich/dracula-at-night/commit/fa4b948cd43874a85670abbcde96b6eaf852e3f4)
- Adds coloring for Elixir's capture `&` operator (https://github.com/bceskavich/dracula-at-night/commit/a9b344a3b66769aa7fe16d3707d3616d4a91d518)
- Better coloring support for Go (https://github.com/bceskavich/dracula-at-night/commit/a733b9967667c21065185da0e30160aad94269f1)
- The bash script used to attach a test build of theme locally was broken. No longer! (https://github.com/bceskavich/dracula-at-night/commit/6c5892605829525530cac5db406b494df481e4d0)
- Add styling for menu highlighting. Thank you @sargalias! (https://github.com/bceskavich/dracula-at-night/pull/5)
## 2.5.0
Updates to syntax highlighting for JSX, CSS, and TypeScript typings. See https://github.com/bceskavich/dracula-at-night/pull/3 for more detailed explanations of each.
## 2.4.0
Added further Python support:
- Function definition coloring
- Consistent function invocation coloring
- Punctuation (dot syntax, colons) coloring
## 2.3.0
Added further Elixir support.
## 2.2.1
Fixed a small bug where some string punctuation marks weren't styled the right color.
## 2.2.0
Add stylings for the new Breadcrumbs feature, released in [VS Code v1.26](https://code.visualstudio.com/updates/v1_26#_breadcrumbs)
## 2.1.0
- JavaScript and TypeScript constant definitions are now styled cyan, instead of purple. This is modeled after the way we do things in Ruby. I'm considering making this the default for all languages.
- Fix some typos in the Objective-C settings
## 2.0.0
Refactored theme config, see [dracula-at-night#2](https://github.com/bceskavich/dracula-at-night/pull/2). There are a few small user facing changes in this update. I fixed some broken editor window styles and made others more consistent while rewriting.
## 1.3.0
Updates to React and JSX stylings:
- Component tags are colored purple to help differentiate between HTML tags
- Ensure fat-arrow function definitions on component classes as an auto-binding work around are styled green as expected
Better GraphQL support:
- Please use [GraphQL for VSCode](https://marketplace.visualstudio.com/items?itemName=kumar-harsh.graphql-for-vscode) to get the extended style scopes that power this update!
Also:
- Remove default behavior to highlight matching brackets as pink. This is often unhelpful, especially when the brackets are already colored pink (e.g. Interpolation, JSX escapes). Matching bracket colors can be set manaully in user settings.
## 1.2.0
Updates to better support Ruby:
- Colors for instance (orange) and class (cyan) variables
- Fix a bug with coloring function invocations
- Ensure function definition punctuation is not colored green
- Ensure block method params are colored orange as expected
- Separator punctuation (like dots) should be styled pink
- Style constants as cyan to help differentiate with symbols, which are purple
## 1.1.0
- Updated TypeScript type syntax stylings
## 1.0.1
- Added a theme logo
## 1.0.0
Initial release!
---
## Previous
This theme was forked from Dracula Official v2.10.0. See the Dracula Official [changelog](https://github.com/dracula/visual-studio-code/blob/master/CHANGELOG.md#2100) for changes preceding the fork.

View File

@ -1,21 +0,0 @@
The MIT License (MIT)
Copyright (c) 2016 Dracula Theme
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,20 +0,0 @@
# Dracula At Night for [Visual Studio Code](http://code.visualstudio.com)
A fork of [Dracula Official](https://github.com/dracula/visual-studio-code), with a darker flavor.
![Screenshot](https://dzwonsemrish7.cloudfront.net/items/2q3r15432s3H00013u1j/Screen%20Shot%202018-06-02%20at%2010.16.01.png)
## Install
1. Go to `View -> Command Palette` or press `⌘+shift+P`
2. Then enter `Install Extension`
3. Write `theme-dracula-at-night`
4. Select it or press Enter to install
## Contributing
If you'd like to contribute to this theme, please read the [contributing guidelines](https://github.com/bceskavich/dracula-at-night/blob/master/./.github/CONTRIBUTING.md).
## License
[MIT License](https://github.com/bceskavich/dracula-at-night/blob/master/./LICENSE)

View File

@ -1,32 +0,0 @@
#!/usr/bin/env bash
repo_dir="$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )"
attach() {
theme_path="$( find ~/.vscode/extensions -maxdepth 1 -type d -name '*dracula-at-night*' )"
if [[ "$theme_path" ]]; then
theme_dir="$( basename "$theme_path" )"
mkdir -p ~/.vscode/_disabled
mv "$theme_path" ~/.vscode/_disabled/"$theme_dir"
fi
ln -s "$repo_dir" "$theme_path"
}
eject() {
theme_disabled_path="$( find ~/.vscode/_disabled -maxdepth 1 -type d -name '*dracula-at-night*' )"
if [ "$theme_disabled_path" ]; then
theme_dir="$( basename "$theme_disabled_path" )"
rm ~/.vscode/extensions/"$theme_dir"
mv "$theme_disabled_path" ~/.vscode/extensions/"$theme_dir"
rm -r ~/.vscode/_disabled
fi
}
case "$1" in
attach)
attach
;;
eject)
eject
;;
esac

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@ -1,289 +0,0 @@
# Known Issues
The following issues are problems with the textmate language files and out of the control of this project. If these affect you, please contact the maintainer of the language file affecting you and file an issue with them.
If you don't see your issue reported below, then please open an issue here and let us know.
## Fixes Pending
- `scss`: Broken highlighting for properties sharing selector names atom/language-sass#234
- `less`: Mixin parameters and guards fully scoped and highlighted. atom/language-less#82
- `php`: Ternary and null coalescing operator highlighting. atom/language-php#285
## Contents
- [C++](#c++)
- [C#](#c-sharp)
- [Clojure](#clojure)
- [Coffeescript](#coffeescript)
- [F#](#f-sharp)
- [Go](#go)
- [Java](#java)
- [Makefile](#makefile)
- [Objective-C](#objective-c)
- [Perl](#perl)
- [Powershell](#powershell)
- [Python](#python)
- [R](#r)
- [Ruby](#ruby)
- [Rust](#rust)
- [Shell](#shell)
- [Swift](#swift)
## C++
```cpp
// Accessor tokens not scoped when accessing member methods
std::abs(1);
// ^^
// Template brackets scoped as comparison operators
template<class T> void hello() {}
// ^ ^
```
## <a id="c-sharp"></a>C#
**Note:** There are several other breaks in C# that occur when you have deeply nested classes or structures.
```cs
// "bool" types not scoped under certain circumstances
class Foo {
public bool isFoo() {}
// ^^^^
}
```
## Clojure
```clj
; Math operators (`+`, `-`, `/`, `*`, etc) are incorrectly scoped to `entity.name.function`.
(+ 1 1)
;^
(- 4 2)
;^
(* 5 5)
;^
(/ 10 5)
;^
; Logic operators (`not`, `is`, etc) are incorrectly scoped to `entity.name.function`.
(not true)
;^^^
(is false)
;^^
; Function parameters have no scope.
(defn hello [name]
; ^^^^
(str "Hello " name))
```
## Coffeescript
```coffee
# imports and exports are scope incorrectly across the board
import _ from 'underscore'
# ^
import * as underscore from 'underscore'
# ^^^^^^^^^^
import { now } from 'underscore'
# ^^^
import { now as currentTimestamp } from 'underscore'
# ^^^
export { sqrt as squareRoot }
# ^^^^ ^^
export { Mathematics as default, sqrt as squareRoot }
# ^^^^^^^^^^^ ^^ ^^^^
```
## <a id="f-sharp"></a>F#
```fs
// Brackets and semicolons scoped incorrectly to `keyword.other`.
let issueOne = [2; 3; 4; 5]
// ^ ^ ^ ^ ^
// Function names are incorrectly scoped to `variable.other`.
let square x = x * x // #2
// ^^^^^^
// Modulo operator `%` unscoped.
let isEven x = x % 2 = 0
// ^
// Function calls are unscoped.
isEven 5
//^^^^
// Range operator `..` scope is broken.
let y = [1..10]
// ^^
// `->` operator not scoped under certain circumstances.
[1..100] |> List.map (fun x -> x * x) |> List.sum
// ^^
// `=` operator not scoped under certain circumstances.
module Example =
// ^
// Type scopes break under certain circumstances.
type Rectangle(x:int, y:int) =
// ^^^ ^^^^ ^
// Parens scoped incorrectly to `constant.language.unit`
r.Print()
// ^^
```
## Go
```go
// Scientific numbers not scoped correctly.
x := 1.3e3
// ^^
// Function params not scoped
func sentenceFactory(mystring string) func(before, after string) string {}
// ^^^^^^^^ ^^^^^^ ^^^^^
```
## Java
```java
// Generic scopes span all the way into the brackets (brackets need their own scope)
private static final Set<String> COUNTRIES = new HashSet<String>();
// ^^^^^^^^ ^^^^^^^^
```
## Makefile
```Makefile
hello=hello
# Curly brace variable interpolation
.PHONY: thing
thing:
echo ${hello}
# Uncommon variant of ":=" scoped incorrectly
uncommonEqual ::= foo bar baz
# ^^^^^^^^^^^^^^
```
## Objective-C
```objc
// Pragma lines with comments don't work
#pragma mark Navigation Functions // New tag on jump bar named 'Navigation Functions'
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// "@protocol" scoped incorrectly under certain circumstances
@protocol Brother; /*
^^^^^^^^^^^^^^^^^
```
## Perl
```pl
# "=" not scoped
my $thing = "foo";
# ^
# Range operator not scoped
for my $i (0 .. $max) {
# ^^
# Namespace accessor not scoped
MyModule::foo($thing);
# ^^
# Increment operator not scoped
$self->{count}++;
# ^^
```
## Powershell
There is too much wrong with the scopes to list. The textmate scopes need a full refactor.
## Python
```py
# Decorator scopes don't distinguish the "@" symbol
@property
#^
```
## R
There is too much wrong with the scopes to list. The textmate scopes need a full refactor.
## Ruby
```rb
# Function names not scoped during calls
def add1(x)
x + 1
end
add1(5)
#^^^^
# Existence operator "?" not scoped
hash = { foo: 'foo' }
hash.key?(:foo)
# ^
# Range ".." and double bar "| |" operators not scoped
(1..5).each do |counter|
# ^^ ^ ^
```
## Rust
```rs
// Function parameters and "->" operator not scoped
fn add2(x: i32, y: i32) -> i32 {}
// ^ ^ ^^
// Generic types are scoped all the way through the brackets
struct Foo<T> { bar: T }
// ^^^
// Generic types are not scoped when used
struct Foo<T> { bar: T }
// ^
// Separators not scoped
struct Foo<T> { bar: T }
// ^
```
## Shell
```sh
# "!" is scoped as a pipe operator, not a logical negation operator
echo Hello World!
# ^
# Semicolons have the same scope as "&&"
echo hello; echo foo && echo bar
# ^ ^^
# Range operator not scoped
echo {1..5}
# ^^
# The word "in" in case statements has no scope
case 'hello' in
# ^^
hello)
;;
esac
```
## Swift
There is too much wrong with the scopes to list. The textmate scopes need a full refactor.

View File

@ -1,72 +0,0 @@
{
"name": "theme-dracula-at-night",
"version": "2.6.0",
"displayName": "Dracula At Night",
"description": "Dracula At Night — A Dracula fork, with a darker flavor",
"publisher": "bceskavich",
"license": "MIT",
"scripts": {
"clean": "rm -rf build",
"compile": "yarn run clean && tsc",
"build": "mkdir -p ./theme && ts-node ./src/build.ts",
"attach": "./bootstrap.sh attach",
"eject": "./bootstrap.sh eject",
"dev": "yarn run eject && yarn run build && yarn run attach",
"vscode:prepublish": "yarn run build",
"format": "prettier --write 'src/**/*.ts'"
},
"maintainers": [
"Billy Ceskavich <bceskavich@gmail.com>"
],
"contributors": [],
"repository": {
"type": "git",
"url": "https://github.com/bceskavich/dracula-at-night.git"
},
"bugs": {
"url": "https://github.com/bceskavich/dracula-at-night/issues"
},
"engines": {
"vscode": "^1.13.0"
},
"categories": [
"Themes"
],
"keywords": [
"dracula",
"dark",
"theme",
"color-theme"
],
"icon": "dracula-at-night.png",
"galleryBanner": {
"color": "#0e1419",
"theme": "dark"
},
"contributes": {
"themes": [
{
"label": "Dracula At Night",
"uiTheme": "vs-dark",
"path": "./theme/dracula-at-night.json"
}
]
},
"devDependencies": {
"@types/node": "^10.5.8",
"ts-node": "^7.0.0",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.14.0",
"typescript": "^3.0.1"
},
"__metadata": {
"id": "86fa6593-3f3e-484c-b7cd-00ba7c91c23f",
"publisherId": "72f2d502-2860-40d3-8a46-47cbf8a5d495",
"publisherDisplayName": null,
"targetPlatform": "undefined",
"updated": false,
"isPreReleaseVersion": false,
"preRelease": false,
"installedTimestamp": 1651167578407
}
}

View File

@ -1,7 +0,0 @@
import { writeFileSync } from 'fs';
import { DraculaAtNight } from './themes';
writeFileSync(
`${__dirname}/../theme/dracula-at-night.json`,
JSON.stringify(DraculaAtNight, null, 2)
);

View File

@ -1,3 +0,0 @@
export default (hexColor: string, alphaValue: number): string => {
return `${hexColor}${alphaValue}`;
};

View File

@ -1,70 +0,0 @@
import TokenSettings from '../settings/tokens/TokenSettings';
export interface Theme {
// Metadata
name: string;
author: string;
maintainers: string[];
semanticClass: string;
colorVars: Colors;
colors: object;
tokenColors: TokenSettings[];
}
export interface Colors {
ansi: ANSIColors;
base: BaseColors;
misc: MiscColors;
}
// Base colors
export interface BaseColors {
bg: string;
fg: string;
cyan: string;
green: string;
orange: string;
pink: string;
purple: string;
red: string;
yellow: string;
white: string;
}
// ANSI colors
export interface ANSIColors {
color0: string;
color1: string;
color2: string;
color3: string;
color4: string;
color5: string;
color6: string;
color7: string;
color8: string;
color9: string;
color10: string;
color11: string;
color12: string;
color13: string;
color14: string;
color15: string;
}
// Other colors
export interface MiscColors {
comment: string;
activeBorder: string;
lineHighlight: string;
container: string;
selection: string;
nonText: string;
tabDropBg: string;
bgLight: string;
bgLighter: string;
bgDark: string;
bgDarker: string;
purpleDarker: string;
menuHover: string;
}

View File

@ -1,15 +0,0 @@
import colors from './colors';
import { ANSIColors, BaseColors, MiscColors } from './Theme';
import tokens from './tokens';
import TokenSettings from './tokens/TokenSettings';
export default function buildTheme(
base: BaseColors,
ansi: ANSIColors,
misc: MiscColors
): { colors: object; tokenColors: TokenSettings[] } {
return {
colors: colors({ base, ansi, misc }),
tokenColors: tokens({ base, ansi, misc })
};
}

View File

@ -1,11 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_activity-bar
export default ({ base, misc }: Colors) => ({
'activityBar.background': misc.container,
'activityBar.dropBackground': null,
'activityBar.foreground': base.fg,
'activityBar.border': misc.container,
'activityBarBadge.background': base.pink,
'activityBarBadge.foreground': base.fg
});

View File

@ -1,7 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_badge
export default ({ base, misc }: Colors) => ({
'badge.foreground': base.fg,
'badge.background': misc.container
});

View File

@ -1,11 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_base-colors
export default ({ base, misc }: Colors) => ({
focusBorder: misc.comment,
foreground: base.fg,
'widget.shadow': null,
'selection.background': base.purple,
descriptionForeground: null,
errorForeground: base.red
});

View File

@ -1,9 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_button-control
export default ({ base, misc }: Colors) => ({
'breadcrumb.foreground': misc.comment,
'breadcrumb.focusForeground': base.fg,
'breadcrumb.activeSelectionForeground': base.fg,
'breadcrumbPicker.background': base.bg
});

View File

@ -1,8 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_button-control
export default ({ base, misc }: Colors) => ({
'button.background': misc.purpleDarker,
'button.foreground': base.fg,
'button.hoverBackground': null
});

View File

@ -1,7 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_contrast-colors
export default ({ misc }: Colors) => ({
contrastBorder: misc.bgDarker,
contrastActiveBorder: null
});

View File

@ -1,7 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_debug
export default ({ base, misc }: Colors) => ({
'debugToolBar.background': base.bg,
'debugToolBar.border': misc.activeBorder
});

View File

@ -1,10 +0,0 @@
import alpha from '../../lib/alpha';
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_diff-editor-colors
export default ({ base }: Colors) => ({
'diffEditor.insertedTextBackground': alpha(base.green, 20),
'diffEditor.insertedTextBorder': null,
'diffEditor.removedTextBackground': alpha(base.red, 50),
'diffEditor.removedTextBorder': null
});

View File

@ -1,9 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_dropdown-control
export default ({ base, misc }: Colors) => ({
'dropdown.background': misc.container,
'dropdown.listBackground': misc.container,
'dropdown.border': misc.activeBorder,
'dropdown.foreground': base.fg
});

View File

@ -1,25 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_editor-groups-tabs
export default ({ base, misc }: Colors) => ({
'editorGroup.border': base.purple,
'editorGroup.dropBackground': misc.tabDropBg,
'editorGroupHeader.noTabsBackground': null,
'editorGroupHeader.tabsBackground': misc.container,
'editorGroupHeader.tabsBorder': misc.purpleDarker,
'tab.activeBackground': misc.purpleDarker,
'tab.activeForeground': base.fg,
'tab.border': misc.container,
'tab.activeBorder': null,
'tab.unfocusedActiveBorder': null,
'tab.inactiveBackground': misc.container,
'tab.inactiveForeground': misc.activeBorder,
'tab.unfocusedActiveForeground': null,
'tab.unfocusedInactiveForeground': null,
// TODO: explore color change
'tab.hoverBackground': null,
'tab.unfocusedHoverBackground': null,
'tab.hoverBorder': null,
'tab.unfocusedHoverBorder': null
});

View File

@ -1,20 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_editor-widget-colors
export default ({ base, misc }: Colors) => ({
'editorWidget.background': base.bg,
'editorWidget.border': misc.activeBorder,
'editorWidget.resizeBorder': base.purple,
'editorSuggestWidget.background': base.bg,
'editorSuggestWidget.border': misc.activeBorder,
'editorSuggestWidget.foreground': base.fg,
'editorSuggestWidget.highlightForeground': null,
'editorSuggestWidget.selectedBackground': misc.lineHighlight,
'editorHoverWidget.background': base.bg,
'editorHoverWidget.border': misc.activeBorder,
'debugExceptionWidget.background': null,
'debugExceptionWidget.border': null,
'editorMarkerNavigation.background': misc.bgDark,
'editorMarkerNavigationError.background': null,
'editorMarkerNavigationWarning.background': null
});

View File

@ -1,51 +0,0 @@
import alpha from '../../lib/alpha';
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_editor-colors
export default ({ base, misc }: Colors) => ({
'editor.foreground': base.fg,
'editor.background': base.bg,
'editorLineNumber.foreground': misc.comment,
'editorLineNumber.activeForeground': base.cyan,
'editorCursor.foreground': base.cyan,
'editor.selectionBackground': misc.selection,
'editor.selectionHighlightBorder': base.orange,
'editor.inactiveSelectionBackground': null,
'editor.wordHighlightBackground': alpha(base.cyan, 50),
'editor.wordHighlightStrongBackground': alpha(base.green, 50),
'editor.findMatchBackground': alpha(base.orange, 80),
'editor.findMatchHighlightBackground': alpha(base.white, 40),
'editor.findRangeHighlightBackground': misc.lineHighlight,
'editor.hoverHighlightBackground': misc.bgDarker,
'editor.lineHighlightBackground': misc.lineHighlight,
'editor.lineHighlightBorder': null,
'editorLink.activeForeground': base.cyan,
'editor.rangeHighlightBackground': alpha(base.purple, 15),
'editorWhitespace.foreground': misc.nonText,
'editorIndentGuide.background': misc.nonText,
'editorIndentGuide.activeBackground': misc.activeBorder,
'editorRuler.foreground': null,
'editorCodeLens.foreground': misc.comment,
'editorBracketMatch.background': null,
'editorBracketMatch.border': null,
'editorOverviewRuler.border': misc.bgDarker,
'editorOverviewRuler.findMatchForeground': null,
'editorOverviewRuler.rangeHighlightForeground': null,
'editorOverviewRuler.selectionHighlightForeground': base.orange,
'editorOverviewRuler.wordHighlightForeground': base.cyan,
'editorOverviewRuler.wordHighlightStrongForeground': base.green,
'editorOverviewRuler.modifiedForeground': alpha(base.orange, 80),
'editorOverviewRuler.addedForeground': alpha(base.green, 80),
'editorOverviewRuler.deletedForeground': alpha(base.red, 80),
'editorOverviewRuler.errorForeground': alpha(base.red, 80),
'editorOverviewRuler.warningForeground': alpha(base.yellow, 80),
'editorOverviewRuler.infoForeground': alpha(base.cyan, 80),
'editorError.foreground': base.red,
'editorError.border': null,
'editorWarning.foreground': base.cyan,
'editorWarning.border': null,
'editorGutter.background': null,
'editorGutter.modifiedBackground': alpha(base.orange, 80),
'editorGutter.addedBackground': alpha(base.green, 80),
'editorGutter.deletedBackground': alpha(base.red, 80)
});

View File

@ -1,9 +0,0 @@
import alpha from '../../lib/alpha';
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_extensions
export default ({ base }: Colors) => ({
'extensionButton.prominentForeground': base.fg,
'extensionButton.prominentBackground': alpha(base.green, 90),
'extensionButton.prominentHoverBackground': alpha(base.green, 60)
});

View File

@ -1,10 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_git-colors
export default ({ base, misc }: Colors) => ({
'gitDecoration.modifiedResourceForeground': base.orange,
'gitDecoration.deletedResourceForeground': base.red,
'gitDecoration.untrackedResourceForeground': base.green,
'gitDecoration.ignoredResourceForeground': misc.comment,
'gitDecoration.conflictingResourceForeground': base.orange
});

View File

@ -1,63 +0,0 @@
import { Colors } from '../Theme';
import activityBar from './activity-bar';
import badge from './badge';
import base from './base';
import breadcrumbs from './breadcrumbs';
import buttons from './buttons';
import contrast from './contrast';
import debug from './debug';
import diffEditor from './diff-editor';
import dropdowns from './dropdowns';
import editor from './editor';
import editorGroups from './editor-groups';
import editorWidgets from './editor-widgets';
import extensions from './extensions';
import git from './git';
import inputs from './inputs';
import lists from './lists';
import mergeConflicts from './merge-conflicts';
import menu from './menu';
import notification from './notification';
import panels from './panels';
import peekView from './peek-view';
import progressBar from './progress-bar';
import quickPicker from './quick-picker';
import scrollbar from './scrollbar';
import sidebar from './sidebar';
import statusBar from './status-bar';
import terminal from './terminal';
import titleBar from './title-bar';
import welcome from './welcome';
export default (colors: Colors) => ({
...activityBar(colors),
...badge(colors),
...base(colors),
...breadcrumbs(colors),
...buttons(colors),
...contrast(colors),
...debug(colors),
...diffEditor(colors),
...dropdowns(colors),
...editor(colors),
...editorGroups(colors),
...editorWidgets(colors),
...extensions(colors),
...git(colors),
...inputs(colors),
...lists(colors),
...mergeConflicts(colors),
...menu(colors),
...notification(colors),
...panels(colors),
...peekView(colors),
...progressBar(colors),
...quickPicker(colors),
...scrollbar(),
...sidebar(colors),
...statusBar(colors),
...terminal(colors),
...titleBar(colors),
...welcome(colors)
});

View File

@ -1,16 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_input-control
export default ({ base, misc }: Colors) => ({
'input.background': base.bg,
'input.foreground': base.fg,
'input.border': misc.container,
'input.placeholderForeground': misc.comment,
'inputOption.activeBorder': misc.activeBorder,
'inputValidation.infoBackground': null,
'inputValidation.infoBorder': base.pink,
'inputValidation.warningBackground': null,
'inputValidation.warningBorder': base.orange,
'inputValidation.errorBackground': null,
'inputValidation.errorBorder': base.red
});

View File

@ -1,15 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_lists-and-trees
export default ({ base, misc }: Colors) => ({
'list.activeSelectionBackground': misc.container,
'list.activeSelectionForeground': base.fg,
'list.dropBackground': misc.selection,
'list.focusBackground': misc.container,
'list.highlightForeground': base.cyan,
'list.hoverBackground': misc.container,
'list.inactiveSelectionBackground': misc.container,
'list.inactiveSelectionForeground': base.fg,
'list.hoverForeground': base.fg,
'list.focusForeground': base.fg
});

View File

@ -1,14 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/api/references/theme-color#menu-bar-colors
export default ({ misc }: Colors) => ({
'menubar.selectionForeground': null,
'menubar.selectionBackground': null,
'menubar.selectionBorder': null,
'menu.foreGround': null,
'menu.background': null,
'menu.selectionForeground': null,
'menu.selectionBackground': misc.menuHover,
'menu.selectionBorder': null,
'menu.separatorBackground': null
});

View File

@ -1,14 +0,0 @@
import alpha from '../../lib/alpha';
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_merge-conflicts
export default ({ base }: Colors) => ({
'merge.currentHeaderBackground': alpha(base.green, 90),
'merge.currentContentBackground': null,
'merge.incomingHeaderBackground': alpha(base.purple, 90),
'merge.incomingContentBackground': null,
'merge.border': null,
'editorOverviewRuler.currentContentForeground': base.green,
'editorOverviewRuler.incomingContentForeground': base.purple,
'editorOverviewRuler.commonContentForeground': null
});

View File

@ -1,27 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_notification-colors
export default ({ base, misc }: Colors) => ({
// >= v1.21 configs
'notificationCenter.border': misc.activeBorder,
'notificationCenterHeader.foreground': base.fg,
'notificationCenterHeader.background': misc.container,
'notificationToast.border': misc.activeBorder,
'notifications.foreground': base.fg,
'notifications.background': base.bg,
'notifications.border': misc.activeBorder,
'notificationLink.foreground': base.fg,
// < v1.21 configs
'notification.background': base.bg,
'notification.foreground': base.fg,
'notification.buttonBackground': misc.container,
'notification.buttonForeground': base.fg,
'notification.buttonHoverBackground': null,
'notification.errorBackground': base.red,
'notification.errorForeground': base.fg,
'notification.infoBackground': base.cyan,
'notification.infoForeground': base.bg,
'notification.warningBackground': base.orange,
'notification.warningForeground': base.bg
});

View File

@ -1,10 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_panel-colors
export default ({ base, misc }: Colors) => ({
'panel.background': base.bg,
'panel.border': base.purple,
'panelTitle.activeBorder': base.pink,
'panelTitle.activeForeground': base.fg,
'panelTitle.inactiveForeground': misc.comment
});

View File

@ -1,19 +0,0 @@
import alpha from '../../lib/alpha';
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_peek-view-colors
export default ({ base, misc }: Colors) => ({
'peekView.border': misc.activeBorder,
'peekViewEditor.background': base.bg,
'peekViewEditorGutter.background': null,
'peekViewEditor.matchHighlightBackground': alpha(base.yellow, 80),
'peekViewResult.background': base.bg,
'peekViewResult.fileForeground': base.fg,
'peekViewResult.lineForeground': base.fg,
'peekViewResult.matchHighlightBackground': alpha(base.yellow, 80),
'peekViewResult.selectionBackground': misc.lineHighlight,
'peekViewResult.selectionForeground': base.fg,
'peekViewTitle.background': misc.container,
'peekViewTitleDescription.foreground': misc.comment,
'peekViewTitleLabel.foreground': base.fg
});

View File

@ -1,6 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_progress-bar
export default ({ base }: Colors) => ({
'progressBar.background': base.pink
});

View File

@ -1,7 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_quick-picker
export default ({ base }: Colors) => ({
'pickerGroup.border': base.purple,
'pickerGroup.foreground': base.cyan
});

View File

@ -1,7 +0,0 @@
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_scrollbar-control
export default () => ({
'scrollbar.shadow': null,
'scrollbarSlider.activeBackground': null,
'scrollbarSlider.background': null,
'scrollbarSlider.hoverBackground': null
});

View File

@ -1,13 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_side-bar
export default ({ base }: Colors) => ({
'sideBar.background': base.bg,
'sideBar.foreground': null,
'sideBar.border': null,
'sideBar.dropBackground': null,
'sideBarTitle.foreground': base.fg,
// TODO: explore color change
'sideBarSectionHeader.background': null,
'sideBarSectionHeader.foreground': null
});

View File

@ -1,17 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_status-bar-colors
export default ({ base, misc }: Colors) => ({
'statusBar.background': base.bg,
'statusBar.foreground': base.fg,
'statusBar.border': misc.activeBorder,
'statusBar.debuggingBackground': base.red,
'statusBar.debuggingForeground': base.fg,
'statusBar.debuggingBorder': misc.activeBorder,
'statusBar.noFolderBackground': base.bg,
'statusBar.noFolderForeground': base.fg,
'statusBarItem.activeBackground': null,
'statusBarItem.hoverBackground': null,
'statusBarItem.prominentBackground': base.red,
'statusBarItem.prominentHoverBackground': base.orange
});

View File

@ -1,25 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_integrated-terminal-colors
export default ({ base, ansi }: Colors) => ({
'terminal.background': base.bg,
'terminal.foreground': base.fg,
'terminal.ansiBrightBlack': ansi.color8,
'terminal.ansiBrightRed': ansi.color9,
'terminal.ansiBrightGreen': ansi.color10,
'terminal.ansiBrightYellow': ansi.color11,
'terminal.ansiBrightBlue': ansi.color12,
'terminal.ansiBrightMagenta': ansi.color13,
'terminal.ansiBrightCyan': ansi.color14,
'terminal.ansiBrightWhite': ansi.color15,
'terminal.ansiBlack': ansi.color0,
'terminal.ansiRed': ansi.color1,
'terminal.ansiGreen': ansi.color2,
'terminal.ansiYellow': ansi.color3,
'terminal.ansiBlue': ansi.color4,
'terminal.ansiMagenta': ansi.color5,
'terminal.ansiCyan': ansi.color6,
'terminal.ansiWhite': ansi.color8,
'terminalCursor.background': base.bg,
'terminalCursor.foreground': ansi.color2
});

View File

@ -1,9 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_title-bar-colors-macos
export default ({ base, misc }: Colors) => ({
'titleBar.activeBackground': misc.container,
'titleBar.activeForeground': base.fg,
'titleBar.inactiveBackground': misc.container,
'titleBar.inactiveForeground': misc.comment
});

View File

@ -1,8 +0,0 @@
import { Colors } from '../Theme';
// See: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_welcome-page
export default ({ misc }: Colors) => ({
'welcomePage.buttonBackground': null,
'welcomePage.buttonHoverBackground': misc.container,
'walkThrough.embeddedEditorBackground': misc.container
});

View File

@ -1,19 +0,0 @@
export default interface TokenSettings {
name?: string;
scope: string[];
settings: TokenSettingsList;
}
interface TokenSettingsList {
foreground?: string;
fontStyle?: TokenFontStyle;
}
export enum TokenFontStyle {
regular = 'regular',
normal = 'normal',
bold = 'bold',
italic = 'italic',
underline = 'underline',
ui = 'underline italic'
}

View File

@ -1,53 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
classDefinitions(colors),
instanceKeywords(colors),
inheritedClasses(colors),
builtinClasses(colors)
];
function classDefinitions({ base }: Colors): TokenSettings {
return {
name: 'Class definitions',
scope: ['entity.name.type.class'],
settings: {
foreground: base.green
}
};
}
function instanceKeywords({ base }: Colors): TokenSettings {
return {
name: 'Instance keywords (this, super, self, etc.)',
scope: [
'keyword.other.this',
'variable.language',
'variable.parameter.function.language.special'
],
settings: {
foreground: base.purple
}
};
}
function inheritedClasses({ base }: Colors): TokenSettings {
return {
name: 'Inherited classes',
scope: ['entity.other.inherited-class'],
settings: {
foreground: base.cyan
}
};
}
function builtinClasses({ base }: Colors): TokenSettings {
return {
name: 'Built-in classes',
scope: ['support.class.builtin'],
settings: {
foreground: base.green
}
};
}

View File

@ -1,46 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
comments(colors),
...jsdoc(colors)
];
function comments({ misc }: Colors): TokenSettings {
return {
name: 'Comments',
scope: [
'comment',
'punctuation.definition.comment',
'unused.comment',
'wildcard.comment'
],
settings: {
foreground: misc.comment
}
};
}
// TODO: some things are missing here, do audit
function jsdoc({ base }: Colors): TokenSettings[] {
return [
{
name: 'JSDoc comment keywords/classes',
scope: [
'comment keyword.codetag.notation',
'comment.block.documentation keyword',
'comment.block.documentation storage.type.class'
],
settings: {
foreground: base.cyan
}
},
{
name: 'JSDoc-style comment parameters',
scope: ['comment.block.documentation variable'],
settings: {
foreground: base.orange
}
}
];
}

View File

@ -1,64 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
constants(colors),
userDefinedConstants(colors),
constantEscapes(colors),
timestamps(colors),
builtinConstants(colors)
];
function constants({ base }: Colors): TokenSettings {
return {
name: 'Constants',
scope: ['constant'],
settings: {
foreground: base.orange
}
};
}
function userDefinedConstants({ base }: Colors): TokenSettings {
return {
name: 'User-defined constants',
scope: ['variable.other.constant'],
settings: {
foreground: base.purple
}
};
}
function constantEscapes({ base }: Colors): TokenSettings {
return {
name: 'Constant escape sequences',
scope: [
'constant.character.escape',
'constant.character.string.escape',
'constant.regexp'
],
settings: {
foreground: base.pink
}
};
}
function timestamps({ base }: Colors): TokenSettings {
return {
name: 'Dates and timestamps',
scope: ['constant.other.date', 'constant.other.timestamp'],
settings: {
foreground: base.orange
}
};
}
function builtinConstants({ base }: Colors): TokenSettings {
return {
name: 'Built-in constants',
scope: ['support.variable', 'variable.other.predefined'],
settings: {
foreground: base.purple
}
};
}

View File

@ -1,74 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
definitions(colors),
params(colors),
invocation(colors),
decorators(colors),
magicFunctions(colors)
];
function definitions({ base }: Colors): TokenSettings {
return {
name: 'Function definitions',
scope: ['meta.definition.function', 'meta.definition.method'],
settings: {
foreground: base.green
}
};
}
function params({ base }: Colors): TokenSettings {
return {
name: 'Function parameters',
scope: [
'entity.name.variable.parameter',
'meta.at-rule.function variable',
'meta.at-rule.mixin variable',
'variable.parameter'
],
settings: {
foreground: base.orange
}
};
}
function invocation({ base }: Colors): TokenSettings {
return {
name: 'Function invocation',
scope: [
'meta.function-call.generic',
'meta.function-call.object',
'meta.function-call.static',
'keyword.operator.function.infix'
],
settings: {
foreground: base.cyan
}
};
}
function decorators({ base }: Colors): TokenSettings {
return {
name: 'Decorators',
scope: [
'meta.decorator variable.other.readwrite',
'meta.decorator variable.other.property',
'meta.decorator variable.other.object'
],
settings: {
foreground: base.green
}
};
}
function magicFunctions({ base }: Colors): TokenSettings {
return {
name: 'Magic functions',
scope: ['support.function.magic'],
settings: {
foreground: base.purple
}
};
}

View File

@ -1,54 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings, { TokenFontStyle } from '../TokenSettings';
import classes from './classes';
import comments from './comments';
import constants from './constants';
import functions from './functions';
import keywords from './keywords';
import punctuation from './punctuation';
import strings from './strings';
import typings from './typings';
import variables from './variables';
export default (colors): TokenSettings[] => [
...buildGeneralSettings(colors),
...classes(colors),
...comments(colors),
...constants(colors),
...functions(colors),
...keywords(colors),
...punctuation(colors),
...strings(colors),
...typings(colors),
...variables(colors)
];
function buildGeneralSettings({ base }: Colors): TokenSettings[] {
return [
{
scope: ['emphasis'],
settings: {
fontStyle: TokenFontStyle.italic
}
},
{
scope: ['strong'],
settings: {
fontStyle: TokenFontStyle.bold
}
},
{
scope: ['header'],
settings: {
foreground: base.purple
}
},
{
scope: ['source'],
settings: {
foreground: base.fg
}
}
];
}

View File

@ -1,19 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings, { TokenFontStyle } from '../TokenSettings';
export default ({ base }: Colors): TokenSettings[] => [
{
name: 'Keywords',
scope: ['keyword', 'punctuation.definition.keyword'],
settings: {
foreground: base.pink
}
},
{
name: 'Keyword "new"',
scope: ['keyword.control.new', 'keyword.operator.new'],
settings: {
fontStyle: TokenFontStyle.bold
}
}
];

View File

@ -1,74 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
separators(colors),
bounds(colors),
interpolation(colors)
];
function separators({ base }: Colors): TokenSettings {
return {
name: 'Separators',
scope: [
'entity.other.attribute-name.placeholder punctuation',
'entity.other.attribute-name.pseudo-class punctuation',
'entity.other.attribute-name.pseudo-element punctuation',
'meta.object-binding-pattern-variable punctuation.destructuring',
'punctuation.definition.entity.other.inherited-class',
'punctuation.separator.dictionary.key-value',
'punctuation.separator.hash',
'punctuation.separator.inheritance',
'punctuation.separator.key-value',
'punctuation.separator.namespace',
'punctuation.separator.pointer-access',
'punctuation.separator.slice',
'string.unquoted.heredoc punctuation.definition.string',
'punctuation.separator.annotation',
'punctuation.accessor'
],
settings: {
foreground: base.pink
}
};
}
function bounds({ base }: Colors): TokenSettings {
return {
name: 'Bounds (brackets, braces, parens, etc.)',
scope: [
'meta.brace.round',
'meta.function-call punctuation',
'punctuation.definition.arguments.begin',
'punctuation.definition.arguments.end',
'punctuation.definition.entity.begin',
'punctuation.definition.entity.end',
'punctuation.definition.type.begin',
'punctuation.definition.type.end',
'punctuation.section.scope.begin',
'punctuation.section.scope.end',
'string.template meta.brace'
],
settings: {
foreground: base.fg
}
};
}
function interpolation({ base }: Colors): TokenSettings {
return {
name: 'Variable interpolation operators',
scope: [
'meta.string-contents.quoted.double punctuation.definition.variable',
'punctuation.definition.interpolation.begin',
'punctuation.definition.interpolation.end',
'punctuation.definition.template-expression.begin',
'punctuation.definition.template-expression.end',
'punctuation.section.embedded.begin',
'punctuation.section.embedded.end'
],
settings: {
foreground: base.pink
}
};
}

View File

@ -1,22 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default ({ base }: Colors): TokenSettings[] => [
{
name: 'Strings',
scope: [
'string',
// For some reason, quotation marks surrounding strings will not be styled
// yellow when the string is used as a function parameter or object property
// in some languages. So, we force the styling explicitly!
'punctuation.definition.string.begin',
'punctuation.definition.string.end',
'punctuation.support.type.property-name.begin',
'punctuation.support.type.property-name.end'
],
settings: {
foreground: base.yellow
}
}
];

View File

@ -1,51 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
storage(colors),
...types(colors),
modifiers(colors)
];
function storage({ base }: Colors): TokenSettings {
return {
name: 'Storage',
scope: ['storage'],
settings: {
foreground: base.pink
}
};
}
function types({ base }: Colors): TokenSettings[] {
return [
{
name: 'Types',
scope: ['entity.name.type'],
settings: {
foreground: base.cyan
}
},
{
name: 'Generics, templates, and mapped type declarations',
scope: [
'entity.name.type.type-parameter',
'meta.indexer.mappedtype.declaration entity.name.type',
'meta.type.parameters entity.name.type'
],
settings: {
foreground: base.orange
}
}
];
}
function modifiers({ base }: Colors): TokenSettings {
return {
name: 'Modifiers',
scope: ['storage.modifier'],
settings: {
foreground: base.pink
}
};
}

View File

@ -1,39 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
variables(colors),
...destructuring(colors)
];
function variables({ base }: Colors): TokenSettings {
return {
name: 'Variables and object properties',
scope: ['variable', 'support.variable.property'],
settings: {
foreground: base.fg
}
};
}
function destructuring({ base }: Colors): TokenSettings[] {
return [
{
name: 'Destructuring value for alias',
scope: [
'meta.import variable.other.readwrite',
'meta.object-binding-pattern-variable variable.object.property'
],
settings: {
foreground: base.orange
}
},
{
name: 'Destructuring value alias',
scope: ['meta.import variable.other.readwrite.alias'],
settings: {
foreground: base.fg
}
}
];
}

View File

@ -1,7 +0,0 @@
import general from './general';
import languages from './languages';
import TokenSettings from './TokenSettings';
export default (colors): TokenSettings[] => {
return [...general(colors), ...languages(colors)];
};

View File

@ -1,12 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default ({ base }: Colors): TokenSettings[] => [
{
name: 'C Types',
scope: ['storage.type.c'],
settings: {
foreground: base.cyan
}
}
];

View File

@ -1,38 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
interpolation(colors),
...destructuring(colors)
];
function interpolation({ base }: Colors): TokenSettings {
return {
name: 'CoffeeScript interpolation punctuation',
scope: ['punctuation.section.embedded.coffee'],
settings: {
foreground: base.pink
}
};
}
function destructuring({ base }: Colors): TokenSettings[] {
return [
{
name: 'Destructuring value for alias',
scope: ['meta.variable.assignment.destructured.object.coffee variable'],
settings: {
foreground: base.orange
}
},
{
name: 'Destructuring value alias',
scope: [
'meta.variable.assignment.destructured.object.coffee variable variable'
],
settings: {
foreground: base.fg
}
}
];
}

View File

@ -1,27 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
punctuation(colors),
types(colors)
];
function punctuation({ base }: Colors): TokenSettings {
return {
name: 'C# punctuation bounds',
scope: ['punctuation.definition.tag.cs'],
settings: {
foreground: base.fg
}
};
}
function types({ base }: Colors): TokenSettings {
return {
name: 'C# Types',
scope: ['keyword.type.cs', 'storage.type.cs'],
settings: {
foreground: base.cyan
}
};
}

View File

@ -1,57 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings, { TokenFontStyle } from '../TokenSettings';
export default ({ base, misc }: Colors): TokenSettings[] => {
return [
{
scope: ['meta.diff', 'meta.diff.header'],
settings: {
foreground: misc.comment
}
},
{
scope: ['markup.inserted'],
settings: {
foreground: base.green
}
},
{
scope: ['markup.deleted'],
settings: {
foreground: base.red
}
},
{
scope: ['markup.changed'],
settings: {
foreground: base.orange
}
},
{
scope: ['invalid'],
settings: {
foreground: base.red,
fontStyle: TokenFontStyle.ui
}
},
{
scope: ['invalid.deprecated'],
settings: {
foreground: base.fg,
fontStyle: TokenFontStyle.ui
}
},
{
scope: ['entity.name.filename'],
settings: {
foreground: base.yellow
}
},
{
scope: ['markup.error'],
settings: {
foreground: base.red
}
}
];
};

View File

@ -1,73 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
functions(colors),
constants(colors),
...modules(colors),
...punctuation(colors)
];
function functions({ base }: Colors): TokenSettings {
return {
name: 'Elixir function definitions',
scope: ['entity.name.function.elixir'],
settings: { foreground: base.green }
};
}
function constants({ base }: Colors): TokenSettings {
return {
name: 'Elixir atoms',
scope: ['constant.other.symbol.elixir'],
settings: { foreground: base.cyan }
};
}
function modules({ base }: Colors): TokenSettings[] {
return [
{
name: 'Elixir module definitions',
scope: ['entity.name.type.module.elixir'],
settings: { foreground: base.green }
},
{
name: 'Elixir module variables',
scope: [
'variable.other.readwrite.module.elixir',
'variable.other.readwrite.module.elixir punctuation.definition.variable.elixir'
],
settings: {
foreground: base.orange
}
}
];
}
function punctuation({ base }: Colors): TokenSettings[] {
return [
{
name: 'Elixir separators',
scope: ['punctuation.separator.method.elixir'],
settings: {
foreground: base.pink
}
},
{
name: 'Elixir interpolation',
scope: ['punctuation.section.embedded.elixir'],
settings: {
foreground: base.pink
}
},
{
name: 'Elixir capture ampersands',
scope: [
'variable.other.anonymous.elixir punctuation.definition.variable.elixir'
],
settings: {
foreground: base.pink
}
}
];
}

View File

@ -1,48 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
punctuation(colors),
...typings(colors),
...functions(colors)
];
function typings({ base }: Colors): TokenSettings[] {
return [
{
name: 'Go Types',
scope: ['source.go storage.type'],
settings: {
foreground: base.cyan
}
},
{
name: 'Go Types',
scope: ['entity.name.type.go'],
settings: { foreground: base.purple }
}
];
}
function functions({ base }: Colors): TokenSettings[] {
return [
{
name: 'Go function definitions',
scope: ['entity.name.function.go'],
settings: { foreground: base.green }
},
{
name: 'Go function invocation',
scope: ['support.function.go'],
settings: { foreground: base.cyan }
}
];
}
function punctuation({ base }: Colors): TokenSettings {
return {
name: 'Go separators',
scope: ['punctuation.other.period.go', 'punctuation.other.colon.go'],
settings: { foreground: base.pink }
};
}

View File

@ -1,68 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
separators(colors),
keys(colors),
types(colors),
actions(colors),
variables(colors)
];
function separators({ base }: Colors): TokenSettings {
return {
name: 'GraphQL separators',
scope: ['punctuation.colon.graphql'],
settings: {
foreground: base.pink
}
};
}
function keys({ base }: Colors): TokenSettings {
return {
name: 'GraphQL keys',
scope: ['variable.graphql', 'variable.arguments.graphql'],
settings: {
foreground: base.yellow
}
};
}
function types({ base }: Colors): TokenSettings {
return {
name: 'GraphQL types',
scope: [
'support.type.graphql',
'support.type.builtin.graphql',
'support.type.enum.graphql',
'entity.scalar.graphql'
],
settings: {
foreground: base.cyan
}
};
}
function actions({ base }: Colors): TokenSettings {
return {
name: 'GraphQL actions (mutations, fragments, queries)',
scope: ['entity.name.function.graphql'],
settings: {
foreground: base.green
}
};
}
function variables({ base }: Colors): TokenSettings {
return {
name: 'GraphQL variables',
scope: [
'meta.selectionset.graphql variable.graphql',
'variable.parameter.graphql'
],
settings: {
foreground: base.orange
}
};
}

View File

@ -1,47 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
functions(colors),
...typings(colors),
resets(colors)
];
function functions({ base }: Colors): TokenSettings {
return {
name: 'Groovy function definitions',
scope: ['meta.method.groovy'],
settings: {
foreground: base.green
}
};
}
function typings({ base }: Colors): TokenSettings[] {
return [
{
name: 'Groovy storage',
scope: ['source.groovy storage.type.def'],
settings: {
foreground: base.pink
}
},
{
name: 'Groovy Types',
scope: ['source.groovy storage.type', 'storage.type.groovy'],
settings: {
foreground: base.cyan
}
}
];
}
function resets({ base }: Colors): TokenSettings {
return {
name: 'Groovy foreground resets',
scope: ['keyword.operator.navigation.groovy'],
settings: {
foreground: base.fg
}
};
}

View File

@ -1,38 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
types(colors),
pragmas(colors),
resets(colors)
];
function types({ base }: Colors): TokenSettings {
return {
name: 'Haskell Types',
scope: ['storage.type.haskell'],
settings: {
foreground: base.cyan
}
};
}
function pragmas({ misc }: Colors): TokenSettings {
return {
name: 'Haskell Pragmas',
scope: ['meta.preprocessor.haskell'],
settings: {
foreground: misc.comment
}
};
}
function resets({ base }: Colors): TokenSettings {
return {
name: 'Haskell foreground resets',
scope: ['constant.language.empty-list.haskell'],
settings: {
foreground: base.fg
}
};
}

View File

@ -1,134 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
jsxTagPunctuation(colors),
htmlTags(colors),
componentTags(colors),
...selectors(colors),
attributeNames(colors),
resets(colors),
...css(colors)
];
function jsxTagPunctuation({ base }: Colors): TokenSettings {
return {
name: 'JSX Tag Punctuation',
scope: [
'punctuation.definition.tag.begin.js',
'punctuation.definition.tag.end.js',
'punctuation.definition.tag.begin.tsx',
'punctuation.definition.tag.end.tsx'
],
settings: {
foreground: base.pink
}
};
}
function htmlTags({ base }: Colors): TokenSettings {
return {
name: 'HTML tags',
scope: ['entity.name.tag'],
settings: {
foreground: base.pink
}
};
}
function componentTags({ base }: Colors): TokenSettings {
return {
name: 'Component tags',
scope: [
'entity.name.tag support.class.component.js',
'entity.name.tag support.class.component.tsx'
],
settings: {
foreground: base.white
}
};
}
function selectors({ base }: Colors): TokenSettings[] {
return [
{
name: 'Generic selectors',
scope: ['meta.selector'],
settings: {
foreground: base.pink
}
},
{
name: 'Parent selectors (like `&`)',
scope: ['entity.other.attribute-name.parent-selector'],
settings: {
foreground: base.pink
}
},
{
name: 'Attribute selector strings',
scope: ['meta.attribute-selector.scss'],
settings: {
foreground: base.yellow
}
},
{
name: 'Attribute selector brackets',
scope: [
'punctuation.definition.attribute-selector.end.bracket.square.scss',
'punctuation.definition.attribute-selector.begin.bracket.square.scss'
],
settings: {
foreground: base.fg
}
}
];
}
function attributeNames({ base }: Colors): TokenSettings {
return {
name: 'HTML/CSS attribute names',
scope: ['entity.other.attribute-name'],
settings: {
foreground: base.green
}
};
}
function resets({ base }: Colors): TokenSettings {
return {
name: 'JSX / TSX / CSS foreground resets',
scope: [
'punctuation.section.embedded.begin.tsx',
'punctuation.section.embedded.end.tsx',
'punctuation.section.embedded.begin.jsx',
'punctuation.section.embedded.end.jsx',
'punctuation.separator.list.comma.css'
],
settings: {
foreground: base.fg
}
};
}
function css({ base }: Colors): TokenSettings[] {
return [
{
name: 'CSS Property Keys',
scope: ['support.constant.property-value.css'],
settings: {
foreground: base.cyan
}
},
{
name: '@media rules',
scope: [
'keyword.control.at-rule.media.scss',
'keyword.control.at-rule.media.scss punctuation.definition.keyword.scss'
],
settings: {
foreground: base.green
}
}
];
}

View File

@ -1,63 +0,0 @@
import TokenSettings from '../TokenSettings';
import c from './c';
import coffeescript from './coffeescript';
import csharp from './csharp';
import diff from './diff';
import elixir from './elixir';
import go from './go';
import graphql from './graphql';
import groovy from './groovy';
import haskell from './haskell';
import htmlCssJsx from './html-jsx-css';
import java from './java';
import javascript from './javascript';
import lua from './lua';
import makefile from './makefile';
import markdown from './markdown';
import objectiveC from './objective-c';
import ocaml from './ocaml';
import perl from './perl';
import php from './php';
import powershell from './powershell';
import python from './python';
import regexp from './regexp';
import ruby from './ruby';
import rust from './rust';
import shell from './shell';
import swift from './swift';
import toml from './toml';
import typescript from './typescript';
import yaml from './yaml';
export default (colors): TokenSettings[] => [
...c(colors),
...coffeescript(colors),
...csharp(colors),
...diff(colors),
...elixir(colors),
...go(colors),
...graphql(colors),
...groovy(colors),
...haskell(colors),
...htmlCssJsx(colors),
...java(colors),
...javascript(colors),
...lua(colors),
...makefile(colors),
...markdown(colors),
...objectiveC(colors),
...ocaml(colors),
...perl(colors),
...php(colors),
...powershell(colors),
...python(colors),
...regexp(colors),
...ruby(colors),
...rust(colors),
...shell(colors),
...swift(colors),
...toml(colors),
...typescript(colors),
...yaml(colors)
];

View File

@ -1,49 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
functions(colors),
punctuationBounds(colors),
types(colors),
resets(colors)
];
function functions({ base }: Colors): TokenSettings {
return {
name: 'Java function invocation',
scope: ['meta.method-call.java meta.method'],
settings: {
foreground: base.green
}
};
}
function punctuationBounds({ base }: Colors): TokenSettings {
return {
name: 'Java punctuation bounds',
scope: ['storage.type.generic.java'],
settings: {
foreground: base.fg
}
};
}
function types({ base }: Colors): TokenSettings {
return {
name: 'Java Types',
scope: ['source.java storage.type'],
settings: {
foreground: base.cyan
}
};
}
function resets({ base }: Colors): TokenSettings {
return {
name: 'Java foreground resets',
scope: ['keyword.operator.dereference.java', 'storage.modifier.import'],
settings: {
foreground: base.fg
}
};
}

View File

@ -1,76 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
prototypeProperty(colors),
constants(colors),
specialLanguageClasses(colors),
classesInUse(colors),
...functions(colors)
];
function prototypeProperty({ base }: Colors): TokenSettings {
return {
name: 'JavaScript prototype prop',
scope: ['support.variable.property.js'],
settings: { foreground: base.purple }
};
}
function constants({ base }: Colors): TokenSettings {
return {
name: 'JavaScript constant definitions',
scope: ['variable.other.constant.js'],
settings: {
foreground: base.cyan
}
};
}
function specialLanguageClasses({ base }: Colors): TokenSettings {
return {
name: 'JavaScript language classes',
scope: [
'support.class.console.js',
'support.type.object.module.js',
'support.class.promise.js',
'support.constant.json.js'
],
settings: {
foreground: base.green
}
};
}
function classesInUse({ base }: Colors): TokenSettings {
return {
name: 'JavaScript classes in use',
scope: ['support.class.js'],
settings: {
foreground: base.green
}
};
}
function functions({ base }: Colors): TokenSettings[] {
return [
{
name: 'JS function definitions',
scope: [
'meta.object-literal.key.js entity.name.function.js',
'meta.var.expr.js meta.definition.variable.js entity.name.function.js',
'meta.definition.property.js entity.name.function.js'
],
settings: {
foreground: base.green
}
},
{
name: 'JS function invocation',
scope: ['meta.function-call.js'],
settings: {
foreground: base.cyan
}
}
];
}

View File

@ -1,14 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [functions(colors)];
function functions({ base }: Colors): TokenSettings {
return {
name: 'Lua function definitions',
scope: ['support.function.any-method.lua'],
settings: {
foreground: base.green
}
};
}

View File

@ -1,38 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
punctuation(colors),
keys(colors),
prerequisiteNames(colors)
];
function punctuation({ base }: Colors): TokenSettings {
return {
name: 'Makefile interpolation punctuation',
scope: ['punctuation.definition.variable.makefile'],
settings: {
foreground: base.pink
}
};
}
function keys({ base }: Colors): TokenSettings {
return {
name: 'Makefile keys',
scope: ['entity.name.function.target.makefile'],
settings: {
foreground: base.cyan
}
};
}
function prerequisiteNames({ base }: Colors): TokenSettings {
return {
name: 'Makefile prerequisite names',
scope: ['meta.scope.prerequisites.makefile'],
settings: {
foreground: base.yellow
}
};
}

View File

@ -1,188 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings, { TokenFontStyle } from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
underlined(),
bolded(colors),
headings(colors),
italics(colors),
collections(colors),
inlineCode(colors),
...links(colors),
blockquotes(colors),
hr(colors),
codeBlocks(colors),
constants(colors),
...braces(colors)
];
function underlined(): TokenSettings {
return {
name: 'Underlined markdown',
scope: ['markup.underline'],
settings: {
fontStyle: TokenFontStyle.underline
}
};
}
function bolded({ base }: Colors): TokenSettings {
return {
name: 'Bolded markdown',
scope: ['markup.bold'],
settings: {
fontStyle: TokenFontStyle.bold,
foreground: base.orange
}
};
}
function headings({ base }: Colors): TokenSettings {
return {
name: 'Markdown headings',
scope: ['markup.heading'],
settings: {
fontStyle: TokenFontStyle.bold,
foreground: base.purple
}
};
}
function italics({ base }: Colors): TokenSettings {
return {
name: 'Markdown italics',
scope: ['markup.italic'],
settings: {
fontStyle: TokenFontStyle.italic,
foreground: base.yellow
}
};
}
function collections({ base }: Colors): TokenSettings {
return {
name: 'Collections (bullets + lists)',
scope: [
'beginning.punctuation.definition.list.markdown',
'beginning.punctuation.definition.quote.markdown',
'punctuation.definition.link.restructuredtext'
],
settings: {
foreground: base.cyan
}
};
}
function inlineCode({ base }: Colors): TokenSettings {
return {
name: 'Inline code',
scope: ['markup.inline.raw', 'markup.raw.restructuredtext'],
settings: {
foreground: base.green
}
};
}
function links({ base }: Colors): TokenSettings[] {
return [
{
name: 'Links',
scope: ['markup.underline.link', 'markup.underline.link.image'],
settings: {
foreground: base.cyan
}
},
{
name: 'Link text, image alt text',
scope: [
'meta.link.reference.def.restructuredtext',
'punctuation.definition.directive.restructuredtext',
'string.other.link.description',
'string.other.link.title'
],
settings: {
foreground: base.pink
}
}
];
}
function blockquotes({ base }: Colors): TokenSettings {
return {
name: 'Blockquotes',
scope: ['entity.name.directive.restructuredtext', 'markup.quote'],
settings: {
fontStyle: TokenFontStyle.italic,
foreground: base.yellow
}
};
}
function hr({ misc }: Colors): TokenSettings {
return {
name: 'Horizontal rule',
scope: ['meta.separator.markdown'],
settings: {
foreground: misc.comment
}
};
}
function codeBlocks({ base }: Colors): TokenSettings {
return {
name: 'Code blocks',
scope: [
'fenced_code.block.language',
'markup.raw.inner.restructuredtext',
'markup.fenced_code.block.markdown punctuation.definition.markdown'
],
settings: {
foreground: base.green
}
};
}
function constants({ base }: Colors): TokenSettings {
return {
name: 'Markdown constants',
scope: ['punctuation.definition.constant.restructuredtext'],
settings: {
foreground: base.purple
}
};
}
function braces({ base }: Colors): TokenSettings[] {
return [
{
name: 'Braces in markdown headings',
scope: [
'markup.heading.markdown punctuation.definition.string.begin',
'markup.heading.markdown punctuation.definition.string.end'
],
settings: {
foreground: base.purple
}
},
{
name: 'Braces in markdown paragraphs',
scope: [
'meta.paragraph.markdown punctuation.definition.string.begin',
'meta.paragraph.markdown punctuation.definition.string.end'
],
settings: {
foreground: base.fg
}
},
{
name: 'Braces in markdown blockquotes',
scope: [
'markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.begin',
'markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.end'
],
settings: {
foreground: base.yellow
}
}
];
}

View File

@ -1,26 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default ({ base }: Colors): TokenSettings[] => [
{
name: 'Objective-C Storage',
scope: [
'meta.implementation storage.type.objc',
'meta.interface-or-protocol storage.type.objc'
],
settings: {
foreground: base.pink
}
},
{
name: 'Objective-C Types',
scope: [
'meta.protocol-list.objc',
'meta.return-type.objc',
'storage.type.objc'
],
settings: {
foreground: base.cyan
}
}
];

View File

@ -1,12 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default ({ base }: Colors): TokenSettings[] => [
{
name: 'OCaml Types',
scope: ['storage.type.ocaml'],
settings: {
foreground: base.cyan
}
}
];

View File

@ -1,12 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default ({ base }: Colors): TokenSettings[] => [
{
name: 'Variables and object properties',
scope: ['constant.other.key.perl'],
settings: {
foreground: base.fg
}
}
];

View File

@ -1,56 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
instanceKeywords(colors),
...functions(colors),
interpolation(colors),
types(colors)
];
function instanceKeywords({ base }: Colors): TokenSettings {
return {
name: 'PHP instance keywords',
scope: ['variable.language punctuation.definition.variable.php'],
settings: { foreground: base.purple }
};
}
function functions({ base }: Colors): TokenSettings[] {
return [
{
name: 'PHP function parameters',
scope: ['meta.function.arguments variable.other.php'],
settings: {
foreground: base.green
}
},
{
name: 'PHP function invocation',
scope: ['meta.function-call.php'],
settings: {
foreground: base.cyan
}
}
];
}
function interpolation({ base }: Colors): TokenSettings {
return {
name: 'PHP interpolation operators',
scope: ['punctuation.section.embedded.end source.php'],
settings: {
foreground: base.pink
}
};
}
function types({ base }: Colors): TokenSettings {
return {
name: 'PHP Types',
scope: ['storage.type.php'],
settings: {
foreground: base.cyan
}
};
}

View File

@ -1,41 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
punctuation(colors),
types(colors),
constants(colors)
];
function punctuation({ base }: Colors): TokenSettings {
return {
name: 'Powershell punctuation bounds',
scope: [
'keyword.operator.other.powershell',
'keyword.other.statement-separator.powershell'
],
settings: {
foreground: base.fg
}
};
}
function types({ base }: Colors): TokenSettings {
return {
name: 'Powershell Types',
scope: ['source.powershell entity.other.attribute-name'],
settings: {
foreground: base.cyan
}
};
}
function constants({ base }: Colors): TokenSettings {
return {
name: 'Powershell constants',
scope: ['support.constant'],
settings: {
foreground: base.purple
}
};
}

View File

@ -1,38 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
...functions(colors),
punctuation(colors)
];
function functions({ base }: Colors): TokenSettings[] {
return [
{
name: 'Python function definitions',
scope: ['entity.name.function.python'],
settings: { foreground: base.green }
},
{
name: 'Python function invocation',
scope: [
'meta.function-call.python support.type.python',
'meta.function-call.python support.function.builtin.python'
],
settings: { foreground: base.cyan }
}
];
}
function punctuation({ base }: Colors): TokenSettings {
return {
name: 'Python separators',
scope: [
'punctuation.separator.period.python',
'punctuation.separator.colon.python',
'punctuation.separator.dict.python',
'punctuation.section.function.begin.python'
],
settings: { foreground: base.pink }
};
}

View File

@ -1,64 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default ({ base }: Colors): TokenSettings[] => [
{
name: 'RegExp string',
scope: [
'string.regexp',
'constant.other.character-class.set.regexp',
'constant.character.escape.backslash.regexp'
],
settings: {
foreground: base.yellow
}
},
{
name: 'RegExp non-capture operators',
scope: ['punctuation.definition.group.capture.regexp'],
settings: {
foreground: base.pink
}
},
{
name: 'RegExp start and end characters',
scope: [
'string.regexp punctuation.definition.string.begin',
'string.regexp punctuation.definition.string.end'
],
settings: {
foreground: base.red
}
},
{
name: 'Character group',
scope: ['punctuation.definition.character-class.regexp'],
settings: {
foreground: base.cyan
}
},
{
name: 'Capture groups',
scope: ['punctuation.definition.group.regexp'],
settings: {
foreground: base.orange
}
},
{
name: 'Assertion operators',
scope: [
'punctuation.definition.group.assertion.regexp',
'keyword.operator.negation.regexp'
],
settings: {
foreground: base.red
}
},
{
name: 'Positive lookaheads',
scope: ['meta.assertion.look-ahead.regexp'],
settings: {
foreground: base.green
}
}
];

View File

@ -1,126 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
instanceVariables(colors),
classVariables(colors),
classesInUse(colors),
constants(colors),
...functions(colors),
...punctuation(colors),
symbols(colors)
];
function instanceVariables({ base }: Colors): TokenSettings {
return {
name: 'Ruby instance variables',
scope: [
'variable.other.readwrite.instance.ruby',
'variable.other.readwrite.instance.ruby punctuation.definition.variable.ruby'
],
settings: {
foreground: base.orange
}
};
}
function classVariables({ base }: Colors): TokenSettings {
return {
name: 'Ruby class variables',
scope: [
'variable.other.readwrite.class.ruby',
'variable.other.readwrite.class.ruby punctuation.definition.variable.ruby'
],
settings: {
foreground: base.cyan
}
};
}
function classesInUse({ base }: Colors): TokenSettings {
return {
name: 'Ruby classes in use',
scope: ['support.class.ruby'],
settings: {
foreground: base.green
}
};
}
function constants({ base }: Colors): TokenSettings {
return {
name: 'Ruby constant definitions',
scope: ['variable.other.constant.ruby'],
settings: {
foreground: base.cyan
}
};
}
function functions({ base }: Colors): TokenSettings[] {
return [
{
name: 'Ruby function definitions',
scope: [
'meta.function.method.with-arguments.ruby entity.name.function.ruby',
'meta.function.method.without-arguments.ruby entity.name.function.ruby'
],
settings: {
foreground: base.green
}
},
{
name: 'Ruby block function parameters',
scope: ['variable.other.block.ruby'],
settings: {
foreground: base.orange
}
},
{
name: 'Ruby function invocation',
scope: [
'meta.function-call.ruby entity.name.function.ruby',
'support.function.kernel.ruby'
],
settings: {
foreground: base.cyan
}
}
];
}
function punctuation({ base }: Colors): TokenSettings[] {
return [
{
name: 'Ruby separators',
scope: ['punctuation.separator.method.ruby'],
settings: {
foreground: base.pink
}
},
{
name: 'Ruby interpolation',
scope: ['punctuation.section.embedded.end source.ruby'],
settings: {
foreground: base.pink
}
}
];
}
function symbols({ base }: Colors): TokenSettings {
return {
name: 'Ruby symbols',
scope: [
'constant.language.symbol.hashkey.ruby',
'constant.language.symbol.ruby',
'constant.other.symbol.hashkey.ruby',
'constant.other.symbol.ruby',
'punctuation.definition.constant.ruby',
'punctuation.definition.constant.hashkey.ruby'
],
settings: {
foreground: base.purple
}
};
}

View File

@ -1,12 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default ({ base }: Colors): TokenSettings[] => [
{
name: 'Rust Types',
scope: ['storage.class.std.rust', 'storage.type.core.rust'],
settings: {
foreground: base.cyan
}
}
];

View File

@ -1,31 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
variables(colors),
resets(colors)
];
function variables({ base }: Colors): TokenSettings {
return {
name: 'Shell variables prefixed with "$"',
scope: ['source.shell variable.other'],
settings: {
foreground: base.purple
}
};
}
function resets({ base }: Colors): TokenSettings {
return {
name: 'Shell foreground resets',
scope: [
'meta.scope.for-loop.shell punctuation.definition.string.begin',
'meta.scope.for-loop.shell punctuation.definition.string.end',
'meta.scope.for-loop.shell string'
],
settings: {
foreground: base.fg
}
};
}

View File

@ -1,39 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
instanceKeywords(colors),
separators(colors),
types(colors)
];
function instanceKeywords({ base }: Colors): TokenSettings {
return {
name: 'Swift instance keywords',
scope: ['keyword.expressions-and-types.swift'],
settings: { foreground: base.purple }
};
}
function separators({ base }: Colors): TokenSettings {
return {
name: 'Swift separators',
scope: ['punctuation.function.swift'],
settings: {
foreground: base.pink
}
};
}
function types({ base }: Colors): TokenSettings {
return {
name: 'Groovy Types',
scope: [
'keyword.primitive-datatypes.swift',
'storage.type.attribute.swift'
],
settings: {
foreground: base.cyan
}
};
}

View File

@ -1,31 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
punctuation(colors),
keys(colors)
];
function punctuation({ base }: Colors): TokenSettings {
return {
name: 'TOML separators',
scope: ['meta.group.double.toml', 'meta.group.toml'],
settings: {
foreground: base.pink
}
};
}
function keys({ base }: Colors): TokenSettings {
return {
name: 'TOML keys',
scope: [
'entity.name.section.toml',
'entity.name.tag.yaml',
'variable.other.key.toml'
],
settings: {
foreground: base.cyan
}
};
}

View File

@ -1,141 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
prototypeProperty(colors),
constants(colors),
specialLanguageClasses(colors),
classesInUse(colors),
...functions(colors),
...typings(colors)
];
function prototypeProperty({ base }: Colors): TokenSettings {
return {
name: 'TypeScript prototype prop',
scope: ['support.variable.property.ts', 'support.variable.property.tsx'],
settings: { foreground: base.purple }
};
}
function constants({ base }: Colors): TokenSettings {
return {
name: 'TypeScript constant definitions',
scope: ['variable.other.constant.ts', 'variable.other.constant.tsx'],
settings: {
foreground: base.cyan
}
};
}
function specialLanguageClasses({ base }: Colors): TokenSettings {
return {
name: 'TypeScript language classes',
scope: [
'support.class.console.ts',
'support.type.object.module.ts',
'support.class.promise.ts',
'support.constant.json.ts',
'support.class.console.tsx',
'support.type.object.module.tsx',
'support.class.promise.tsx',
'support.constant.json.tsx'
],
settings: {
foreground: base.green
}
};
}
function functions({ base }: Colors): TokenSettings[] {
return [
{
name: 'TS function definitions',
scope: [
'meta.object-literal.key.ts entity.name.function.ts',
'meta.var.expr.ts meta.definition.variable.ts entity.name.function.ts',
'meta.definition.property.ts entity.name.function.ts',
'meta.object-literal.key.tsx entity.name.function.tsx',
'meta.var.expr.tsx meta.definition.variable.tsx entity.name.function.tsx',
'meta.definition.property.tsx entity.name.function.tsx'
],
settings: {
foreground: base.green
}
},
{
name: 'TS function invocation',
scope: ['meta.function-call.ts', 'meta.function-call.tsx'],
settings: {
foreground: base.cyan
}
}
];
}
function classesInUse({ base }: Colors): TokenSettings {
return {
name: 'TypeScript classes in use',
scope: ['support.class.ts', 'support.class.tsx'],
settings: {
foreground: base.green
}
};
}
function typings({ base }: Colors): TokenSettings[] {
return [
{
name: 'TS Typing Definitions',
scope: [
'entity.name.type.alias.ts',
'entity.name.type.interface.ts',
'entity.name.type.enum.ts',
'entity.name.type.alias.tsx',
'entity.name.type.interface.tsx',
'entity.name.type.enum.tsx'
],
settings: {
foreground: base.green
}
},
{
name: 'TS Typing Uses',
scope: [
'support.type.primitive.ts',
'support.type.builtin.ts',
'entity.name.type.ts',
'support.type.primitive.tsx',
'support.type.builtin.tsx',
'entity.name.type.tsx'
],
settings: {
foreground: base.cyan
}
},
{
name: 'TS Generics / Type Parameters',
scope: [
'meta.type.parameters.ts support.type.primitive.ts',
'meta.type.parameters.ts entity.name.type.ts',
'meta.type.parameters.tsx support.type.primitive.tsx',
'meta.type.parameters.tsx entity.name.type.tsx'
],
settings: {
foreground: base.orange
}
},
{
name: 'TS Generics Punctuation',
scope: [
'punctuation.definition.typeparameters.begin.ts',
'punctuation.definition.typeparameters.end.ts',
'punctuation.definition.typeparameters.begin.tsx',
'punctuation.definition.typeparameters.end.tsx'
],
settings: {
foreground: base.pink
}
}
];
}

View File

@ -1,45 +0,0 @@
import { Colors } from '../../Theme';
import TokenSettings, { TokenFontStyle } from '../TokenSettings';
export default (colors: Colors): TokenSettings[] => [
punctuation(colors),
keys(colors),
aliases(colors)
];
function punctuation({ base }: Colors): TokenSettings {
return {
name: 'YAML separators',
scope: [
'punctuation.definition.block.scalar.folded.yaml',
'punctuation.definition.block.scalar.literal.yaml',
'punctuation.definition.block.sequence.item.yaml',
'punctuation.separator.key-value.mapping.yaml',
'support.other.chomping-indicator.yaml'
],
settings: {
foreground: base.pink
}
};
}
function keys({ base }: Colors): TokenSettings {
return {
name: 'YAML keys',
scope: ['entity.name.tag.yaml'],
settings: {
foreground: base.cyan
}
};
}
function aliases({ base }: Colors): TokenSettings {
return {
name: 'YAML aliases',
scope: ['variable.other.alias.yaml'],
settings: {
fontStyle: TokenFontStyle.underline,
foreground: base.green
}
};
}

View File

@ -1,64 +0,0 @@
import buildThemeSettings from '../settings/buildThemeSettings';
import { ANSIColors, BaseColors, MiscColors, Theme } from '../settings/Theme';
// Base colors
const base: BaseColors = {
bg: '#0E1419',
fg: '#F8F8F2',
cyan: '#8BE9FD',
green: '#50FA7B',
orange: '#FFB86C',
pink: '#FF79C6',
purple: '#BD93F9',
red: '#FF5555',
yellow: '#F1FA8C',
white: '#FFFFFF'
};
// ANSI colors
const ansi: ANSIColors = {
color0: '#44475A',
color1: '#DE312B',
color2: '#2FD651',
color3: '#D0D662',
color4: '#9C6FCF',
color5: '#DE559C',
color6: '#6AC5D3',
color7: '#D7D4C8',
color8: '#656B84',
color9: '#FF5555',
color10: '#50FA7B',
color11: '#F1FA8C',
color12: '#BD93F9',
color13: '#FF79C6',
color14: '#8BE9FD',
color15: '#F8F8F2'
};
const misc: MiscColors = {
comment: '#6272A4',
activeBorder: '#6272A4',
lineHighlight: '#253340',
container: '#253340',
nonText: '#424450',
tabDropBg: '#44475A70',
bgLighter: '#424450',
bgLight: '#343746',
bgDark: '#21222C',
bgDarker: '#191A21',
purpleDarker: '#574473',
selection: '#44475A',
menuHover: '#3A434D'
};
const theme: Theme = {
name: 'Dracula At Night',
author: 'Billy Ceskavich',
maintainers: ['Billy Ceskavich <bceskavich@gmail.com>'],
semanticClass: 'theme.dracula',
colorVars: { base, ansi, misc },
...buildThemeSettings(base, ansi, misc)
};
export default theme;

View File

@ -1 +0,0 @@
export { default as DraculaAtNight } from './DraculaAtNight';

View File

@ -1,13 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"outDir": "build",
"target": "es2017",
"sourceMap": true,
"esModuleInterop": true,
"noUnusedParameters": true,
"noUnusedLocals": true
},
"exclude": ["node_modules"],
"include": ["src/**/*.ts"]
}

View File

@ -1,11 +0,0 @@
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"no-console": false,
"interface-name": false,
"object-literal-sort-keys": false,
"member-access": false,
"no-var-requires": false,
"prefer-conditional-expression": false
}
}

View File

@ -1,70 +0,0 @@
# Discord Presence
> Update your discord status with a rich presence.
<div align="center">
<p>
<a href="https://marketplace.visualstudio.com/items?itemName=icrawl.discord-vscode">
<img alt="Visual Studio Marketplace Version" src="https://img.shields.io/visual-studio-marketplace/v/icrawl.discord-vscode?label=Visual%20Studio%20Marketplace">
</a>
<a href="https://marketplace.visualstudio.com/items?itemName=icrawl.discord-vscode">
<img alt="Visual Studio Marketplace Downloads" src="https://img.shields.io/visual-studio-marketplace/d/icrawl.discord-vscode">
</a>
<a href="https://marketplace.visualstudio.com/items?itemName=icrawl.discord-vscode">
<img alt="Visual Studio Marketplace Rating" src="https://img.shields.io/visual-studio-marketplace/r/icrawl.discord-vscode">
</a>
</p>
<p>
<a href="https://open-vsx.org/extension/icrawl/discord-vscode">
<img alt="Open VSX Version" src="https://img.shields.io/open-vsx/v/icrawl/discord-vscode?label=OpenVSX%20Marketplace">
</a>
<a href="https://open-vsx.org/extension/icrawl/discord-vscode">
<img alt="Open VSX Downloads" src="https://img.shields.io/open-vsx/dt/icrawl/discord-vscode">
</a>
<a href="https://open-vsx.org/extension/icrawl/discord-vscode">
<img alt="Open VSX Rating" src="https://img.shields.io/open-vsx/rating/icrawl/discord-vscode">
</a>
</p>
<p>
<a href="https://discord.gg/cZSWqAF">
<img src="https://canary.discordapp.com/api/guilds/424963290989461514/embed.png" alt="Discord server">
</a>
</p>
</div>
## Features
- Shows what you are editing in VSCode
- Support for over 140 of the most popular languages
- Enable/Disable Rich Presence for individual workspaces (enabled by default)
- Custom string support
- Stable or Insiders build detection
- Debug mode detection
- Easily manually reconnect to Discord
## Troubleshooting
**Windows:** Do not run your VSCode or Discord as admin, there is no reason to and it just further complicates everything down the line.
**Linux:** Discord versions installed using `flatpak` or `snap` need modifications in order to support IPC. In order to avoid this (and as Discord itself suggests) you should download it from [discord.com](https://discord.com/download)
References:
https://github.com/flathub/com.discordapp.Discord/issues/29
https://github.com/iCrawl/discord-vscode/issues/77#issuecomment-435622205
https://github.com/iCrawl/discord-vscode/issues/85#issuecomment-417895483
## Contributing
1. [Fork the repository](https://github.com/iCrawl/discord-vscode/fork)!
2. Clone your fork: `git clone https://github.com/your-username/discord-vscode.git`
3. Create your feature branch: `git checkout -b my-new-feature`
4. Commit your changes: `git commit -am 'Add some feature'`
5. Push to the branch: `git push origin my-new-feature`
6. Submit a pull request :D
## Author
**Discord Presence** © [iCrawl](https://github.com/iCrawl).
Authored and maintained by iCrawl.
> GitHub [@iCrawl](https://github.com/iCrawl)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

View File

@ -1,22 +0,0 @@
interface ActivityPayload {
details?: string | undefined;
state?: string | undefined;
startTimestamp?: number | null | undefined;
largeImageKey?: string | undefined;
largeImageText?: string | undefined;
smallImageKey?: string | undefined;
smallImageText?: string | undefined;
partyId?: string | undefined;
partySize?: number | undefined;
partyMax?: number | undefined;
matchSecret?: string | undefined;
joinSecret?: string | undefined;
spectateSecret?: string | undefined;
buttons?: {
label: string;
url: string;
}[] | undefined;
instance?: boolean | undefined;
}
export declare function activity(previous?: ActivityPayload): Promise<ActivityPayload>;
export {};

View File

@ -1,60 +0,0 @@
export declare const CLIENT_ID: "383226320970055681";
export declare const KNOWN_EXTENSIONS: {
[key: string]: {
image: string;
};
};
export declare const KNOWN_LANGUAGES: {
language: string;
image: string;
}[];
export declare const EMPTY: "";
export declare const FAKE_EMPTY: "";
export declare const FILE_SIZES: readonly [" bytes", "KB", "MB", "GB", "TB"];
export declare const IDLE_IMAGE_KEY: "vscode-big";
export declare const DEBUG_IMAGE_KEY: "debug";
export declare const VSCODE_IMAGE_KEY: "vscode";
export declare const VSCODE_INSIDERS_IMAGE_KEY: "vscode-insiders";
export declare const UNKNOWN_GIT_BRANCH: "Unknown";
export declare const UNKNOWN_GIT_REPO_NAME: "Unknown";
export declare const enum REPLACE_KEYS {
Empty = "{empty}",
FileName = "{file_name}",
DirName = "{dir_name}",
FullDirName = "{full_dir_name}",
Workspace = "{workspace}",
VSCodeWorkspace = "(Workspace)",
WorkspaceFolder = "{workspace_folder}",
WorkspaceAndFolder = "{workspace_and_folder}",
LanguageLowerCase = "{lang}",
LanguageTitleCase = "{Lang}",
LanguageUpperCase = "{LANG}",
TotalLines = "{total_lines}",
CurrentLine = "{current_line}",
CurrentColumn = "{current_column}",
FileSize = "{file_size}",
AppName = "{app_name}",
GitRepoName = "{git_repo_name}",
GitBranch = "{git_branch}"
}
export declare const enum CONFIG_KEYS {
Enabled = "enabled",
DetailsIdling = "detailsIdling",
DetailsEditing = "detailsEditing",
DetailsDebugging = "detailsDebugging",
LowerDetailsIdling = "lowerDetailsIdling",
LowerDetailsEditing = "lowerDetailsEditing",
LowerDetailsDebugging = "lowerDetailsDebugging",
LowerDetailsNoWorkspaceFound = "lowerDetailsNoWorkspaceFound",
LargeImageIdling = "largeImageIdling",
LargeImage = "largeImage",
SmallImage = "smallImage",
SuppressNotifications = "suppressNotifications",
WorkspaceExcludePatterns = "workspaceExcludePatterns",
SwapBigAndSmallImage = "swapBigAndSmallImage",
RemoveDetails = "removeDetails",
RemoveLowerDetails = "removeLowerDetails",
RemoveTimestamp = "removeTimestamp",
RemoveRemoteRepository = "removeRemoteRepository",
IdleTimeout = "idleTimeout"
}

View File

@ -1,4 +0,0 @@
import { ExtensionContext } from 'vscode';
export declare function cleanUp(): void;
export declare function activate(context: ExtensionContext): Promise<void>;
export declare function deactivate(): void;

Some files were not shown because too many files have changed in this diff Show More