Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
2a254ef1
Commit
2a254ef1
authored
Apr 15, 2022
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve type of `branding` config setting
parent
28f6e4d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
config.js
src/types/config.js
+13
-1
No files found.
src/types/config.js
View file @
2a254ef1
...
@@ -84,6 +84,18 @@
...
@@ -84,6 +84,18 @@
* @prop {import('./rpc').FocusUserInfo} [user]
* @prop {import('./rpc').FocusUserInfo} [user]
*/
*/
/**
* List of theme elements which can be customized.
*
* @typedef {'accentColor'|
* 'annotationFontFamily' |
* 'appBackgroundColor'|
* 'ctaBackgroundColor'|
* 'ctaTextColor'|
* 'selectionFontFamily'
* } ThemeProperty
*/
/**
/**
* Configuration provided by the annotator ("host frame") as
* Configuration provided by the annotator ("host frame") as
* `ConfigFromAnnotator` OR by an ancestor ("embedder frame") as
* `ConfigFromAnnotator` OR by an ancestor ("embedder frame") as
...
@@ -101,7 +113,7 @@
...
@@ -101,7 +113,7 @@
* @prop {string} [appType] - Method used to load the client
* @prop {string} [appType] - Method used to load the client
* @prop {boolean} [openSidebar] - Whether to open the sidebar on the initial load
* @prop {boolean} [openSidebar] - Whether to open the sidebar on the initial load
* @prop {boolean} [showHighlights] - Whether to show highlights
* @prop {boolean} [showHighlights] - Whether to show highlights
* @prop {
object
} [branding] -
* @prop {
Record<ThemeProperty, string>
} [branding] -
* Theme properties (fonts, colors etc.)
* Theme properties (fonts, colors etc.)
* @prop {boolean} [enableExperimentalNewNoteButton] -
* @prop {boolean} [enableExperimentalNewNoteButton] -
* Whether to show the "New note" button on the "Page Notes" tab
* Whether to show the "New note" button on the "Page Notes" tab
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment