dynamic accent color in frontend

This commit is contained in:
Bogdan Pilyugin 2023-05-22 09:16:21 +02:00
parent 23c58f4a53
commit 49c2fec984
6 changed files with 26 additions and 7 deletions

View File

@ -21,6 +21,7 @@ res/appstyles.css
res/ca_cert.pem
res/cron.js
res/crondata.js
res/dynamic.css
res/iconsfont.css
res/iconsfont.woff2
res/logo.png

View File

@ -1,9 +1,9 @@
:root {
:root {
/*========== Colors ==========*/
--bgr-color: #1D2327;
--panel-bgr-color: #2c3338;
--menu-bgr-color: #3c434a;
--accent-color: #dba617;
--accent-color: ~actclr~;
--text-color:#F0F0F1;
/*========== Font and typography ==========*/

4
HTML/res/dynamic.css Normal file
View File

@ -0,0 +1,4 @@
/*========== Colors ==========*/
:root {
}

@ -1 +1 @@
Subproject commit a856034f1de3a1395844b205251b9e2c13cb2ba2
Subproject commit ab665c8e8acf60a1ffb0afaecbe458c72011ac39

View File

@ -1274,9 +1274,15 @@ CONFIG_WEBGUIAPP_HOSTNAME="DEVICE_HOSTNAME"
CONFIG_WEBGUIAPP_USERNAME="user"
CONFIG_WEBGUIAPP_USERPASS="password"
CONFIG_MAIN_FUNCTIONAL_BUTTON_GPIO=15
CONFIG_DEBUG_MODE_ENABLE=y
# CONFIG_DEBUG_MODE_ENABLE is not set
# CONFIG_RESET_MODE_ENABLE is not set
#
# Web UI settings
#
CONFIG_WEBGUIAPP_ACCENT_COLOR="#dba617"
# end of Web UI settings
#
# OTA settings
#

View File

@ -858,7 +858,7 @@ CONFIG_LWIP_MAX_RAW_PCBS=16
#
# SNTP
#
CONFIG_LWIP_SNTP_MAX_SERVERS=1
CONFIG_LWIP_SNTP_MAX_SERVERS=3
# CONFIG_LWIP_DHCP_GET_NTP_SRV is not set
CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000
# end of SNTP
@ -1274,9 +1274,15 @@ CONFIG_WEBGUIAPP_HOSTNAME="DEVICE_HOSTNAME"
CONFIG_WEBGUIAPP_USERNAME="user"
CONFIG_WEBGUIAPP_USERPASS="password"
CONFIG_MAIN_FUNCTIONAL_BUTTON_GPIO=15
CONFIG_DEBUG_MODE_ENABLE=y
# CONFIG_DEBUG_MODE_ENABLE is not set
# CONFIG_RESET_MODE_ENABLE is not set
#
# Web UI settings
#
CONFIG_WEBGUIAPP_ACCENT_COLOR="dba617#"
# end of Web UI settings
#
# OTA settings
#
@ -1290,7 +1296,9 @@ CONFIG_WEBGUIAPP_OTA_AUTOUPDATE_PERIOD=3600
# SNTP client settings
#
CONFIG_WEBGUIAPP_SNTP_AUTOUPDATE_ENABLE=y
CONFIG_WEBGUIAPP_SNTP_HOST="2.pool.ntp.org"
CONFIG_WEBGUIAPP_SNTP_HOST_1="1.pool.ntp.org"
CONFIG_WEBGUIAPP_SNTP_HOST_2="2.pool.ntp.org"
CONFIG_WEBGUIAPP_SNTP_HOST_3="3.pool.ntp.org"
CONFIG_WEBGUIAPP_SNTP_AUTOUPDATE_PERIOD=3600
CONFIG_WEBGUIAPP_SNTP_TIMEZONE=2
# end of SNTP client settings