Added env var to be checked

Theme options available to users could be limited here
This commit is contained in:
Ben Arc 2021-06-29 09:42:46 +01:00
parent 78605982fc
commit 893801b30e
3 changed files with 3 additions and 15 deletions

View File

@ -15,10 +15,7 @@ LNBITS_SERVICE_FEE="0.0"
# Change theme
LNBITS_SITE_TITLE=LNbits
LNBITS_PRIMARY_COLOR="#673ab7"
LNBITS_SECONDARY_COLOR="#9c27b0"
LNBITS_BG_COLOR="#1f2234"
LNBITS_DARKCARD_COLOR="#333646"
LNBITS_THEME_OPTIONS="classic,green,orange"
# Choose from LNPayWallet, OpenNodeWallet, LntxbotWallet, LndWallet (gRPC),
# LndRestWallet, CLightningWallet, LNbitsWallet, SparkWallet

View File

@ -13,13 +13,7 @@ from .helpers import (
get_js_vendored,
url_for_vendored,
)
from .settings import (
LNBITS_PATH,
LNBITS_PRIMARY_COLOR,
LNBITS_SECONDARY_COLOR,
LNBITS_BG_COLOR,
LNBITS_DARKCARD_COLOR,
)
from .settings import LNBITS_PATH
@click.command("migrate")

View File

@ -31,10 +31,7 @@ LNBITS_DISABLED_EXTENSIONS: List[str] = env.list(
)
LNBITS_SITE_TITLE = env.str("LNBITS_SITE_TITLE", default="LNbits")
LNBITS_PRIMARY_COLOR = env.str("LNBITS_PRIMARY_COLOR", default="#673ab7")
LNBITS_SECONDARY_COLOR = env.str("LNBITS_SECONDARY_COLOR", default="#9c27b0")
LNBITS_BG_COLOR = env.str("LNBITS_BG_COLOR", default="#1f2234")
LNBITS_DARKCARD_COLOR = env.str("LNBITS_DARKCARD_COLOR", default="#333646")
LNBITS_THEME_OPTIONS = env.str("LNBITS_THEME_OPTIONS", default="classic,green,orange")
WALLET = wallet_class()
DEFAULT_WALLET_NAME = env.str("LNBITS_DEFAULT_WALLET_NAME", default="LNbits wallet")