Skip to content

Commit f24848f

Browse files
committed
Updates
1 parent 9f1713e commit f24848f

File tree

13 files changed

+191
-2441
lines changed

13 files changed

+191
-2441
lines changed

CHANGES.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# ScopeHunter
22

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

519
- **FIX**: Better styling for popups.

dependencies.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"python-jinja2",
88
"markupsafe",
99
"pymdownx",
10-
"pyyaml",
11-
"coloraide"
10+
"pyyaml"
1211
]
1312
}
1413
}

docs/src/markdown/installation.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ For those who want to install ScopeHunter without package control, here are the
3232
- @packagecontrol/pygments -> `pygments`
3333
- @facelessuser/sublime-markdown-popups -> `mdpopups`
3434
- @facelessuser/sublime-markdown -> `python-markdown`
35-
- @facelessuser/sublime-coloraide -> `coloraide`
3635

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

@@ -196,7 +195,6 @@ For those who want to install ScopeHunter without package control, here are the
196195
add_dependency('python-markdown')
197196
add_dependency('python-jinja2')
198197
add_dependency('mdpopups')
199-
add_dependency('coloraide')
200198
```
201199

202200
4. Restart and enjoy.

docs/src/markdown/usage.md

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,6 @@ Control the info displayed. You can keep it to just the scope, or you can exten
5151
// Show color and style at the given point
5252
"styling": true,
5353

54-
// When showing a color with alpha transparency,
55-
// Simulate what the color would look like in sublime
56-
// by mixing the relevant background color,
57-
"show_simulated_alpha_colors": true,
58-
59-
// Show the selector names and scopes
60-
// responsible for the color and styles
61-
"selectors": true,
62-
6354
// Show current syntax and color scheme paths
6455
// (click to open if using tooltips)
6556
"file_paths": true,
@@ -82,16 +73,7 @@ Highlight the scope extent.
8273

8374
#### `styling`
8475

85-
Show not only the color value, but also the scope and text styling.
86-
87-
#### `show_simulated_alpha_colors`
88-
89-
When showing color values, ScopeHunter can show the perceived color value of transparent colors. It mixes the
90-
transparent foreground with the background giving the color value you are actually seeing.
91-
92-
#### `selectors`
93-
94-
This shows the color scheme selectors that are responsible for applying the visible color and styles.
76+
Show not only the color value, the text styling.
9577

9678
#### `file_paths`
9779

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

137119
// Use SubNotify plugin messages if installed
138120
"use_sub_notify": true
121+
122+
///////////////////////////
123+
// Graphics
124+
///////////////////////////
125+
126+
// By default, image border is calculated based on theme background, but if for
127+
// some reason, it isn't sufficient in your popup, set it to any color using
128+
// valid CSS for RGB, HSL, or HWB colors.
129+
"image_border_color": null
139130
```
140131

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

158149
#### `image_border_color`
159150

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

169154
--8<-- "refs.txt"

0 commit comments

Comments
 (0)