diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..2cb5ca0 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "npm-scripts.showStartNotification": false +} \ No newline at end of file diff --git a/forge.config.js b/forge.config.js index b0e05e1..e2850c8 100644 --- a/forge.config.js +++ b/forge.config.js @@ -3,7 +3,6 @@ module.exports = { icon: './src/images/icon.ico', asar: true, "extraResource": [ - "./src/config/settings.ini", "./src/config/loquendo.db", "./src/sounds" ] diff --git a/package.json b/package.json index 43ea291..a4fca9f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loquendo-bot", - "version": "2.0.0", + "version": "2.1.0", "description": "Bot assistant for streamers over different platforms", "main": "src/main.js", "scripts": { @@ -45,4 +45,4 @@ "@electron-forge/plugin-auto-unpack-natives": "^6.2.1", "electron": "25.4.0" } -} +} \ No newline at end of file diff --git a/src/config/languages.txt b/src/config/languages.txt new file mode 100644 index 0000000..73adeae --- /dev/null +++ b/src/config/languages.txt @@ -0,0 +1,3 @@ +EN +ES +NL \ No newline at end of file diff --git a/src/css/chat.css b/src/css/chat.css index 51eb40a..b205162 100644 --- a/src/css/chat.css +++ b/src/css/chat.css @@ -389,21 +389,22 @@ select { } .AdvancedMenuLabel { - width: 120px; font-size: 10pt; padding-right: 5px; + margin-left: 10px; + width: 125px +} + +.AdvancedMenuLabel2 { + font-size: 10pt; + padding-right: 5px; + margin-left: 10px; } #SaveAdvancedSettingsButton { margin-left: 10px; } - -/* Big toggle */ - - -/* toggle in label designing */ - .toggle { position: relative; display: inline-block; @@ -425,7 +426,6 @@ select { background-color: var(--main-color2); left: 5px; top: 5px; - transition: all 0.2s; } @@ -476,7 +476,6 @@ select { background-color: white; left: 2px; top: 2px; - transition: all 0.2s; } diff --git a/src/css/home.css b/src/css/home.css index ee17b30..cf04350 100644 --- a/src/css/home.css +++ b/src/css/home.css @@ -203,4 +203,43 @@ body { .maximized #max-button { display: none; +} + +.language-selector { + -webkit-app-region: no-drag; + position: absolute; + display: inline-block; + background-color: transparent; + cursor: pointer; + font-family: 'NotoColorEmojiLimited', -apple-system, BlinkMacSystemFont, + 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', + 'Segoe UI Emoji', 'Segoe UI Symbol'; +} + +.language-dropdown { + display: none; + position: absolute; + background-color: #fff; + width: 55px; + box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); + z-index: 2; + font-family: 'NotoColorEmojiLimited', -apple-system, BlinkMacSystemFont, + 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', + 'Segoe UI Emoji', 'Segoe UI Symbol'; +} + +.language-item { + padding: 5px; + cursor: pointer; + background-color: var(--top-bar); +} + +.language-item:hover { + /* filter: brightness(150%); */ +} + +@font-face { + font-family: NotoColorEmojiLimited; + unicode-range: U+1F1E6-1F1FF; + src: url(https://raw.githack.com/googlefonts/noto-emoji/main/fonts/NotoColorEmoji.ttf); } \ No newline at end of file diff --git a/src/css/logger.css b/src/css/logger.css index a101736..5deb96a 100644 --- a/src/css/logger.css +++ b/src/css/logger.css @@ -1,15 +1,9 @@ table { - margin-left: 25px; - margin-right: 25px; + margin-left: 10px; background-color: white; border-collapse: collapse; width: 100%; -} - -table, -h1 { - margin-left: 35px !important; - /* Adjust the margin value according to your needs */ + margin-top: 60px; } th, @@ -32,7 +26,7 @@ td { } #logTable { - width: 90%; + width: 95%; } #Logs { diff --git a/src/css/menu.css b/src/css/menu.css index 3b54f79..640884b 100644 --- a/src/css/menu.css +++ b/src/css/menu.css @@ -35,6 +35,8 @@ display: block; width: 100%; background: var(--main-color1); + z-index: 1; + position: relative; } .menu .items { @@ -64,19 +66,18 @@ } .menu .items .item-active { - transition: 0.3s; background: -webkit-linear-gradient(left, var(--main-color2) 10%, var(--main-color2), var(--main-color1) 10%, var(--main-color1) 10%); color: var(--main-color2); - transition: all 0.15s ease-out; + filter: brightness(90%); } .menu .items .item:hover { cursor: pointer; - /* filter: brightness(150%); */ color: var(--main-color2); - transition: all 0.15s ease-in-out; + filter: brightness(120%); } + .sidepanel-left { position: relative; width: 50px; @@ -86,7 +87,6 @@ text-align: center; box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px; transition: .3s ease-in-out; - z-index: 1; } .sidepanel-right { @@ -100,8 +100,12 @@ transition: .3s ease-in-out; } -.collapse-menu { - width: 0px; +.collapse-menu-left { + margin-left: -50px; +} + +.collapse-menu-right { + margin-right: -200px; } .sidepanel-left span { @@ -124,11 +128,11 @@ background-color: var(--main-color3); color: var(--main-color2); justify-content: left; - top: 0px; + top: 32px; left: 50px; cursor: pointer; display: flex; - z-index: 9; + z-index: 1; transition: .3s ease-in-out; } @@ -146,11 +150,11 @@ background-color: var(--main-color3); color: var(--main-color2); justify-content: right; - top: 0px; + top: 32px; right: 199px; cursor: pointer; display: flex; - z-index: 9; + z-index: 1; transition: .3s ease-in-out; } diff --git a/src/css/tabs.css b/src/css/tabs.css index 8c47d9e..7d147fe 100644 --- a/src/css/tabs.css +++ b/src/css/tabs.css @@ -203,6 +203,11 @@ select { width: 300px; } +.language { + width: 80px; + margin-left: 10px; +} + #AdvancedMenu_mask { position: absolute; top: 0; @@ -253,91 +258,151 @@ select { padding-left: 10px; } +input[type="password"] { + background: var(--main-color3); + border: none; + height: 40px; + border-radius: 40px; + width: 300px; + outline: none; + color: var(--main-color2); + font-size: 10pt; + padding-left: 10px; + padding-right: 40px; + /* To make space for the reveal button */ +} + +input[type="lol"] { + background: var(--main-color3); + border: none; + height: 40px; + border-radius: 40px; + width: 300px; + outline: none; + color: var(--main-color2); + font-size: 10pt; + padding-left: 10px; + padding-right: 40px; + /* To make space for the reveal button */ +} + +/* Style for the reveal button */ +.password-toggle-btn { + position: absolute; + background-color: transparent; + border: none; + cursor: pointer; + left: 450px; +} + +/* Hide the default appearance of the button */ +.password-toggle-btn::-moz-focus-inner { + border: 0; +} + +/* Style the reveal icon (you can use your preferred icon or font) */ +.password-toggle-icon { + font-size: 16px; + color: #555; +} + #toasts { position: fixed; - bottom: 10px; - right: 10px; + bottom: 20px; + /* Adjust the distance from the bottom of the screen */ + right: 50%; + /* Center the toasts horizontally */ display: flex; flex-direction: column; - align-items: flex-end; - z-index: 1; - transition: all 0.3s ease-in-out; + align-items: center; + /* Center the toasts horizontally */ + z-index: 999; } .toast { - background-color: #fff; + background-color: #333; + color: white; border-radius: 5px; padding: 1rem 2rem; margin: 0.5rem; + opacity: 0; + transform: translateY(100%); + animation: toastAnimation 0.5s ease-in-out forwards, toastDisappear 0.5s ease-in-out 9s forwards; } +/* Apply different colors based on the toast type */ .toast.info { - color: rebeccapurple; + background-color: #3498db; } .toast.success { - color: green; + background-color: #2ecc71; } .toast.warning { - background-color: orange; - color: white; + background-color: #f39c12; } .toast.error { - color: red; + background-color: #e74c3c; +} + +/* CSS animation for the toast appearance */ +@keyframes toastAnimation { + from { + opacity: 0; + transform: translateY(100%); + } + + to { + opacity: 1; + transform: translateY(0); + } +} + +/* CSS animation for the toast disappearance */ +@keyframes toastDisappear { + from { + opacity: 1; + } + + to { + opacity: 0; + } } .menu-icon { font-size: 17pt; } -[tip] .tooltip { - position: fixed; +.tooltip { + position: absolute; + display: inline-block; + visibility: hidden; font-size: 12px; line-height: 20px; padding: 5px; background: var(--main-color3); border-radius: 5px; visibility: hidden; - opacity: 0; + opacity: 1; box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.2); transition: opacity 0.3s, visibility 0s; color: var(--main-color2); - z-index: 101; font-family: 'xxii_avenmedium'; } -[tip]:hover .tooltip { - visibility: visible; - opacity: 1; -} - -.tooltip { - position: relative; - display: inline-block; -} - -.tooltip .tooltiptext { - visibility: hidden; +/* .tooltip .tooltiptext { width: 120px; background-color: black; color: #fff; text-align: center; border-radius: 6px; padding: 5px 0; - position: absolute; - z-index: 1; - bottom: 150%; - left: 50%; - margin-left: -60px; } .tooltip .tooltiptext::after { content: ""; - position: absolute; - top: 100%; - left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; @@ -346,8 +411,21 @@ select { .tooltip:hover .tooltiptext { visibility: visible; -} +} */ input[type=text]:disabled { background: #dddddd; +} + +input[type2=text]:disabled { + background: #dddddd; +} + +button[type=text]:disabled { + background: #dddddd; +} + +div:disabled { + background: #dddddd; + filter: brightness(200%); } \ No newline at end of file diff --git a/src/css/tts-menu.css b/src/css/tts-menu.css index 30203f4..c204953 100644 --- a/src/css/tts-menu.css +++ b/src/css/tts-menu.css @@ -75,29 +75,12 @@ textarea { margin-top: 40px; } -.SaveButton { - text-shadow: 0 0 5px #070607, 0 0 5px #070607, 0 0 5px #070607; - transition: all 0.15s ease-in-out; -} - -.SaveButton:hover { - /* color: var(--main-color1); */ - cursor: pointer; - /* filter: brightness(150%); */ -} - -.SaveButton:active { - color: var(--main-color1); - transform: translateY(4px); - text-shadow: 0 0 5px #000, 0 0 5px #000, 0 0 5px #000; -} - .SmallButton { color: var(--main-color2); width: 50px; cursor: pointer; text-shadow: 0 0 5px #070607, 0 0 5px #070607, 0 0 5px #070607; - transition: all 0.15s ease-in-out; + /* transition: all 0.15s ease-in-out; */ text-align: center; } @@ -124,16 +107,24 @@ textarea { border: none; font-family: 'xxii_avenmedium'; font-size: 14pt; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); + transition: box-shadow 0.3s ease, background-color 0.3s ease; + /* Add a smooth transition for box-shadow and background-color */ } .AdvancedMenuButton:hover { - /* background-color: var(--main-color1); */ + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); + background-color: var(--main-color3); + filter: brightness(150%); + /* Darken the background color on hover */ cursor: pointer; - /* filter: brightness(150%); */ } .AdvancedMenuButton:active { - transform: translateY(4px); + transform: translateY(2px); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); + background-color: var(--main-color3); + /* Reset the background color on click */ } .AdvancedMenuIcon { diff --git a/src/css/volume-slider.css b/src/css/volume-slider.css index cb765db..e96a86f 100644 --- a/src/css/volume-slider.css +++ b/src/css/volume-slider.css @@ -54,7 +54,7 @@ outline: none; /* box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); */ box-shadow: 0 0 3px rgb(0 0 0 / 10%); - transition: .3s ease-in-out; + /* transition: .3s ease-in-out; */ } .slider-container .slider:active::-webkit-slider-thumb, diff --git a/src/index.html b/src/index.html index 33455cd..e452dde 100644 --- a/src/index.html +++ b/src/index.html @@ -27,7 +27,20 @@