From 8046381de4108064fc105f07a991daf60dd263a2 Mon Sep 17 00:00:00 2001 From: trivernis Date: Mon, 10 Apr 2023 19:43:08 +0200 Subject: [PATCH] Update dracula purple with changes for inline hints --- runtime/themes/dracula-purple.toml | 2 + theme.toml | 173 +++++++++++++---------------- 2 files changed, 77 insertions(+), 98 deletions(-) diff --git a/runtime/themes/dracula-purple.toml b/runtime/themes/dracula-purple.toml index b28f9610..22c38971 100644 --- a/runtime/themes/dracula-purple.toml +++ b/runtime/themes/dracula-purple.toml @@ -40,6 +40,7 @@ "ui.window" = { fg = "foreground" } "ui.virtual.ruler" = { bg = "ruler" } "ui.virtual.indent-guide" = { fg = "ruler" } +"ui.virtual" = { fg = "hint" } "ui.statusline" = { fg = "foreground", bg = "background_dark" } "ui.statusline.inactive" = { fg = "comment", bg = "background_dark" } @@ -73,6 +74,7 @@ background_dark = "#2B1C3D" foreground = "#f8f8f2" ruler = "#453254" comment = "#886C9C" +hint = "#8a56b0" red = "#ff5555" orange = "#ffb86c" yellow = "#f1fa8c" diff --git a/theme.toml b/theme.toml index dd1a5d88..22c38971 100644 --- a/theme.toml +++ b/theme.toml @@ -1,107 +1,84 @@ -attribute = "lilac" -keyword = "almond" -"keyword.directive" = "lilac" # -- preprocessor comments (#if in C) -namespace = "lilac" -punctuation = "lavender" -"punctuation.delimiter" = "lavender" -operator = "lilac" -special = "honey" -"variable.other.member" = "white" -variable = "lavender" -# variable = "almond" # TODO: metavariables only -# "variable.parameter" = { fg = "lavender", modifiers = ["underlined"] } -"variable.parameter" = { fg = "lavender" } -"variable.builtin" = "mint" -type = "white" -"type.builtin" = "white" # TODO: distinguish? -constructor = "lilac" -function = "white" -"function.macro" = "lilac" -"function.builtin" = "white" -tag = "almond" -comment = "sirocco" -constant = "white" -"constant.builtin" = "white" -string = "silver" -"constant.numeric" = "chamois" -"constant.character.escape" = "honey" -# used for lifetimes -label = "honey" +# Author : Sam Sartor , Trivernis +# A port of https://github.com/bceskavich/dracula-at-night +"comment" = { fg = "comment" } +"constant" = { fg = "purple" } +"constant.character.escape" = { fg = "pink" } +"function" = { fg = "green" } +"keyword" = { fg = "pink" } +"operator" = { fg = "pink" } +"special" = { fg = "yellow" } +"punctuation" = { fg = "foreground" } +"string" = { fg = "yellow" } +"string.regexp" = { fg = "red" } +"tag" = { fg = "pink" } +"attribute" = { fg = "cyan" } +"type" = { fg = "cyan", modifiers = ["italic"] } +"type.enum.variant" = { fg = "foreground", modifiers = ["italic"] } +"variable" = { fg = "foreground" } +"variable.builtin" = { fg = "cyan", modifiers = ["italic"] } +"variable.parameter" = { fg ="orange", modifiers = ["italic"] } -"markup.heading" = "lilac" -"markup.bold" = { modifiers = ["bold"] } -"markup.italic" = { modifiers = ["italic"] } -"markup.strikethrough" = { modifiers = ["crossed_out"] } -"markup.link.url" = { fg = "silver", modifiers = ["underlined"] } -"markup.link.text" = "almond" -"markup.raw" = "almond" +"diff.plus" = { fg = "green" } +"diff.delta" = { fg = "orange" } +"diff.minus" = { fg = "red" } -"diff.plus" = "#35bf86" -"diff.minus" = "#f22c86" -"diff.delta" = "#6f44f0" +"ui.background" = { fg = "foreground", bg = "background" } +"ui.cursor" = { fg = "background", bg = "orange", modifiers = ["dim"] } +"ui.cursor.match" = { fg = "green", modifiers = ["underlined"] } +"ui.cursor.primary" = { fg = "background", bg = "cyan", modifier = ["dim"] } +"ui.cursorline" = {bg = "background_dark"} +"ui.help" = { fg = "foreground", bg = "background_dark" } +"ui.linenr" = { fg = "comment" } +"ui.linenr.selected" = { fg = "foreground" } +"ui.menu" = { fg = "foreground", bg = "background_dark" } +"ui.menu.selected" = { fg = "cyan", bg = "background_dark" } +"ui.popup" = { fg = "foreground", bg = "background_dark" } +"ui.selection" = { fg = "background", bg = "purple", modifiers = ["dim"] } +"ui.selection.primary" = { fg = "background", bg = "pink" } +"ui.text" = { fg = "foreground" } +"ui.text.focus" = { fg = "cyan" } +"ui.window" = { fg = "foreground" } +"ui.virtual.ruler" = { bg = "ruler" } +"ui.virtual.indent-guide" = { fg = "ruler" } +"ui.virtual" = { fg = "hint" } -# TODO: diferentiate doc comment -# concat (ERROR) @error.syntax and "MISSING ;" selectors for errors +"ui.statusline" = { fg = "foreground", bg = "background_dark" } +"ui.statusline.inactive" = { fg = "comment", bg = "background_dark" } +"ui.statusline.normal" = { fg = "background_dark", bg = "purple"} +"ui.statusline.insert" = { fg = "background_dark", bg = "pink"} +"ui.statusline.select" = { fg = "background_dark", bg = "cyan"} -"ui.background" = { bg = "midnight" } -"ui.background.separator" = { fg = "comet" } -"ui.linenr" = { fg = "comet" } -"ui.linenr.selected" = { fg = "lilac" } -"ui.statusline" = { fg = "lilac", bg = "revolver" } -"ui.statusline.inactive" = { fg = "lavender", bg = "revolver" } -"ui.popup" = { bg = "revolver" } -"ui.window" = { fg = "bossanova" } -"ui.help" = { bg = "#7958DC", fg = "#171452" } +"error" = { fg = "red" } +"warning" = { fg = "cyan" } -"ui.text" = { fg = "lavender" } -"ui.text.focus" = { fg = "white" } -"ui.text.inactive" = "sirocco" -"ui.virtual" = { fg = "comet" } +"markup.heading" = { fg = "purple", modifiers = ["bold"] } +"markup.list" = "cyan" +"markup.bold" = { fg = "orange", modifiers = ["bold"] } +"markup.italic" = { fg = "yellow", modifiers = ["italic"] } +"markup.link.url" = "cyan" +"markup.link.text" = "pink" +"markup.quote" = { fg = "yellow", modifiers = ["italic"] } +"markup.raw" = { fg = "foreground" } -"ui.virtual.indent-guide" = { fg = "comet" } +"ui.explorer.file" = { fg = "foreground" } +"ui.explorer.dir" = { fg = "cyan" } +"ui.explorer.exe" = { fg = "foreground" } +"ui.explorer.focus" = { modifiers = ["reversed"] } +"ui.explorer.unfocus" = { bg = "comment" } -"ui.selection" = { bg = "#540099" } -"ui.selection.primary" = { bg = "#540099" } -# TODO: namespace ui.cursor as ui.selection.cursor? -"ui.cursor.select" = { bg = "delta" } -"ui.cursor.insert" = { bg = "white" } -"ui.cursor.match" = { fg = "#212121", bg = "#6C6999" } -"ui.cursor" = { modifiers = ["reversed"] } -"ui.cursorline.primary" = { bg = "bossanova" } -"ui.highlight" = { bg = "bossanova" } -"ui.highlight.frameline" = { bg = "#634450" } -"ui.debug" = { fg = "#634450" } -"ui.debug.breakpoint" = { fg = "apricot" } -"ui.menu" = { fg = "lavender", bg = "revolver" } -"ui.menu.selected" = { fg = "revolver", bg = "white" } -"ui.menu.scroll" = { fg = "lavender", bg = "comet" } - -"diagnostic.hint" = { underline = { color = "silver", style = "curl" } } -"diagnostic.info" = { underline = { color = "delta", style = "curl" } } -"diagnostic.warning" = { underline = { color = "lightning", style = "curl" } } -"diagnostic.error" = { underline = { color = "apricot", style = "curl" } } - -warning = "lightning" -error = "apricot" -info = "delta" -hint = "silver" +rainbow = ["#7c5ea3", "#9c5b95", "#9c5e80", "#6b4466"] [palette] -white = "#ffffff" -lilac = "#dbbfef" -lavender = "#a4a0e8" -comet = "#5a5977" -bossanova = "#452859" -midnight = "#3b224c" -revolver = "#281733" - -silver = "#cccccc" -sirocco = "#697C81" -mint = "#9ff28f" -almond = "#eccdba" -chamois = "#E8DCA0" -honey = "#efba5d" - -apricot = "#f47868" -lightning = "#ffcd1c" -delta = "#6F44F0" +background = "#3A2A4D" +background_dark = "#2B1C3D" +foreground = "#f8f8f2" +ruler = "#453254" +comment = "#886C9C" +hint = "#8a56b0" +red = "#ff5555" +orange = "#ffb86c" +yellow = "#f1fa8c" +green = "#50fa7b" +purple = "#bd93f9" +cyan = "#8be9fd" +pink = "#ff79c6" \ No newline at end of file