From abc82cef4c225c4ac42203d50600ba8677701ebf Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Mon, 15 May 2023 15:24:08 +0200 Subject: [PATCH] [darkmode] re-design theme-switch Co-authored-by: Hamidreza Ghavami --- web/html/common/prompt_modal.html | 2 +- web/html/common/qrcode_modal.html | 2 +- web/html/common/text_modal.html | 2 +- web/html/login.html | 80 ++++++++++++--------- web/html/xui/client_bulk_modal.html | 6 +- web/html/xui/client_modal.html | 4 +- web/html/xui/common_sider.html | 40 +++-------- web/html/xui/component/themeSwitch.html | 58 +++++++++++++++ web/html/xui/form/inbound.html | 4 +- web/html/xui/form/protocol/shadowsocks.html | 4 +- web/html/xui/form/protocol/trojan.html | 4 +- web/html/xui/form/protocol/vless.html | 4 +- web/html/xui/form/protocol/vmess.html | 4 +- web/html/xui/form/sniffing.html | 2 +- web/html/xui/form/tls_settings.html | 2 +- web/html/xui/inbound_info_modal.html | 4 +- web/html/xui/inbound_modal.html | 2 +- web/html/xui/inbounds.html | 28 ++++---- web/html/xui/index.html | 38 +++++----- web/html/xui/setting.html | 46 +++++------- 20 files changed, 190 insertions(+), 146 deletions(-) create mode 100644 web/html/xui/component/themeSwitch.html diff --git a/web/html/common/prompt_modal.html b/web/html/common/prompt_modal.html index 4b8a13d0..6b64bc95 100644 --- a/web/html/common/prompt_modal.html +++ b/web/html/common/prompt_modal.html @@ -1,7 +1,7 @@ {{define "promptModal"}} {{ i18n "pages.inbounds.clickOnQRcode" }} diff --git a/web/html/common/text_modal.html b/web/html/common/text_modal.html index ce77d0ca..649f73dd 100644 --- a/web/html/common/text_modal.html +++ b/web/html/common/text_modal.html @@ -1,7 +1,7 @@ {{define "textModal"}} - + -

{{ i18n "pages.login.title" }}

+

{{ i18n "pages.login.title" }}

@@ -48,40 +59,39 @@ - + - + - {{ i18n "login" }} + + + [[ loading ? '' : '{{ i18n "login" }}' ]] + + - - - Language : - - - - + + + +    - - - - + + + + + @@ -90,22 +100,20 @@
{{template "js" .}} +{{template "component/themeSwitcher" .}} diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index 16259ce4..8c142ce8 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/web/html/xui/client_bulk_modal.html @@ -1,7 +1,7 @@ {{define "clientsBulkModal"}} @@ -89,7 +89,7 @@
- {{ i18n "pages.inbounds.totalFlow" }}(GB) + {{ i18n "pages.inbounds.totalFlow" }}(GB)