chore: add proton theme [skip e2e]

This commit is contained in:
Aman Harwara
2024-04-10 16:18:01 +05:30
parent 7332f10ff4
commit 03da45537d
4 changed files with 64 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ export class NativeFeatureIdentifier extends ValueObject<NativeFeatureIdentifier
MidnightTheme: 'org.standardnotes.theme-midnight',
SolarizedDarkTheme: 'org.standardnotes.theme-solarized-dark',
TitaniumTheme: 'org.standardnotes.theme-titanium',
ProtonTheme: 'com.standardnotes.theme-proton',
PlainEditor: 'com.standardnotes.plain-text',
SuperEditor: 'com.standardnotes.super-editor',

View File

@@ -97,5 +97,18 @@ export function themes(): ThemeFeatureDescription[] {
no_mobile: true,
})
return [midnight, futura, solarizedDark, autobiography, dark, titanium, dynamic]
const proton: ThemeFeatureDescription = FillThemeComponentDefaults({
availableInRoles: [RoleName.NAMES.PlusUser, RoleName.NAMES.ProUser],
name: 'Proton',
identifier: NativeFeatureIdentifier.TYPES.ProtonTheme,
permission_name: PermissionName.ProtonTheme,
dock_icon: {
type: 'circle',
background_color: '#16141c',
foreground_color: '#ffffff',
border_color: '#4a4658',
},
})
return [midnight, futura, solarizedDark, autobiography, dark, proton, titanium, dynamic]
}

View File

@@ -40,4 +40,5 @@ export enum PermissionName {
Clipper = 'app:clipper',
Vaults = 'app:vaults',
SharedVaults = 'server:shared-vaults',
ProtonTheme = 'theme:proton',
}