[LyX/master] Update sk.po

2025-02-26 Thread Kornel Benko
commit d8f28cde114e7e3c28e57bd2c44481313f921198
Author: Kornel Benko 
Date:   Wed Feb 26 19:14:42 2025 +0100

Update sk.po
---
 po/sk.po | 233 +--
 1 file changed, 182 insertions(+), 51 deletions(-)

diff --git a/po/sk.po b/po/sk.po
index 2ecc12de9f..09ecb11ecb 100644
--- a/po/sk.po
+++ b/po/sk.po
@@ -8,10 +8,10 @@ msgid ""
 msgstr ""
 "Project-Id-Version: LyX-2.5\n"
 "Report-Msgid-Bugs-To: lyx-de...@lists.lyx.org\n"
-"POT-Creation-Date: 2025-02-25 13:28+0100\n"
-"PO-Revision-Date: 2025-02-25 12:34+\n"
+"POT-Creation-Date: 2025-02-26 18:48+0100\n"
+"PO-Revision-Date: 2025-02-26 18:07+\n"
 "Last-Translator: Kornel Benko \n"
-"Language-Team: Slovak \n"
+"Language-Team: Slovak \n"
 "Language: sk\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -3866,29 +3866,61 @@ msgstr "Nájsť v preambule"
 msgid "&Find"
 msgstr "Ná&jsť"
 
-#: src/frontends/qt/ui/PrefColorsUi.ui:60
-msgid "Change the selected color"
-msgstr "Zmeniť označenú farbu"
+#: src/frontends/qt/ui/PrefColorsUi.ui:39
+msgid "Apply changed color immediately"
+msgstr "Okamžite použiť zmenenú tému farieb"
 
-#: src/frontends/qt/ui/PrefColorsUi.ui:63
-msgid "A"
+msgstr "->"
+
+#: src/frontends/qt/ui/PrefColorsUi.ui:402
+msgid "Light"
+msgstr "Svetlá"
+
+#: src/frontends/qt/ui/PrefColorsUi.ui:429
+msgid "Dark"
+msgstr "Tmavá"
 
 #: src/frontends/qt/ui/PrefColorsUi.ui:80
 msgid "Reset all colors to their original value"
 msgstr "Vrátiť všetky farby na pôvodné hodnoty"
 
-#: src/frontends/qt/ui/PrefColorsUi.ui:83
-msgid "Restore A&ll"
-msgstr "Obnoviť &všetko"
+#: src/frontends/qt/ui/PrefColorsUi.ui:244
+msgid "Restore &All"
+msgstr "O&bnoviť všetko"
 
 #: src/frontends/qt/ui/PrefColorsUi.ui:105
 msgid "Use the color scheme of your Operating System/Desktop Environment"
@@ -3899,6 +3931,50 @@ msgstr ""
 msgid "&Use system colors"
 msgstr "Použiť farby &systému"
 
+#: src/frontends/qt/ui/PrefColorsUi.ui:73
+msgid "Load preset color theme"
+msgstr "Načítať prednastavený motív farieb"
+
+#: src/frontends/qt/ui/PrefColorsUi.ui:76
+msgid "Load Theme"
+msgstr "Načítať tému"
+
+#: src/frontends/qt/ui/PrefColorsUi.ui:83
+msgid "Save current color setting as a color theme"
+msgstr "Uložte aktuálne nastavenie farieb ako tému farieb"
+
+#: src/frontends/qt/ui/PrefColorsUi.ui:86
+msgid "&Save Theme..."
+msgstr "U&ložiť tému…"
+
+#: src/frontends/qt/ui/PrefColorsUi.ui:104
+msgid "<="
+msgstr "<="
+
+#: src/frontends/qt/ui/PrefColorsUi.ui:123
+msgid "=>"
+msgstr "=>"
+
+#: src/frontends/qt/ui/PrefColorsUi.ui:147
+msgid "Change the selected light-mode color"
+msgstr "Zmeňte zvolenú farbu svetelného režimu"
+
+#: src/frontends/qt/ui/PrefColorsUi.ui:150
+msgid "Alter &Light Color..."
+msgstr "&Zmeniť svetlú farbu…"
+
+#: src/frontends/qt/ui/PrefColorsUi.ui:202
+msgid "Re&move Theme..."
+msgstr "Z&mazať tému…"
+
+#: src/frontends/qt/ui/PrefColorsUi.ui:231
+msgid "Change the selected dark-mode color"
+msgstr "Zmeňte zvolenú farbu tmavého režimu"
+
+#: src/frontends/qt/ui/PrefColorsUi.ui:234
+msgid "Alter &Dark Color..."
+msgstr "Zm&eniť tmavú farbu…"
+
 #: src/frontends/qt/ui/PrefCompletionUi.ui:26
 msgid "In Math"
 msgstr "Vo vzorcoch"
