61 lines
1.7 KiB
Diff
61 lines
1.7 KiB
Diff
|
|
From 427d8487cd5589db6c69c7867ef7bf266c137d0d Mon Sep 17 00:00:00 2001
|
|||
|
|
From: root <root@localhost.localdomain>
|
|||
|
|
Date: Tue, 20 Oct 2020 11:07:10 +0800
|
|||
|
|
Subject: [PATCH 1/3] feature(color scheme):add two color scheme:Dracula Dark
|
|||
|
|
and Gruvbox Dark
|
|||
|
|
MIME-Version: 1.0
|
|||
|
|
Content-Type: text/plain; charset=UTF-8
|
|||
|
|
Content-Transfer-Encoding: 8bit
|
|||
|
|
|
|||
|
|
- 添加两种颜色方案:Dracula Dark and Gruvbox Dark
|
|||
|
|
|
|||
|
|
Fixes #30872
|
|||
|
|
---
|
|||
|
|
po/zh_CN.po | 8 ++++++++
|
|||
|
|
src/profile-editor.c | 10 ++++++++++
|
|||
|
|
2 files changed, 18 insertions(+)
|
|||
|
|
|
|||
|
|
diff --git a/po/zh_CN.po b/po/zh_CN.po
|
|||
|
|
index 34ef0b0..a37a9d2 100644
|
|||
|
|
--- a/po/zh_CN.po
|
|||
|
|
+++ b/po/zh_CN.po
|
|||
|
|
@@ -1104,6 +1104,14 @@ msgstr "Solarized 亮色"
|
|||
|
|
msgid "Solarized dark"
|
|||
|
|
msgstr "Solarized 暗色"
|
|||
|
|
|
|||
|
|
+#: ../src/profile-editor.c:79
|
|||
|
|
+msgid "Dracula dark"
|
|||
|
|
+msgstr "Dracula 暗色"
|
|||
|
|
+
|
|||
|
|
+#: ../src/profile-editor.c:84
|
|||
|
|
+msgid "Gruvbox dark"
|
|||
|
|
+msgstr "Gruvbox 暗色"
|
|||
|
|
+
|
|||
|
|
#: ../src/profile-editor.c:488
|
|||
|
|
#, c-format
|
|||
|
|
msgid "Error parsing command: %s"
|
|||
|
|
diff --git a/src/profile-editor.c b/src/profile-editor.c
|
|||
|
|
index ebdc5db..4d5c7d2 100644
|
|||
|
|
--- a/src/profile-editor.c
|
|||
|
|
+++ b/src/profile-editor.c
|
|||
|
|
@@ -75,6 +75,16 @@ static const TerminalColorScheme color_schemes[] =
|
|||
|
|
{ 0.513725, 0.580392, 0.588235, 1 },
|
|||
|
|
{ 0, 0.168627, 0.211764, 1 }
|
|||
|
|
},
|
|||
|
|
+ /*Dracula */
|
|||
|
|
+ { N_("Dracula dark"),
|
|||
|
|
+ { 0.972549, 0.972549, 0.949019, 1 },
|
|||
|
|
+ { 0.156862, 0.164705, 0.211764, 1 }
|
|||
|
|
+ },
|
|||
|
|
+ /*Gruvbox */
|
|||
|
|
+ { N_("Gruvbox dark"),
|
|||
|
|
+ { 0.921568, 0.858823, 0.698039, 1 },
|
|||
|
|
+ { 0.156862, 0.156862, 0.156862, 1 }
|
|||
|
|
+ },
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
static void profile_forgotten_cb (TerminalProfile *profile,
|
|||
|
|
--
|
|||
|
|
2.18.1
|
|||
|
|
|