From 2a50799873cc7d5318d347e0ea480eda08cf6519 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Mon, 29 Apr 2024 21:08:25 +0200 Subject: [PATCH] Add dracula syntax and GUI theme --- novelwriter/assets/syntax/dracula.conf | 45 +++++++++++++++++++++++++ novelwriter/assets/themes/dracula.conf | 46 ++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 novelwriter/assets/syntax/dracula.conf create mode 100644 novelwriter/assets/themes/dracula.conf diff --git a/novelwriter/assets/syntax/dracula.conf b/novelwriter/assets/syntax/dracula.conf new file mode 100644 index 00000000..34180c0e --- /dev/null +++ b/novelwriter/assets/syntax/dracula.conf @@ -0,0 +1,45 @@ +[Main] +name = Dracula +author = Veronica Berglyd Olsen (adaptation) +credit = Zeno Rocha +url = https://draculatheme.com +license = MIT +licenseurl = https://github.com/dracula/dracula-theme/blob/main/LICENSE + +## +# Colours: +# Background = 282a36 : 40, 42, 54 +# Foreground = f8f8f2 : 248, 248, 242 +# Comment = 6272a4 : 98, 114, 164 +# Cyan = 8be9fd : 139, 233, 253 +# Green = 50fa7b : 80, 250, 123 +# Orange = ffb86c : 255, 184, 108 +# Pink = ff79c6 : 255, 121, 198 +# Purple = bd93f9 : 189, 147, 249 +# Red = ff5555 : 255, 85, 85 +# Yellow = f1fa8c : 241, 250, 140 +## + +[Syntax] +# See: https://spec.draculatheme.com/ +background = 40, 42, 54 +text = 248, 248, 242 +link = 255, 121, 198 +headertext = 189, 147, 249 +headertag = 189, 147, 249, 160 +emphasis = 255, 184, 108 +straightquotes = 255, 85, 85 +doublequotes = 80, 250, 123 +singlequotes = 241, 250, 140 +note = 255, 204, 233 +hidden = 98, 114, 164 +shortcode = 139, 233, 253 +keyword = 255, 121, 198 +tag = 255, 184, 108 +value = 255, 184, 108 +optional = 80, 250, 123 +spellcheckline = 255, 85, 85 +errorline = 80, 250, 123 +replacetag = 241, 250, 140 +modifier = 139, 233, 253 +texthighlight = 241, 250, 140, 96 diff --git a/novelwriter/assets/themes/dracula.conf b/novelwriter/assets/themes/dracula.conf new file mode 100644 index 00000000..8c2d2f9e --- /dev/null +++ b/novelwriter/assets/themes/dracula.conf @@ -0,0 +1,46 @@ +[Main] +name = Dracula +description = A dark theme with bright colours +author = Veronica Berglyd Olsen (adaptation) +credit = Zeno Rocha +url = https://draculatheme.com +license = MIT +licenseurl = https://github.com/dracula/dracula-theme/blob/main/LICENSE +icontheme = typicons_dark + +## +# Colours: +# Background = 282a36 : 40, 42, 54 +# Foreground = f8f8f2 : 248, 248, 242 +# Current Line = 44475A : 68, 71, 90 +# Comment = 6272a4 : 98, 114, 164 +# Cyan = 8be9fd : 139, 233, 253 +# Green = 50fa7b : 80, 250, 123 +# Orange = ffb86c : 255, 184, 108 +# Pink = ff79c6 : 255, 121, 198 +# Purple = bd93f9 : 189, 147, 249 +# Red = ff5555 : 255, 85, 85 +# Yellow = f1fa8c : 241, 250, 140 +## + +[Palette] +window = 68, 71, 90 +windowtext = 248, 248, 242 +base = 40, 42, 54 +alternatebase = 51, 54, 69 +text = 248, 248, 242 +tooltipbase = 241, 250, 140 +tooltiptext = 40, 42, 54 +button = 80, 83, 105 +buttontext = 248, 248, 242 +brighttext = 68, 71, 90 +highlight = 166, 129, 218 +highlightedtext = 248, 248, 242 +link = 139, 233, 253 +linkvisited = 139, 233, 253 + +[GUI] +helptext = 204, 172, 249 +statusnone = 98, 114, 164 +statussaved = 80, 250, 123 +statusunsaved = 255, 85, 85