@@ -19298,77 +19374,77 @@ msgstr "Čierna"
 msgid "LaTeX Base Colors"
 msgstr "Základné farby LaTeXu"
 
-#: lib/latexcolors:51 lib/latexcolors:767 lib/latexcolors:2000
+#: lib/latexcolors:77 lib/latexcolors:213 lib/latexcolors:977
 msgid "White"
-msgstr "Biela"
+msgstr "Biela (White)"
 
-#: lib/latexcolors:58 lib/latexcolors:229 lib/latexcolors:888
+#: lib/latexcolors:145 lib/latexcolors:595 lib/latexcolors:1650
 msgid "Blue"
-msgstr "Modrá"
+msgstr "Modrá (Blue)"
 
-#: lib/latexcolors:65 lib/latexcolors:263 lib/latexcolors:904
+#: lib/latexcolors:91 lib/latexcolors:795 lib/latexcolors:1201
 msgid "Brown"
-msgstr "Hnedá"
+msgstr "Hnedá (Brown)"
 
 #: lib/latexcolors:73 lib/latexcolors:317 lib/latexcolors:976
 msgid "Cyan"
 msgstr "Azúr

[LyX/master] Wrong vertical position of PrefIdentity fields.

2025-02-26 Thread Pavel Sanda
commit e83045987ef8d50a6601746ff7452de793a4f23d
Author: Pavel Sanda 
Date:   Wed Feb 26 22:28:34 2025 +0100

Wrong vertical position of PrefIdentity fields.

Revert part of b9c5f6be5ef. For whatever these make
it center to the middle of pane.
---
 src/frontends/qt/ui/PrefIdentityUi.ui | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/ui/PrefIdentityUi.ui 
b/src/frontends/qt/ui/PrefIdentityUi.ui
index 3533c233d1..979f0940ce 100644
--- a/src/frontends/qt/ui/PrefIdentityUi.ui
+++ b/src/frontends/qt/ui/PrefIdentityUi.ui
@@ -94,10 +94,10 @@

 
  
-  Qt::Orientation::Vertical
+  Qt::Vertical
  
  
-  QSizePolicy::Policy::Expanding
+  QSizePolicy::Expanding
  
  
   
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs


[LyX/master] Fix thinko in GuiBox color code

2025-02-26 Thread Juergen Spitzmueller
commit 51813ef33d7eb9fbdad769babed469bbac75d958
Author: Juergen Spitzmueller 
Date:   Wed Feb 26 10:05:50 2025 +0100

Fix thinko in GuiBox color code
---
 src/insets/InsetBox.cpp | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/insets/InsetBox.cpp b/src/insets/InsetBox.cpp
index 311e46fb3c..c2f90eaaa0 100644
--- a/src/insets/InsetBox.cpp
+++ b/src/insets/InsetBox.cpp
@@ -941,12 +941,12 @@ string const InsetBox::getFrameColor(bool const gui) const
 string const InsetBox::getBackgroundColor(bool const gui) const
 {
if (params_.backgroundcolor == "none")
-   return (gui) ? "white"
-: "page_backgroundcolor";
+   return (gui) ? "page_backgroundcolor"
+: "white";
registerLyXColor(params_.backgroundcolor);
if (!lcolor.isKnownLyXName(params_.backgroundcolor))
-   return (gui) ? "white"
-: "page_backgroundcolor";
+   return (gui) ? "page_backgroundcolor"
+: "white";
return gui ? params_.backgroundcolor
   : 
lcolor.getLaTeXName(lcolor.getFromLyXName(params_.backgroundcolor));
 }
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs


[LyX/master] Add accelerator keys to PrefColors dialog

2025-02-26 Thread Koji Yokota
commit d62005680565f94ddc9b71befbac4a4f059c1f40
Author: Koji Yokota 
Date:   Wed Feb 26 18:49:21 2025 +0900

Add accelerator keys to PrefColors dialog
---
 src/frontends/qt/GuiPrefs.cpp   | 28 ++--
 src/frontends/qt/ui/PrefColorsUi.ui |  2 +-
 2 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/src/frontends/qt/GuiPrefs.cpp b/src/frontends/qt/GuiPrefs.cpp
index efba1f251d..31c71a13b1 100644
--- a/src/frontends/qt/GuiPrefs.cpp
+++ b/src/frontends/qt/GuiPrefs.cpp
@@ -71,6 +71,7 @@
 #include 
 #endif
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -1031,6 +1032,19 @@ PrefColors::PrefColors(GuiPreferences * form)
newcolors_.resize(lcolors_.size());
 
