chore: fix some issues with theme [skip e2e]
This commit is contained in:
@@ -98,7 +98,7 @@ export function themes(): ThemeFeatureDescription[] {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const proton: ThemeFeatureDescription = FillThemeComponentDefaults({
|
const proton: ThemeFeatureDescription = FillThemeComponentDefaults({
|
||||||
availableInRoles: [RoleName.NAMES.PlusUser, RoleName.NAMES.ProUser],
|
availableInRoles: [RoleName.NAMES.CoreUser, RoleName.NAMES.PlusUser, RoleName.NAMES.ProUser],
|
||||||
name: 'Proton',
|
name: 'Proton',
|
||||||
identifier: NativeFeatureIdentifier.TYPES.ProtonTheme,
|
identifier: NativeFeatureIdentifier.TYPES.ProtonTheme,
|
||||||
permission_name: PermissionName.ProtonTheme,
|
permission_name: PermissionName.ProtonTheme,
|
||||||
|
|||||||
@@ -114,8 +114,10 @@ export class GetFeatureStatusUseCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private isFreeFeature(featureId: NativeFeatureIdentifier) {
|
private isFreeFeature(featureId: NativeFeatureIdentifier) {
|
||||||
return [NativeFeatureIdentifier.TYPES.DarkTheme, NativeFeatureIdentifier.TYPES.PlainEditor].includes(
|
return [
|
||||||
featureId.value,
|
NativeFeatureIdentifier.TYPES.DarkTheme,
|
||||||
)
|
NativeFeatureIdentifier.TYPES.PlainEditor,
|
||||||
|
NativeFeatureIdentifier.TYPES.ProtonTheme,
|
||||||
|
].includes(featureId.value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
--sn-stylekit-border-color: var(--border-weak);
|
--sn-stylekit-border-color: var(--border-weak);
|
||||||
--sn-stylekit-contrast-background-color: var(--background-weak);
|
--sn-stylekit-contrast-background-color: var(--background-weak);
|
||||||
--sn-stylekit-contrast-foreground-color: var(--text-norm);
|
--sn-stylekit-contrast-foreground-color: var(--text-norm);
|
||||||
|
--sn-stylekit-contrast-border-color: var(--border-norm);
|
||||||
--sn-stylekit-secondary-background-color: var(--background-weak);
|
--sn-stylekit-secondary-background-color: var(--background-weak);
|
||||||
--sn-stylekit-secondary-foreground-color: var(--text-norm);
|
--sn-stylekit-secondary-foreground-color: var(--text-norm);
|
||||||
--sn-stylekit-info-color: var(--interaction-norm);
|
--sn-stylekit-info-color: var(--interaction-norm);
|
||||||
@@ -26,6 +27,7 @@
|
|||||||
--navigation-item-selected-background-color: var(--background-strong);
|
--navigation-item-selected-background-color: var(--background-strong);
|
||||||
|
|
||||||
--sn-stylekit-paragraph-text-color: var(--text-weak);
|
--sn-stylekit-paragraph-text-color: var(--text-weak);
|
||||||
|
--sn-stylekit-scrollbar-thumb-color: var(--primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
a,
|
a,
|
||||||
|
|||||||
Reference in New Issue
Block a user