From a5633f519f00690d05db86c299706707ea143b24 Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Mon, 13 Dec 2021 16:32:20 +0100 Subject: [PATCH 1/6] Add dracula theme --- runtime/themes/dracula.toml | 57 +++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 runtime/themes/dracula.toml diff --git a/runtime/themes/dracula.toml b/runtime/themes/dracula.toml new file mode 100644 index 000000000000..0f9372a780d9 --- /dev/null +++ b/runtime/themes/dracula.toml @@ -0,0 +1,57 @@ +# Author : Sebastian Zivota + +"escape" = { fg = "pink" } +"type" = { fg = "cyan", modifiers = ["italic"] } +"constant" = { fg = "purple" } +"string" = { fg = "yellow" } +"string.regexp" = { fg = "red" } +"comment" = { fg = "comment" } +"variable" = { fg = "foreground" } +"variable.builtin" = { fg = "cyan", modifiers = ["italic"] } +"variable.parameter" = { fg ="orange", modifiers = ["italic"] } +"punctuation" = { fg = "foreground" } +"keyword" = { fg = "pink" } +"operator" = { fg = "pink" } +"function" = { fg = "green" } +"tag" = { fg = "pink" } + +"ui.background" = { fg = "foreground", bg = "background" } +"ui.cursor" = { fg = "black", bg = "orange", modifiers = ["dim"] } +"ui.cursor.primary" = { fg = "black", bg = "cyan", modifier = ["dim"] } +"ui.cursor.match" = { fg = "green", modifiers = ["underlined"] } +"ui.linenr" = { fg = "comment" } +"ui.linenr.selected" = { fg = "foreground" } +"ui.statusline" = { fg = "foreground", bg = "background_dark" } +"ui.selection" = { fg = "black", bg = "purple", modifiers = ["dim"] } +"ui.selection.primary" = { fg = "black", bg = "pink" } +"ui.text" = { fg = "foreground" } +"error" = { fg = "red" } +"warning" = { fg = "cyan" } + +[palette] +background = "#282a36" +background_dark = "#21222c" +foreground = "#f8f8f2" +selection = "#44475a" +comment = "#6272a4" +red = "#ff5555" +orange = "#ffb86c" +yellow = "#f1fa8c" +green = "#50fa7b" +purple = "#bd93f9" +cyan = "#8be9fd" +pink = "#ff79c6" + +#ANSI +black = "#21222c" +blue = "#bd93f9" +magenta = "#ff79c6" +white = "#f8f8f2" +bright_black = "#6272a4" +bright_red = "#ff6e6e" +bright_green = "#69ff94" +bright_yellow = "#ffffa5" +bright_blue = "#d6acff" +bright_magenta = "#ff92df" +bright_cyan = "#a4ffff" +bright_white = "#ffffff" From 05a30c1b2956f0a537fcb2db3b4a5cc55e8cd751 Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Sun, 19 Dec 2021 22:52:18 +0100 Subject: [PATCH 2/6] remove unused colors --- runtime/themes/dracula.toml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/runtime/themes/dracula.toml b/runtime/themes/dracula.toml index 0f9372a780d9..7ef059136278 100644 --- a/runtime/themes/dracula.toml +++ b/runtime/themes/dracula.toml @@ -32,7 +32,6 @@ background = "#282a36" background_dark = "#21222c" foreground = "#f8f8f2" -selection = "#44475a" comment = "#6272a4" red = "#ff5555" orange = "#ffb86c" @@ -41,17 +40,3 @@ green = "#50fa7b" purple = "#bd93f9" cyan = "#8be9fd" pink = "#ff79c6" - -#ANSI -black = "#21222c" -blue = "#bd93f9" -magenta = "#ff79c6" -white = "#f8f8f2" -bright_black = "#6272a4" -bright_red = "#ff6e6e" -bright_green = "#69ff94" -bright_yellow = "#ffffa5" -bright_blue = "#d6acff" -bright_magenta = "#ff92df" -bright_cyan = "#a4ffff" -bright_white = "#ffffff" From dc32a52ae5d4f07568d6e385dca0ddbc11535c62 Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Sun, 19 Dec 2021 22:52:49 +0100 Subject: [PATCH 3/6] correctly name constant.character.escape --- runtime/themes/dracula.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/themes/dracula.toml b/runtime/themes/dracula.toml index 7ef059136278..086fecbad1eb 100644 --- a/runtime/themes/dracula.toml +++ b/runtime/themes/dracula.toml @@ -1,8 +1,7 @@ # Author : Sebastian Zivota - -"escape" = { fg = "pink" } "type" = { fg = "cyan", modifiers = ["italic"] } "constant" = { fg = "purple" } +"constant.character.escape" = { fg = "pink" } "string" = { fg = "yellow" } "string.regexp" = { fg = "red" } "comment" = { fg = "comment" } From 7c3e74efb7169df63d74b9ab1487f24d5a5cf853 Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Sun, 19 Dec 2021 22:53:43 +0100 Subject: [PATCH 4/6] Change cursors and selections --- runtime/themes/dracula.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/themes/dracula.toml b/runtime/themes/dracula.toml index 086fecbad1eb..f7022634a27a 100644 --- a/runtime/themes/dracula.toml +++ b/runtime/themes/dracula.toml @@ -15,14 +15,14 @@ "tag" = { fg = "pink" } "ui.background" = { fg = "foreground", bg = "background" } -"ui.cursor" = { fg = "black", bg = "orange", modifiers = ["dim"] } -"ui.cursor.primary" = { fg = "black", bg = "cyan", modifier = ["dim"] } +"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.linenr" = { fg = "comment" } "ui.linenr.selected" = { fg = "foreground" } +"ui.selection" = { fg = "background", bg = "purple", modifiers = ["dim"] } +"ui.selection.primary" = { fg = "background", bg = "pink" } "ui.statusline" = { fg = "foreground", bg = "background_dark" } -"ui.selection" = { fg = "black", bg = "purple", modifiers = ["dim"] } -"ui.selection.primary" = { fg = "black", bg = "pink" } "ui.text" = { fg = "foreground" } "error" = { fg = "red" } "warning" = { fg = "cyan" } From 668fdeb5374f148adff9a05c6df49b394262c5d3 Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Sun, 19 Dec 2021 22:54:03 +0100 Subject: [PATCH 5/6] add some missing ui scopes --- runtime/themes/dracula.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/runtime/themes/dracula.toml b/runtime/themes/dracula.toml index f7022634a27a..973fae564806 100644 --- a/runtime/themes/dracula.toml +++ b/runtime/themes/dracula.toml @@ -1,5 +1,6 @@ # Author : Sebastian Zivota "type" = { fg = "cyan", modifiers = ["italic"] } +"type.enum.variant" = { fg = "foreground", modifiers = ["italic"] } "constant" = { fg = "purple" } "constant.character.escape" = { fg = "pink" } "string" = { fg = "yellow" } @@ -18,12 +19,20 @@ "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.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" } "ui.selection" = { fg = "background", bg = "purple", modifiers = ["dim"] } "ui.selection.primary" = { fg = "background", bg = "pink" } "ui.statusline" = { fg = "foreground", bg = "background_dark" } +"ui.statusline.inactive" = { fg = "comment", bg = "background_dark" } "ui.text" = { fg = "foreground" } +"ui.text.focus" = { fg = "cyan" } +"ui.window" = { fg = "foreground" } + "error" = { fg = "red" } "warning" = { fg = "cyan" } From e20baf34d61084a072db34ac50ee622a8d0c1e87 Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Sun, 19 Dec 2021 22:56:12 +0100 Subject: [PATCH 6/6] sorting --- runtime/themes/dracula.toml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/runtime/themes/dracula.toml b/runtime/themes/dracula.toml index 973fae564806..956fd0f5df63 100644 --- a/runtime/themes/dracula.toml +++ b/runtime/themes/dracula.toml @@ -1,19 +1,19 @@ # Author : Sebastian Zivota -"type" = { fg = "cyan", modifiers = ["italic"] } -"type.enum.variant" = { fg = "foreground", modifiers = ["italic"] } +"comment" = { fg = "comment" } "constant" = { fg = "purple" } "constant.character.escape" = { fg = "pink" } +"function" = { fg = "green" } +"keyword" = { fg = "pink" } +"operator" = { fg = "pink" } +"punctuation" = { fg = "foreground" } "string" = { fg = "yellow" } "string.regexp" = { fg = "red" } -"comment" = { fg = "comment" } +"tag" = { fg = "pink" } +"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"] } -"punctuation" = { fg = "foreground" } -"keyword" = { fg = "pink" } -"operator" = { fg = "pink" } -"function" = { fg = "green" } -"tag" = { fg = "pink" } "ui.background" = { fg = "foreground", bg = "background" } "ui.cursor" = { fg = "background", bg = "orange", modifiers = ["dim"] }