Skip to content

Is it possible to customize appearance? #1558

Answered by Danielku15
bali182 asked this question in Q&A
Discussion options

You must be logged in to vote

Seems you might have mixed up the "strong typed settings" and the "initialization from JSON". But you're right that things can be a bit confusing for the start. As we're compiling alphaTab to C# and Kotlin, things inside alphaTab are rather strictly typed but in the web version we offer some more dynamic means to configure settings:

Initialization via JSON object

const api = new AlphaTabApi(document.querySelector("#alphaTab"), {
  display: {
    resources: {
      staffLineColor: '#ffffff80',
      barSeparatorColor: '#fff',
      mainGlyphColor: '#fff',
      secondaryGlyphColor: '#fff',
      scoreInfoColor: '#fff',
      barNumberColor: 

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bali182
Comment options

@Danielku15
Comment options

Answer selected by Danielku15
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