Skip to content

How to provide stylings to preferences items. #13398

Answered by msujew
Abhay0196 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Abhay0196,

you're missing the type property. See:

'breadcrumbs.enabled': {
'type': 'boolean',
'default': true,
'description': nls.localizeByDefault('Enable/disable navigation breadcrumbs.'),
'scope': 'application'
},

I believe TypeScript would correctly complain about it missing if you add the PreferenceSchema type as the return type of your function.

If that doesn't help, you can always just import a custom .css file in your code which targets the HTML elements in Theia. That way you can write any CSS to align your checkbox how you like.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Abhay0196
Comment options

Answer selected by Abhay0196
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants