mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 22:57:46 +00:00
fix: catppuccin themes declared a const
inside a record (#907)
This commit is contained in:
parent
59171b0fd9
commit
be32cdaefc
2 changed files with 168 additions and 164 deletions
|
@ -1,5 +1,5 @@
|
||||||
# Retrieve the theme settings
|
# Retrieve the theme settings
|
||||||
export def main [] { return {
|
export def main [] {
|
||||||
const color_palette = {
|
const color_palette = {
|
||||||
rosewater: "#dc8a78"
|
rosewater: "#dc8a78"
|
||||||
flamingo: "#dd7878"
|
flamingo: "#dd7878"
|
||||||
|
@ -29,6 +29,7 @@ export def main [] { return {
|
||||||
base: "#eff1f5"
|
base: "#eff1f5"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
separator: $color_palette.overlay0
|
separator: $color_palette.overlay0
|
||||||
leading_trailing_space_bg: { attr: "n" }
|
leading_trailing_space_bg: { attr: "n" }
|
||||||
header: { fg: $color_palette.blue attr: "b" }
|
header: { fg: $color_palette.blue attr: "b" }
|
||||||
|
@ -111,7 +112,8 @@ export def main [] { return {
|
||||||
background: $color_palette.base
|
background: $color_palette.base
|
||||||
foreground: $color_palette.text
|
foreground: $color_palette.text
|
||||||
cursor: $color_palette.blue
|
cursor: $color_palette.blue
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Update the Nushell configuration
|
# Update the Nushell configuration
|
||||||
export def --env "set color_config" [] {
|
export def --env "set color_config" [] {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Retrieve the theme settings
|
# Retrieve the theme settings
|
||||||
export def main [] { return {
|
export def main [] {
|
||||||
const color_palette = {
|
const color_palette = {
|
||||||
rosewater: "#f5e0dc"
|
rosewater: "#f5e0dc"
|
||||||
flamingo: "#f2cdcd"
|
flamingo: "#f2cdcd"
|
||||||
|
@ -29,6 +29,7 @@ export def main [] { return {
|
||||||
crust: "#11111b"
|
crust: "#11111b"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
separator: $color_palette.overlay0
|
separator: $color_palette.overlay0
|
||||||
leading_trailing_space_bg: { attr: "n" }
|
leading_trailing_space_bg: { attr: "n" }
|
||||||
header: { fg: $color_palette.blue attr: "b" }
|
header: { fg: $color_palette.blue attr: "b" }
|
||||||
|
@ -111,7 +112,8 @@ export def main [] { return {
|
||||||
background: $color_palette.base
|
background: $color_palette.base
|
||||||
foreground: $color_palette.text
|
foreground: $color_palette.text
|
||||||
cursor: $color_palette.blue
|
cursor: $color_palette.blue
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Update the Nushell configuration
|
# Update the Nushell configuration
|
||||||
export def --env "set color_config" [] {
|
export def --env "set color_config" [] {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue