чување 5efc827b15d87bb1e8ae8450281fbd63598dbddd
родитељ 744746bf19437f70d3488b69ea40d6fcf162f599
Аутор: Страхиња Радић <sr@strahinja.org>
Датум: Fri, 12 Jul 2024 08:03:33 +0200
Update patches
Diffstat:
измењених датотека: 3, додавања: 30(+), брисања: 44(-)
diff --git a/patch/bw-theme.patch b/patch/bw-theme.patch
@@ -1,6 +1,6 @@
-From 5e6de88d5f2e3f1fb6dc8932e493c44fe561935a Mon Sep 17 00:00:00 2001
-From: Страхиња Радић <contact@strahinja.org>
-Date: Mon Jul 1 12:32:44 2024 UTC
+From a18d117d38ba74e3a8c662fba3be58c0a73fd939 Mon Sep 17 00:00:00 2001
+From: Страхиња Радић <sr@strahinja.org>
+Date: Fri Jul 12 05:35:45 2024 UTC
Subject: [PATCH] Set black and white theme
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
@@ -11,10 +11,10 @@ Content-Transfer-Encoding: 8bit
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/config.def.h b/config.def.h
-index 6e213bbba..5e6de88d5 100644
+index 9210ebb03..a18d117d3 100644
--- a/config.def.h
+++ b/config.def.h
-@@ -7,31 +7,31 @@
+@@ -5,31 +5,31 @@
#define DLG_FG TB_BLACK
#define DLG_BG TB_WHITE
#define ERROR_FG TB_WHITE | TB_BOLD
@@ -27,7 +27,7 @@ index 6e213bbba..5e6de88d5 100644
#define INPUT_EDIT_FG TB_WHITE
#define INPUT_EDIT_BG TB_BLACK
-#define LINENO_FG TB_BLACK
--#define LINENO_BG TB_BLACK | TB_BRIGHT
+-#define LINENO_BG TB_CYAN
-#define PROMPT_FG TB_YELLOW | TB_BOLD
-#define PROMPT_BG TB_MAGENTA
-#define SEARCH_FG TB_WHITE | TB_BOLD
diff --git a/patch/dark-theme.patch b/patch/dark-theme.patch
@@ -1,6 +1,6 @@
-From 16878b9fd8ffa2eaeda7d8088e4780f86b1e15d4 Mon Sep 17 00:00:00 2001
-From: Страхиња Радић <contact@strahinja.org>
-Date: Mon Jul 1 12:43:05 2024 UTC
+From 08e8012234a9f71bec3a94f1f117364e87bbcd94 Mon Sep 17 00:00:00 2001
+From: Страхиња Радић <sr@strahinja.org>
+Date: Fri Jul 12 05:36:53 2024 UTC
Subject: [PATCH] Set dark theme
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
@@ -8,16 +8,16 @@ Content-Transfer-Encoding: 8bit
---
config.def.h | 32+ 32-
- sled.c | 2+ 0-
- 2 files changed, 34 insertions(+), 32 deletions(-)
+ sled.c | 1+ 0-
+ 2 files changed, 33 insertions(+), 32 deletions(-)
diff --git a/config.def.h b/config.def.h
-index 6e213bbba..16878b9fd 100644
+index 9210ebb03..08e801223 100644
--- a/config.def.h
+++ b/config.def.h
-@@ -4,38 +4,38 @@
-
- #ifndef ONLY_DEFS
+@@ -2,38 +2,38 @@
+ * any later version. Copyright (C) 2022-2024 Страхиња Радић.
+ * See the file LICENSE for exact copyright and license details. */
-#define DLG_FG TB_BLACK
-#define DLG_BG TB_WHITE
@@ -30,7 +30,7 @@ index 6e213bbba..16878b9fd 100644
-#define INPUT_EDIT_FG TB_WHITE
-#define INPUT_EDIT_BG TB_BLACK
-#define LINENO_FG TB_BLACK
--#define LINENO_BG TB_BLACK | TB_BRIGHT
+-#define LINENO_BG TB_CYAN
-#define PROMPT_FG TB_YELLOW | TB_BOLD
-#define PROMPT_BG TB_MAGENTA
-#define SEARCH_FG TB_WHITE | TB_BOLD
@@ -87,10 +87,10 @@ index 6e213bbba..16878b9fd 100644
extern const int backup_fail;
extern const char* backup_suffix;
diff --git a/sled.c b/sled.c
-index 6e213bbba..16878b9fd 100644
+index 9210ebb03..08e801223 100644
--- a/sled.c
+++ b/sled.c
-@@ -3047,12 +3047,14 @@ main_skip_backups:
+@@ -3072,6 +3072,7 @@ main_skip_backups:
init_termbox:
tb_init();
@@ -98,13 +98,6 @@ index 6e213bbba..16878b9fd 100644
*error = 0;
state.maxx = 0;
state.recalculate_size = 1;
-
- while (state.running)
- {
-+ tb_set_clear_attrs(TEXT_FG, TEXT_BG);
- tb_clear();
-
- if (state.recalculate_size)
--
2.44.1
diff --git a/patch/light-theme.patch b/patch/light-theme.patch
@@ -1,6 +1,6 @@
-From 235731629a6d2b155c83fc5bfcf466f33ed1223f Mon Sep 17 00:00:00 2001
-From: Страхиња Радић <contact@strahinja.org>
-Date: Mon Jul 1 12:37:54 2024 UTC
+From 240f0a7b28a8241b12e439a733aee1d437adbb88 Mon Sep 17 00:00:00 2001
+From: Страхиња Радић <sr@strahinja.org>
+Date: Fri Jul 12 05:36:33 2024 UTC
Subject: [PATCH] Set light theme
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
@@ -8,16 +8,16 @@ Content-Transfer-Encoding: 8bit
---
config.def.h | 32+ 32-
- sled.c | 2+ 0-
- 2 files changed, 34 insertions(+), 32 deletions(-)
+ sled.c | 1+ 0-
+ 2 files changed, 33 insertions(+), 32 deletions(-)
diff --git a/config.def.h b/config.def.h
-index 6e213bbba..235731629 100644
+index 9210ebb03..240f0a7b2 100644
--- a/config.def.h
+++ b/config.def.h
-@@ -4,38 +4,38 @@
-
- #ifndef ONLY_DEFS
+@@ -2,38 +2,38 @@
+ * any later version. Copyright (C) 2022-2024 Страхиња Радић.
+ * See the file LICENSE for exact copyright and license details. */
-#define DLG_FG TB_BLACK
-#define DLG_BG TB_WHITE
@@ -30,7 +30,7 @@ index 6e213bbba..235731629 100644
-#define INPUT_EDIT_FG TB_WHITE
-#define INPUT_EDIT_BG TB_BLACK
-#define LINENO_FG TB_BLACK
--#define LINENO_BG TB_BLACK | TB_BRIGHT
+-#define LINENO_BG TB_CYAN
-#define PROMPT_FG TB_YELLOW | TB_BOLD
-#define PROMPT_BG TB_MAGENTA
-#define SEARCH_FG TB_WHITE | TB_BOLD
@@ -87,10 +87,10 @@ index 6e213bbba..235731629 100644
extern const int backup_fail;
extern const char* backup_suffix;
diff --git a/sled.c b/sled.c
-index 6e213bbba..235731629 100644
+index 9210ebb03..240f0a7b2 100644
--- a/sled.c
+++ b/sled.c
-@@ -3047,12 +3047,14 @@ main_skip_backups:
+@@ -3072,6 +3072,7 @@ main_skip_backups:
init_termbox:
tb_init();
@@ -98,13 +98,6 @@ index 6e213bbba..235731629 100644
*error = 0;
state.maxx = 0;
state.recalculate_size = 1;
-
- while (state.running)
- {
-+ tb_set_clear_attrs(TEXT_FG, TEXT_BG);
- tb_clear();
-
- if (state.recalculate_size)
--
2.44.1