Merge pull request #1529 from lnbits/cybertheme

Added cyber theme
This commit is contained in:
Arc 2023-02-21 00:48:16 +00:00 committed by GitHub
commit 76ffb8a607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 4 deletions

View File

@ -59,8 +59,8 @@ LNBITS_RESERVE_FEE_PERCENT=1.0
LNBITS_SITE_TITLE="LNbits" LNBITS_SITE_TITLE="LNbits"
LNBITS_SITE_TAGLINE="free and open-source lightning wallet" LNBITS_SITE_TAGLINE="free and open-source lightning wallet"
LNBITS_SITE_DESCRIPTION="Some description about your service, will display if title is not 'LNbits'" LNBITS_SITE_DESCRIPTION="Some description about your service, will display if title is not 'LNbits'"
# Choose from bitcoin, mint, flamingo, freedom, salvador, autumn, monochrome, classic # Choose from bitcoin, mint, flamingo, freedom, salvador, autumn, monochrome, classic, cyber
LNBITS_THEME_OPTIONS="classic, bitcoin, flamingo, freedom, mint, autumn, monochrome, salvador" LNBITS_THEME_OPTIONS="classic, bitcoin, flamingo, freedom, mint, autumn, monochrome, salvador, cyber"
# LNBITS_CUSTOM_LOGO="https://lnbits.com/assets/images/logo/logo.svg" # LNBITS_CUSTOM_LOGO="https://lnbits.com/assets/images/logo/logo.svg"
# Choose from LNPayWallet, OpenNodeWallet, LntxbotWallet, ClicheWallet, # Choose from LNPayWallet, OpenNodeWallet, LntxbotWallet, ClicheWallet,

View File

@ -160,6 +160,7 @@
'classic', 'classic',
'bitcoin', 'bitcoin',
'flamingo', 'flamingo',
'cyber',
'freedom', 'freedom',
'mint', 'mint',
'autumn', 'autumn',

View File

@ -67,7 +67,15 @@ class ThemesSettings(LNbitsSettings):
lnbits_site_description: str = Field(default=None) lnbits_site_description: str = Field(default=None)
lnbits_default_wallet_name: str = Field(default="LNbits wallet") lnbits_default_wallet_name: str = Field(default="LNbits wallet")
lnbits_theme_options: List[str] = Field( lnbits_theme_options: List[str] = Field(
default=["classic", "flamingo", "mint", "salvador", "monochrome", "autumn"] default=[
"classic",
"freedom",
"mint",
"salvador",
"monochrome",
"autumn",
"cyber",
]
) )
lnbits_custom_logo: str = Field(default=None) lnbits_custom_logo: str = Field(default=None)
lnbits_ad_space_title: str = Field(default="Supported by") lnbits_ad_space_title: str = Field(default="Supported by")

View File

@ -23,6 +23,14 @@ $themes: (
marginal-bg: #2d293b, marginal-bg: #2d293b,
marginal-text: #fff marginal-text: #fff
), ),
'cyber': (
primary: #7cb342,
secondary: #558b2f,
dark: #0a0a0a,
info: #1b1b1b,
marginal-bg: #2d293b,
marginal-text: #fff
),
'mint': ( 'mint': (
primary: #3ab77d, primary: #3ab77d,
secondary: #27b065, secondary: #27b065,
@ -98,6 +106,14 @@ $themes: (
background: #0a0a0a !important; background: #0a0a0a !important;
} }
[data-theme='cyber'] .q-drawer--dark {
background: #0a0a0a !important;
}
[data-theme='cyber'] .q-header {
background: #0a0a0a !important;
}
[data-theme='salvador'] .q-drawer--dark { [data-theme='salvador'] .q-drawer--dark {
background: #242424 !important; background: #242424 !important;
} }

View File

@ -138,7 +138,17 @@
icon="format_color_fill" icon="format_color_fill"
color="pink-13" color="pink-13"
size="md" size="md"
><q-tooltip>Freedom</q-tooltip> ><q-tooltip>freedom</q-tooltip>
</q-btn>
<q-btn
v-if="g.allowedThemes.includes('cyber')"
dense
flat
@click="changeColor('cyber')"
icon="format_color_fill"
color="light-green-9"
size="md"
><q-tooltip>cyber</q-tooltip>
</q-btn> </q-btn>
<q-btn <q-btn
v-if="g.allowedThemes.includes('flamingo')" v-if="g.allowedThemes.includes('flamingo')"