From eed159e4ab20bad9962a23d81dacea46ee98735a Mon Sep 17 00:00:00 2001 From: prplV Date: Mon, 17 Mar 2025 09:15:25 -0400 Subject: [PATCH] dark theme login window --- src/Style/LoginModal.css | 29 +++++++++++++++++++++++------ src/Style/dark-theme.css | 5 ++++- src/Style/light-theme.css | 3 +++ 3 files changed, 30 insertions(+), 7 deletions(-) diff --git a/src/Style/LoginModal.css b/src/Style/LoginModal.css index efd544a..971fd36 100755 --- a/src/Style/LoginModal.css +++ b/src/Style/LoginModal.css @@ -4,7 +4,7 @@ left: 0; right: 0; bottom: 0; - background: rgba(0, 0, 0, 0.5); + background: var(--modal-background); display: flex; justify-content: center; align-items: center; @@ -13,8 +13,9 @@ .modal { background: var(--modal-background); padding: 20px; + /* padding-right: 3%; */ border-radius: 8px; - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); + /* box-shadow: 0 0.3vh 2vh #1E1E1E; */ max-width: 400px; width: 100%; color: var(--modal-text); @@ -22,36 +23,52 @@ .modal h2 { margin-bottom: 20px; + text-align: center; + font-size: 4vh; } .modal label { display: block; margin-bottom: 5px; color: var(--modal-text); + font-size: larger; + font-weight: bolder; + padding-bottom: 1%; } .modal input { width: 100%; - padding: 8px; + /* padding: 8px; */ + padding-top: 3%; + padding-bottom: 3%; + /* margin-left: 3%; */ + /* margin-right: 10%; */ margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; + font-size: larger; background-color: var(--modal-background); color: var(--modal-text); } .modal button { - padding: 10px 20px; + /* padding: 10px 20px; */ + margin-top: 5vh; margin-bottom: 5px; - background: var(--accent-color); + background: var(--modal--btn-background); color: var(--text-color); border: none; border-radius: 4px; + box-shadow: 0 0.3vh 1vh #2c2c2c; cursor: pointer; + width: 100%; + padding-top: 4%; + padding-bottom: 4%; + transition: 0.2s; } .modal button:hover { - background: var(--accent-hover-color); + background: var(--hover-button); } .error { diff --git a/src/Style/dark-theme.css b/src/Style/dark-theme.css index 5e61591..ae5c96a 100755 --- a/src/Style/dark-theme.css +++ b/src/Style/dark-theme.css @@ -8,7 +8,8 @@ /* Темный цвет сайдбара */ --sidebar-text-color: #E0E0E0; /* Светлый текст в сайдбаре */ - --modal-background: #333333; + --modal-background: #2d2d2d; + --modal--btn-background: #333333; --modal-text: #FFFFFF; --table-border: #444444; --table-header-background: #2d2d2d; @@ -17,5 +18,7 @@ /* Светлый текст в таблице */ --TreeChart-text-color: #ffffff; --scrollbar-track-color: #333; + /* hover for buttons */ + --hover-button: #333d4d; } } \ No newline at end of file diff --git a/src/Style/light-theme.css b/src/Style/light-theme.css index 6a43ada..287b9f2 100755 --- a/src/Style/light-theme.css +++ b/src/Style/light-theme.css @@ -14,4 +14,7 @@ --table-cell-background: #FFFFFF; --table-text-color: #000000; /* Черный текст в таблице */ + + /* hover for buttons */ + --hover-button: #2c579c; } \ No newline at end of file