Skip to content

Commit

Permalink
Some tweaks for ST4
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed May 22, 2021
1 parent 1230613 commit 254bc16
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
19 changes: 14 additions & 5 deletions Brackets Dark.sublime-color-scheme
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"background": "#1d1f21",
"foreground": "var(textcolor)",
"caret": "#c5c8c6",
"block_caret": "rgba(253, 255, 253, 0.75)",
"block_caret": "rgba(253, 255, 253, 0.25)",
"block_caret_border": "color(var(textcolor) alpha(0.6))",
"line_highlight": "rgba(65, 63, 61, 0.5)",
"misspelling": "var(red)",
"fold_marker": "color(var(grey) alpha(0.75))",
Expand All @@ -37,10 +38,13 @@
"line_diff_deleted": "var(red2)",
"selection": "#0050a0",
"inactive_selection": "#333f48",
"inactive_selection_border": "#29333a",
"selection_corner_style": "round",
"selection_corner_radius": "2",
"find_highlight": "#f6a644",
"find_highlight_foreground": "#121212",
"scroll_highlight": "var(grey)",
"scroll_selected_highlight": "var(orange)",
"active_guide": "color(var(blue) alpha(0.5))",
"stack_guide": "color(var(blue) alpha(0.25))",
"brackets_options": "underline",
Expand Down Expand Up @@ -203,7 +207,7 @@
},
{
"name": "Punctuation",
"scope": "punctuation.separator, punctuation.accessor, punctuation.terminator - constant.character.entity",
"scope": "punctuation.separator - punctuation.separator.path, punctuation.accessor, punctuation.terminator - constant.character.entity",
"foreground": "var(textcolor)"
},
{
Expand Down Expand Up @@ -333,7 +337,7 @@
"foreground_adjust": "lightness(+ 5%)"
},
{
"name": "Sublme Merge merge conflict left view region",
"name": "Sublime Merge merge conflict left view region",
"scope": "diff.inserted.char.merge-left",
"background": "color(var(green2) alpha(0.4))",
"foreground_adjust": "lightness(+ 5%)"
Expand Down Expand Up @@ -460,6 +464,11 @@
},
{
"name": "CSS special color keyword",
"scope": "support.constant.color.w3c.special.css",
"foreground": "var(orange)"
},
{
"name": "CSS special color keyword [ST3]",
"scope": "support.constant.color.w3c-special-color-keyword.css",
"foreground": "var(orange)"
},
Expand Down Expand Up @@ -1872,13 +1881,13 @@
},
{
"name": "PackageDev JSON value",
"scope": "source.json.sublime meta.mapping.value & (support.constant.command-name | entity.name.variant.sublime-build | entity.name.id.sublime-menu | entity.name.class-selector.sublime-theme | support.constant.mnemonic.sublime-menu | variable.other.setting.sublime-keymap)",
"scope": "source.json.sublime meta.mapping.value & (support.constant.command-name | entity.name.variant.sublime-build | entity.name.id.sublime-menu | entity.name.class-selector.sublime-theme | support.constant.mnemonic.sublime-menu | variable.other.setting.sublime-keymap | keyword.other.namespace.sublime-settings)",
"foreground": "var(orange)",
"font_style": ""
},
{
"name": "PackageDev JSON punctuation",
"scope": "source.json.sublime & (source.scope-selector punctuation.section.group | meta.function-call punctuation.definition.group)",
"scope": "source.json.sublime & (source.scope-selector punctuation.section.group | meta.function-call punctuation.definition.group | meta.function-call punctuation.section.group)",
"foreground": "var(textcolor)"
},
{
Expand Down
19 changes: 14 additions & 5 deletions Brackets Light.sublime-color-scheme
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"background": "#f8f8f8",
"foreground": "var(textcolor)",
"caret": "#000",
"block_caret": "rgba(0, 0, 0, 0.5)",
"block_caret": "rgba(0, 0, 0, 0.25)",
"block_caret_border": "color(var(textcolor) alpha(0.7))",
"line_highlight": "rgba(222, 230, 230, 0.5)",
"misspelling": "var(red)",
"fold_marker": "color(var(grey) alpha(0.5))",
Expand All @@ -37,10 +38,13 @@
"line_diff_deleted": "var(red2)",
"selection": "#abdffa",
"inactive_selection": "#d5dee3",
"inactive_selection_border": "#bdc5c9",
"selection_corner_style": "round",
"selection_corner_radius": "2",
"find_highlight": "#f7c44e",
"find_highlight_foreground": "#121212",
"scroll_highlight": "var(grey)",
"scroll_selected_highlight": "var(orange)",
"active_guide": "color(var(blue) alpha(0.8))",
"stack_guide": "color(var(blue) alpha(0.4))",
"brackets_options": "underline",
Expand Down Expand Up @@ -203,7 +207,7 @@
},
{
"name": "Punctuation",
"scope": "punctuation.separator, punctuation.accessor, punctuation.terminator - constant.character.entity",
"scope": "punctuation.separator - punctuation.separator.path, punctuation.accessor, punctuation.terminator - constant.character.entity",
"foreground": "var(textcolor)"
},
{
Expand Down Expand Up @@ -333,7 +337,7 @@
"foreground_adjust": "lightness(- 10%)"
},
{
"name": "Sublme Merge merge conflict left view region",
"name": "Sublime Merge merge conflict left view region",
"scope": "diff.inserted.char.merge-left",
"background": "color(var(green2) alpha(0.4))",
"foreground_adjust": "lightness(- 10%)"
Expand Down Expand Up @@ -460,6 +464,11 @@
},
{
"name": "CSS special color keyword",
"scope": "support.constant.color.w3c.special.css",
"foreground": "var(orange)"
},
{
"name": "CSS special color keyword [ST3]",
"scope": "support.constant.color.w3c-special-color-keyword.css",
"foreground": "var(orange)"
},
Expand Down Expand Up @@ -1872,13 +1881,13 @@
},
{
"name": "PackageDev JSON value",
"scope": "source.json.sublime meta.mapping.value & (support.constant.command-name | entity.name.variant.sublime-build | entity.name.id.sublime-menu | entity.name.class-selector.sublime-theme | support.constant.mnemonic.sublime-menu | variable.other.setting.sublime-keymap)",
"scope": "source.json.sublime meta.mapping.value & (support.constant.command-name | entity.name.variant.sublime-build | entity.name.id.sublime-menu | entity.name.class-selector.sublime-theme | support.constant.mnemonic.sublime-menu | variable.other.setting.sublime-keymap | keyword.other.namespace.sublime-settings)",
"foreground": "var(orange)",
"font_style": ""
},
{
"name": "PackageDev JSON punctuation",
"scope": "source.json.sublime & (source.scope-selector punctuation.section.group | meta.function-call punctuation.definition.group)",
"scope": "source.json.sublime & (source.scope-selector punctuation.section.group | meta.function-call punctuation.definition.group | meta.function-call punctuation.section.group)",
"foreground": "var(textcolor)"
},
{
Expand Down
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@ This package for Sublime Text provides two color schemes (light and dark) that a

## Installation

The color scheme can be installed via Sublime Text's package manager [Package Control](https://packagecontrol.io/installation).
The color scheme can be installed with Sublime Text's package manager [Package Control](https://packagecontrol.io/installation).
From the command palette select *Package Control: Install Package* and search for *Brackets Color Scheme*.

Alternatively you can [download](https://github.com/jwortmann/brackets-color-scheme/archive/master.zip) and unzip the files from this repository and put them into a folder in the packages directory of Sublime Text, e.g. the *Packages/User/* folder.
To access the packages directory, select *Preferences > Browse Packages...* from the Sublime Text menu.
Note that there won't be automatic updates for this package if not using Package Control.

The color scheme can then be activated from the menu under *Preferences > Color Scheme...* or via the *UI: Select Color Scheme* command from the command palette.
The color scheme can then be activated from the menu under *Preferences > Select Color Scheme...* or via the *UI: Select Color Scheme* command from the command palette.

## Preview

Expand Down Expand Up @@ -43,13 +39,13 @@ The color scheme can then be activated from the menu under *Preferences > Color
## Customization

This color scheme uses color definitions and highlighting rules based on a JSON format, which was introduced in Sublime Text 3.1 (Build 3170).
The color scheme format allows to customize color variables and override or add user-specific highlighting rules by creating a `Brackets Light.sublime-color-scheme` and/or `Brackets Dark.sublime-color-scheme` file in the *Packages/User/* folder, see [this example](https://www.sublimetext.com/docs/color_schemes.html#customization) in the official documentation.
The color scheme format allows to customize color variables and override or add user-specific highlighting rules via the *Preferences > Customize Color Scheme* entry from the menu, see also [this example](https://www.sublimetext.com/docs/color_schemes.html#customization) in the official documentation.
For the color variable names used by this scheme, refer to the color palette above.

## Usage in Sublime Merge

The color schemes can be used in Sublime Merge as well and contain special rules which provide a tweaked style for certain elements of the diff and merge conflict views.
For now, adjusting the color scheme in Sublime Merge requires a bit of manual configuration to the default light and dark themes:
The color scheme can be used in Sublime Merge as well and contains special rules which provide a tweaked style for certain elements of the diff and merge conflict views.
For now, changing the color scheme in Sublime Merge requires a bit of manual configuration in the default light and dark themes:

From the Sublime Merge menu select *Preferences > Browse Packages...* and navigate into the *User* folder.
Then, for the light theme, create new settings files with names
Expand Down

0 comments on commit 254bc16

Please sign in to comment.