undo_stack_ = new QUndoStack(this);
+   QShortcut* sc_undo = new QShortcut(QKeySequence(QKeySequence::Undo), 
this);
+   QShortcut* sc_redo = new QShortcut(QKeySequence(QKeySequence::Redo), 
this);
+   QShortcut* sc_search =
+   new QShortcut(QKeySequence(QKeySequence::Find), this);
+   QShortcut* sc_search_forward =
+   new QShortcut(QKeySequence(QKeySequence::FindNext), this);
+   QShortcut* sc_search_backward =
+   new QShortcut(QKeySequence(QKeySequence::FindPrevious), this);
+#if !defined(Q_OS_MAC)
+   // give a shortcut to the combobox
+   QShortcut* sc_load_theme =
+   new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_L), this);
+#endif
 
initializeLoadThemeCO();
 
@@ -1064,11 +1078,22 @@ PrefColors::PrefColors(GuiPreferences * form)
this, SLOT(removeTheme()));
connect(saveThemePB, SIGNAL(clicked()),
this, SLOT(saveTheme()));
+#if !defined(Q_OS_MAC)
+   connect(sc_load_theme, SIGNAL(activated()), loadThemeCO, 
SLOT(setFocus()));
+#endif
+   connect(sc_search, SIGNAL(activated()),
+   searchStringEdit, SLOT(setFocus()));
+   connect(sc_search_forward, SIGNAL(activated()),
+   this, SLOT(searchNextColorItem()));
+   connect(sc_search_backward, SIGNAL(activated()),
+   this, SLOT(searchPreviousColorItem()));
+   connect(sc_redo, SIGNAL(activated()), undo_stack_, SLOT(redo()));
+   connect(sc_undo, SIGNAL(activated()), undo_stack_, SLOT(undo()));
connect(searchBackwardPB, SIGNAL(clicked()),
this, SLOT(searchPreviousColorItem()));
connect(searchForwardPB, SIGNAL(clicked()),
this, SLOT(searchNextColorItem()));
-   connect(searchStringEdit, SIGNAL(editingFinished()),
+   connect(searchStringEdit, SIGNAL(returnPressed()),
this, SLOT(searchNextColorItem()));
connect(syscolorsCB, SIGNAL(toggled(bool)),
this, SIGNAL(changed()));
@@ -4136,7 +4161,6 @@ SetColor::SetColor(const int row, bool dark_mode, const 
QColor & new_color,
   new_color_(new_color), old_color_(old_color), newcolors_(new_color_list),
   parent_(color_module)
 {
-   LYXERR0("constructor");
setText(QString("Color %1 is changed to %2 (light) and %3 (dark)")
.arg(lcolors_[row_]).arg(newcolors_[row_].first)
.arg(newcolors_[row_].second));
diff --git a/src/frontends/qt/ui/PrefColorsUi.ui 
b/src/frontends/qt/ui/PrefColorsUi.ui
index e63a0f97c3..cbf1fe6bf2 100644
--- a/src/frontends/qt/ui/PrefColorsUi.ui
+++ b/src/frontends/qt/ui/PrefColorsUi.ui
@@ -199,7 +199,7 @@
  
   

-Remove Theme...
+Re&move Theme...

   
  
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs


[Wiki-uploads/master] Upload several color theme examples

2025-02-26 Thread Koji Yokota
commit a26c7726e37c918853a18a7c6bd10bdeb7caec0c
Author: Koji Yokota 
Date:   Wed Feb 26 21:53:52 2025 +0900

Upload several color theme examples
---
 LyX/NewInLyX25/color-theme-monochrome-dark.png  | Bin 0 -> 118334 bytes
 LyX/NewInLyX25/color-theme-monochrome-light.png | Bin 0 -> 109549 bytes
 LyX/NewInLyX25/color-theme-solarized-dark.png   | Bin 0 -> 122340 bytes
 LyX/NewInLyX25/color-theme-solarized-light.png  | Bin 0 -> 122552 bytes
 4 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/LyX/NewInLyX25/color-theme-monochrome-dark.png 
b/LyX/NewInLyX25/color-theme-monochrome-dark.png
new file mode 100644
index 000..d1d23ff
Binary files /dev/null and b/LyX/NewInLyX25/color-theme-monochrome-dark.png 
differ
diff --git a/LyX/NewInLyX25/color-theme-monochrome-light.png 
b/LyX/NewInLyX25/color-theme-monochrome-light.png
new file mode 100644
index 000..0e5c03d
Binary files /dev/null and b/LyX/NewInLyX25/color-theme-monochrome-light.png 
differ
diff --git a/LyX/NewInLyX25/color-theme-solarized-dark.png 
b/LyX/NewInLyX25/color-theme-solarized-dark.png
new file mode 100644
index 000..68860ed
Binary files /dev/null and b/LyX/NewInLyX25/color-theme-solarized-dark.png 
differ
diff --git a/LyX/NewInLyX25/color-theme-solarized-light.png 
b/LyX/NewInLyX25/color-theme-solarized-light.png
new file mode 100644
index 000..c72ea11
Binary files /dev/null and b/LyX/NewInLyX25/color-theme-solarized-light.png 
differ
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs