commit b20bc3e3c1e578cde92810b24b3dcf03b40335d3
Author: Koji Yokota <[email protected]>
Date: Thu Mar 6 14:41:06 2025 +0900
Add version number to theme files
---
src/frontends/qt/GuiPrefs.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/frontends/qt/GuiPrefs.cpp b/src/frontends/qt/GuiPrefs.cpp
index 117d064045..4000b3c5cd 100644
--- a/src/frontends/qt/GuiPrefs.cpp
+++ b/src/frontends/qt/GuiPrefs.cpp
@@ -22,6 +22,7 @@
#include "GuiLyXFiles.h"
#include "GuiView.h"
#include "qt_helpers.h"
+#include "version.h"
#include "Validator.h"
#include "Author.h"
@@ -1440,7 +1441,7 @@ void PrefColors::saveTheme(QString file_path)
ofstream ofs(fromqstr(file_path));
- ofs << "#\n" <<
+ ofs << "#LyX version: " << lyx_version << "\n#\n" <<
"# This is a definition file of a color theme \"" <<
fromqstr(theme_name_) << "\" of LyX\n" <<
"#\n" <<
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs