chore: fix some issues with theme [skip e2e]

This commit is contained in:
Aman Harwara
2024-04-10 23:13:16 +05:30
parent 17458b61d1
commit 852ddc677d
3 changed files with 8 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ export function themes(): ThemeFeatureDescription[] {
})
const proton: ThemeFeatureDescription = FillThemeComponentDefaults({
availableInRoles: [RoleName.NAMES.PlusUser, RoleName.NAMES.ProUser],
availableInRoles: [RoleName.NAMES.CoreUser, RoleName.NAMES.PlusUser, RoleName.NAMES.ProUser],
name: 'Proton',
identifier: NativeFeatureIdentifier.TYPES.ProtonTheme,
permission_name: PermissionName.ProtonTheme,

View File

@@ -114,8 +114,10 @@ export class GetFeatureStatusUseCase {
}
private isFreeFeature(featureId: NativeFeatureIdentifier) {
return [NativeFeatureIdentifier.TYPES.DarkTheme, NativeFeatureIdentifier.TYPES.PlainEditor].includes(
featureId.value,
)
return [
NativeFeatureIdentifier.TYPES.DarkTheme,
NativeFeatureIdentifier.TYPES.PlainEditor,
NativeFeatureIdentifier.TYPES.ProtonTheme,
].includes(featureId.value)
}
}

View File

@@ -14,6 +14,7 @@
--sn-stylekit-border-color: var(--border-weak);
--sn-stylekit-contrast-background-color: var(--background-weak);
--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-foreground-color: var(--text-norm);
--sn-stylekit-info-color: var(--interaction-norm);
@@ -26,6 +27,7 @@
--navigation-item-selected-background-color: var(--background-strong);
--sn-stylekit-paragraph-text-color: var(--text-weak);
--sn-stylekit-scrollbar-thumb-color: var(--primary);
}
a,