mate-terminal/0001-feature-color-scheme-add-two-color-scheme-Dracula-Da.patch
longcheng ac2e64e33f Add some patches
Signed-off-by: longcheng <longcheng@kylinsec.com.cn>
2022-08-04 10:47:51 +08:00

61 lines
1.7 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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