5 Star 0 Fork 10

src-openEuler/mate-terminal

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0002-feature-color-scheme-add-two-color-scheme-Dracula-Da.patch 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
yueyaoqiang 提交于 2024-08-28 17:40 . sync patches from 1.22
From bf6b6b5204339b33b80b65f2148428ddaf91b114 Mon Sep 17 00:00:00 2001
From: yueyaoqiang <yueyaoqiang@kylinos.cn>
Date: Wed, 28 Aug 2024 17:21:23 +0800
Subject: [PATCH 2/6] feature(color scheme):add two color scheme:Dracula Dark
---
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 2c59bc8..5abefa9 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -1452,6 +1452,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:498
#, c-format
msgid "Error parsing command: %s"
diff --git a/src/profile-editor.c b/src/profile-editor.c
index 79515fa..4de7f77 100644
--- a/src/profile-editor.c
+++ b/src/profile-editor.c
@@ -76,6 +76,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.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/mate-terminal.git
git@gitee.com:src-openeuler/mate-terminal.git
src-openeuler
mate-terminal
mate-terminal
master

搜索帮助