-
-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add new options with better support for transparency (#185)
This commit adds a few new options and improves transparency support. Enable transparency styles: ```lua styles = { transparency = true } ``` Feedback is appreciated!
- Loading branch information
Showing
21 changed files
with
1,102 additions
and
960 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Changelog | ||
|
||
## v2.0.0-next.1 | ||
|
||
### What's new | ||
|
||
- Add proper support for `StatusLineTerm` & `StatusLineTermNC`, controlled via `enable.terminal` | ||
- Add background glow to diagnostic virtual text | ||
- Add `extend_background_behind_borders` | ||
- Add `styles.bold` and alternatively styling when disabled | ||
- Add `before_highlight` hook to allow changing palette values and behaviours | ||
- Increase contrast of search, visual selections, and more | ||
|
||
### Features | ||
|
||
**extend_background_behind_borders** | ||
|
||
Extend float backgrounds behind borders. Results vary depending on your border characters. | ||
|
||
```lua | ||
{ | ||
extend_background_behind_borders = true | ||
} | ||
``` | ||
|
||
**styles.transparency** | ||
|
||
Enable a unique experience focused around transparent terminals, avoiding large backgrounds and differentiating selections with foreground colours when possible. | ||
|
||
```lua | ||
{ | ||
styles = { | ||
transparency = true | ||
} | ||
} | ||
``` | ||
|
||
**before_highlight** | ||
|
||
```lua | ||
{ | ||
before_highlight = function(group, highlight, palette) | ||
-- Disable all undercurls | ||
if highlight.undercurl then | ||
highlight.undercurl = false | ||
end | ||
|
||
-- Change palette colour | ||
if highlight.fg == palette.pine then | ||
highlight.fg = palette.foam | ||
end | ||
end, | ||
} | ||
``` | ||
|
||
### Breaking changes | ||
|
||
> [!WARNING] | ||
> Removed or renamed options should continue to work via internal migrations but backwards compatibility is not tested and may break at any time. | ||
```diff | ||
- dim_nc_background = true, | ||
+ dim_inactive_windows = true, | ||
|
||
- disable_background = true, | ||
- disable_float_background = true, | ||
+ styles.transparency = true | ||
|
||
- disable_italics = true, | ||
+ styles.italic = false, | ||
|
||
- groups = { | ||
- background = "...", | ||
- comment = "...", | ||
- punctuation = "...", | ||
- }, | ||
+ highlight_groups = { | ||
+ Normal = { bg = "..." }, | ||
+ Comment = { fg = "..." }, | ||
+ ["@punctuation"] = { fg = "..." }, | ||
+ } | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
package.loaded['rose-pine.palette'] = nil | ||
require('rose-pine').colorscheme('dawn') | ||
package.loaded["rose-pine.palette"] = nil | ||
require("rose-pine").colorscheme("dawn") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
package.loaded['rose-pine.palette'] = nil | ||
require('rose-pine').colorscheme('main') | ||
package.loaded["rose-pine.palette"] = nil | ||
require("rose-pine").colorscheme("main") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
package.loaded['rose-pine.palette'] = nil | ||
require('rose-pine').colorscheme('moon') | ||
package.loaded["rose-pine.palette"] = nil | ||
require("rose-pine").colorscheme("moon") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
package.loaded['rose-pine.palette'] = nil | ||
require('rose-pine').colorscheme() | ||
package.loaded["rose-pine.palette"] = nil | ||
require("rose-pine").colorscheme() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
local p = require('rose-pine.palette') | ||
local p = require("rose-pine.palette") | ||
|
||
return { | ||
normal = { | ||
a = { bg = p.surface, fg = p.rose, gui = 'bold' }, | ||
a = { bg = p.surface, fg = p.rose, gui = "bold" }, | ||
b = { bg = p.surface, fg = p.text }, | ||
c = { bg = p.surface, fg = p.subtle, gui = 'italic' }, | ||
c = { bg = p.surface, fg = p.subtle, gui = "italic" }, | ||
}, | ||
insert = { | ||
a = { bg = p.surface, fg = p.foam, gui = 'bold' }, | ||
a = { bg = p.surface, fg = p.foam, gui = "bold" }, | ||
}, | ||
visual = { | ||
a = { bg = p.surface, fg = p.iris, gui = 'bold' }, | ||
a = { bg = p.surface, fg = p.iris, gui = "bold" }, | ||
}, | ||
replace = { | ||
a = { bg = p.surface, fg = p.pine, gui = 'bold' }, | ||
a = { bg = p.surface, fg = p.pine, gui = "bold" }, | ||
}, | ||
command = { | ||
a = { bg = p.surface, fg = p.love, gui = 'bold' }, | ||
a = { bg = p.surface, fg = p.love, gui = "bold" }, | ||
}, | ||
inactive = { | ||
a = { bg = p.base, fg = p.subtle, gui = 'bold' }, | ||
a = { bg = p.base, fg = p.subtle, gui = "bold" }, | ||
b = { bg = p.base, fg = p.subtle }, | ||
c = { bg = p.base, fg = p.subtle, gui = 'italic' }, | ||
c = { bg = p.base, fg = p.subtle, gui = "italic" }, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.