add support for defining the greentext
This commit is contained in:
parent
e4b18deece
commit
8cd5041663
@ -256,6 +256,13 @@
|
|||||||
:label="$t('settings.links')"
|
:label="$t('settings.links')"
|
||||||
/>
|
/>
|
||||||
<ContrastRatio :contrast="previewContrast.postLink" />
|
<ContrastRatio :contrast="previewContrast.postLink" />
|
||||||
|
<ColorInput
|
||||||
|
v-model="postGreentextColorLocal"
|
||||||
|
name="postGreentextColor"
|
||||||
|
:fallback="previewTheme.colors.cGreen"
|
||||||
|
:label="$t('settings.greentext')"
|
||||||
|
/>
|
||||||
|
<ContrastRatio :contrast="previewContrast.postGreentext" />
|
||||||
<h4>{{ $t('settings.style.advanced_colors.alert') }}</h4>
|
<h4>{{ $t('settings.style.advanced_colors.alert') }}</h4>
|
||||||
<ColorInput
|
<ColorInput
|
||||||
v-model="alertErrorColorLocal"
|
v-model="alertErrorColorLocal"
|
||||||
|
@ -226,7 +226,7 @@ $status-margin: 0.75em;
|
|||||||
|
|
||||||
.greentext {
|
.greentext {
|
||||||
color: $fallback--cGreen;
|
color: $fallback--cGreen;
|
||||||
color: var(--cGreen, $fallback--cGreen);
|
color: var(--postGreentext, $fallback--cGreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline :not(.panel-disabled) > {
|
.timeline :not(.panel-disabled) > {
|
||||||
|
@ -356,6 +356,12 @@ export const SLOT_INHERITANCE = {
|
|||||||
textColor: 'preserve'
|
textColor: 'preserve'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
postGreentext: {
|
||||||
|
depends: ['cGreen'],
|
||||||
|
layer: 'bg',
|
||||||
|
textColor: 'preserve'
|
||||||
|
},
|
||||||
|
|
||||||
border: {
|
border: {
|
||||||
depends: ['fg'],
|
depends: ['fg'],
|
||||||
opacity: 'border',
|
opacity: 'border',
|
||||||
|
Loading…
Reference in New Issue
Block a user