Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Mar 31, 2021
1 parent 9f1713e commit f24848f
Show file tree
Hide file tree
Showing 13 changed files with 191 additions and 2,441 deletions.
14 changes: 14 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# ScopeHunter

## 2.16

- **NEW**: Due to Sublime schemes ever evolving, there were a few things (like "forward fill" scopes) that we didn't
have support for. These implementation details are hard to reverse engineer, so to make support easier moving forward,
we now use Sublime's `View.style()` to get the style at a given point instead of manually parsing the scheme
ourselves. This means we no longer provide the original defined colors from the scheme file, but instead only the end
result after overlaying transparent colors etc. Because of this,
`show_simulated_alpha_colors` option has been removed.
- **NEW**: Because we are no longer parsing the scheme files ourselves anymore, we can no longer provide contributing
scopes to individual style components. The related `selectors` option has been removed.
- **FIX**: Fix issue with Sublime 4095 `auto` light/dark color scheme resolution.
- **FIX**: Reduce dependencies by relying on the `coloraide` in `mdpopups` which we already include.
- **FIX**: Remove old `tooltip_theme` option that hasn't been used in quite some time.

## 2.15.2

- **FIX**: Better styling for popups.
Expand Down
3 changes: 1 addition & 2 deletions dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"python-jinja2",
"markupsafe",
"pymdownx",
"pyyaml",
"coloraide"
"pyyaml"
]
}
}
2 changes: 0 additions & 2 deletions docs/src/markdown/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ For those who want to install ScopeHunter without package control, here are the
- @packagecontrol/pygments -> `pygments`
- @facelessuser/sublime-markdown-popups -> `mdpopups`
- @facelessuser/sublime-markdown -> `python-markdown`
- @facelessuser/sublime-coloraide -> `coloraide`

2. Download and unpack or git clone the latest ScopeHunter release and unpack as `ScopeHunter`:

Expand Down Expand Up @@ -196,7 +195,6 @@ For those who want to install ScopeHunter without package control, here are the
add_dependency('python-markdown')
add_dependency('python-jinja2')
add_dependency('mdpopups')
add_dependency('coloraide')
```

4. Restart and enjoy.
Expand Down
39 changes: 12 additions & 27 deletions docs/src/markdown/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,6 @@ Control the info displayed. You can keep it to just the scope, or you can exten
// Show color and style at the given point
"styling": true,

// When showing a color with alpha transparency,
// Simulate what the color would look like in sublime
// by mixing the relevant background color,
"show_simulated_alpha_colors": true,

// Show the selector names and scopes
// responsible for the color and styles
"selectors": true,

// Show current syntax and color scheme paths
// (click to open if using tooltips)
"file_paths": true,
Expand All @@ -82,16 +73,7 @@ Highlight the scope extent.

#### `styling`

Show not only the color value, but also the scope and text styling.

#### `show_simulated_alpha_colors`

When showing color values, ScopeHunter can show the perceived color value of transparent colors. It mixes the
transparent foreground with the background giving the color value you are actually seeing.

#### `selectors`

This shows the color scheme selectors that are responsible for applying the visible color and styles.
Show not only the color value, the text styling.

#### `file_paths`

Expand Down Expand Up @@ -136,6 +118,15 @@ Lastly, there are a couple of other options:

// Use SubNotify plugin messages if installed
"use_sub_notify": true

///////////////////////////
// Graphics
///////////////////////////

// By default, image border is calculated based on theme background, but if for
// some reason, it isn't sufficient in your popup, set it to any color using
// valid CSS for RGB, HSL, or HWB colors.
"image_border_color": null
```

#### `clipboard`
Expand All @@ -157,13 +148,7 @@ If you have the [SubNotify][subnotify] installed, this will enable or disable me

#### `image_border_color`

Set color preview border colors.

```js
// By default, image border is calculated based on theme background, but if for
// some reason, it isn't sufficient in your popup, set it to any color using
// valid CSS for RGB, HSL, or HWB colors.
"image_border_color": null
```
Image border color is calculated from the current color scheme, but if a more visible or different border is desired
on the color previews, you can change it with this option.

--8<-- "refs.txt"
Loading

0 comments on commit f24848f

Please sign in to comment.