From 7a9a30a03820bd581a401f33872619639e7c619c Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sun, 19 Mar 2023 19:59:35 +0100 Subject: [PATCH] Dark-Mode: Better contrast --- web/assets/css/custom.css | 52 ++++++++++++++++++++++++++++++++++++++ web/html/xui/inbounds.html | 4 --- web/html/xui/index.html | 10 ++++---- 3 files changed, 57 insertions(+), 9 deletions(-) diff --git a/web/assets/css/custom.css b/web/assets/css/custom.css index 8740b791..1cba42c1 100644 --- a/web/assets/css/custom.css +++ b/web/assets/css/custom.css @@ -266,4 +266,56 @@ .ant-drawer-dark .drawer-handle { background-color: #001529; border: 1px solid hsla(0,0%,100%,.30); +} + +.ant-card-dark .ant-tag-blue { + color: #188fffa0; + background-color: #061c2c; + border-color: #91d5ffa0; +} + +.ant-card-dark .ant-tag-green { + color: #52c41aa0; + background-color: #192c06; + border-color: #b7eb8fa0; +} + +.ant-card-dark .ant-tag-cyan { + color: #13c2c2a0; + background-color: #052b25; + border-color: #87e8dea0; +} + +.ant-card-dark .ant-tag-red { + color: #f5222da0; + background-color: #210503; + border-color: #ffa39ea0; +} + +.ant-card-dark .ant-tag-orange { + color: #fa8c16a0; + background-color: #2d2106; + border-color: #ffd591a0; +} + +.ant-card-dark .ant-table-row-expand-icon { + background: none; +} + +.ant-card-dark .ant-switch-checked { + background-color: #0c61b0; +} + +.ant-card-dark .ant-btn { + color: hsla(0,0%,100%,.65); + background: none; + border: 1px solid hsla(0,0%,100%,.65); +} + +.ant-card-dark .ant-btn-primary { + color: hsla(0,0%,100%,.65); + background-color: #073763; + border-color: #1890ff; + text-shadow: 0 -1px 0 rgba(0,0,0,.12); + box-shadow: 0 2px 0 rgba(0,0,0,.045); } \ No newline at end of file diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index e67e1a07..6222d349 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -11,10 +11,6 @@ .ant-col-sm-24 { margin-top: 10px; } - - .ant-table-row-expand-icon { - color: rgba(0,0,0,.65); - } diff --git a/web/html/xui/index.html b/web/html/xui/index.html index 53320096..8ac734eb 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -84,16 +84,16 @@ - [[ status.xray.version ]] - {{ i18n "pages.index.stopXray" }} - {{ i18n "pages.index.restartXray" }} - {{ i18n "pages.index.xraySwitch" }} + [[ status.xray.version ]] + {{ i18n "pages.index.stopXray" }} + {{ i18n "pages.index.restartXray" }} + {{ i18n "pages.index.xraySwitch" }} {{ i18n "pages.index.operationHours" }}: - [[ formatSecond(status.uptime) ]] + [[ formatSecond(status.uptime) ]]