From e0c48102465e5abea0627c8c2c6104193a6174ff Mon Sep 17 00:00:00 2001 From: Christian Eichert Date: Sat, 6 Aug 2022 19:05:39 +0200 Subject: [PATCH 1/2] https://github.com/LibreTranslate/LibreTranslate/pull/293 --- app/static/css/dark-theme.css | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/app/static/css/dark-theme.css b/app/static/css/dark-theme.css index 9ff7523..d89ff08 100644 --- a/app/static/css/dark-theme.css +++ b/app/static/css/dark-theme.css @@ -7,8 +7,12 @@ .blue.darken-3 { background-color: #1E5DA6 !important; } - + /*" like in btn-delete-text */ + .btn-flat { + color: #666; + } + .btn-switch-type { background-color: #333; color: #5CA8FF; @@ -17,7 +21,6 @@ background-color: #444 !important; color: #5CA8FF; } - .btn-switch-type.active { background-color: #3392FF !important; color: #fff; @@ -26,19 +29,38 @@ background-color: #5CA8FF !important; color: #fff; } + + .card-content { + border: 1px solid #444 !important; + background-color: #222 !important; + color: #fff; + } + .file-dropzone { + background: #222; + border: 1px solid #444; + margin-top: 1rem; + } select { color: #fff; + background: #111; } + option { + color: #fff; + background: #222; + } textarea { border: 1px solid #444 !important; background-color: #222 !important; color: #fff; } - + .textarea-container { + margin-top: 1rem; + } + .code { border: 1px solid #444; background: #222; @@ -49,7 +71,6 @@ text-shadow: 0 1px #000; } - .token.atrule, .token.attr-value, .token.keyword { From cebeca43cb5af48d3545c6b78fc423a3c87c25f8 Mon Sep 17 00:00:00 2001 From: Christian Eichert Date: Sat, 6 Aug 2022 20:16:01 +0200 Subject: [PATCH 2/2] preloading the stuff --- app/templates/index.html | 190 +++++++++++++++++++++------------------ 1 file changed, 102 insertions(+), 88 deletions(-) diff --git a/app/templates/index.html b/app/templates/index.html index 8991425..912997b 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -5,33 +5,47 @@ LibreTranslate - Free and Open Source Machine Translation API - - + + - - - - - + + + + + + + + + + + + + + + + + - - - - - - + {% if gaId %} {% endif %} + + + + + + + @@ -114,16 +128,16 @@

Translation API

-
- - -
+
+ + +
@@ -166,20 +180,20 @@ Translated text -
- - - - -
+
+ + + + +
@@ -187,43 +201,43 @@
-
-
-
- Supported file formats: [[ supportedFilesFormatFormatted ]] - -
-
- File - -
- -
- -
-
-
-
-
-
- [[ inputFile.name ]] - -
-
-
-
- - Download -
-
-
-
-
-
+
+
+
+ Supported file formats: [[ supportedFilesFormatFormatted ]] +
+
+
+ File + +
+ +
+
+
+
+
+
+
+
+ [[ inputFile.name ]] + +
+
+
+
+ + Download +
+
+
+
+
+
@@ -251,24 +265,24 @@
- {% if web_version %} + {% if web_version %}

Open Source Machine Translation API

100% Self-Hosted. Offline Capable. Easy to Setup.

- +
- {% endif %} + {% endif %} @@ -302,7 +316,7 @@ window.Prism.manual = true; // @license-end - - + +