Change the solid circle color of interactive buttons.
When selecting a button, how can I change the color of the solid circle of the button? I found that the blue color of Musescore 4 does not meet my requirements.I want to change these three buttons to different colors. How can I achieve this.
Comments
I am using this code,
In reply to I am using this code, … by davil123
MuseScore 4 has overridden almost all style settings like this that I've tried, so I don't think it's possible at the moment. If you don't like the blue, you can change it to a different color in the settings
In reply to MuseScore 4 has overridden… by XiaoMigros
Can the solid circles within the interaction box only have one color? Can we create several RadioButton boxes and set the color of the solid circles inside each box?
In reply to Can the solid circles within… by davil123
I don't think so, but you mention parkingb used different colors? can you send his code?
In reply to I don't think so, but you… by XiaoMigros
His solid circle is a fixed black color.see : https://github.com/lgvr123/batch_export
In reply to His solid circle is a fixed… by davil123
In MuseScore 4 as well?
In reply to In MuseScore 4 as well? by XiaoMigros
yes
In reply to In MuseScore 4 as well? by XiaoMigros
I noticed that he used the method of external importing of 'NiceRadioButton.qml' to change the color.
In reply to I don't think so, but you… by XiaoMigros
I'm sorry, I can't comprehend his code.
In reply to MuseScore 4 has overridden… by XiaoMigros
Just like this.
Hi, you went in the right direction. Look at my NiceRadioButton item.
You define a new property at the level of the item that would the color:
And at the level of your GUI:
Rem: StackOverflow is good source of information for all these questions, better than this forum, because the guys and girls there have A LOT of knowledge about QML
In reply to Hi, you went in the right… by parkingb
You can also paste the first snippet of code directly into your main qml file, if you want, skipping the need for the extra property
By the way, what is doing your plugin ? Maybe does the same functionality already exist in Duration Editor plugin ? There is a Tuplet feature.
In reply to By the way, what is doing… by parkingb
I am learning interface design for plugins, which may be useful in the future, as almost all plugins may require a reasonable interaction interface.
In reply to By the way, what is doing… by parkingb
Do you know any other plugins that have a very good design interface? I want to learn from their code.
In reply to By the way, what is doing… by parkingb
Musescore plugin.
In reply to By the way, what is doing… by parkingb
I think your canvas circle is very good,But what's good about switching to other geometric shapes? It seems that circles are the best shape.
In reply to I think your canvas circle… by davil123
This one took me a while to figure out how to build it ;-)
For GUI, you have 2 options: the traditional QML approach (which I use) and the WebEngine+HTML approach which is a completely different approach, leading to rich GUI but whose support in MS4.0 is unknown.
For the latter, I have no experience, but you can check
- The Mixer Minimalist Style from msfp
- and his doc in the knowledge database
For the first (and traditional) approach, I could point to some of my plugin and some others:
- Batch Convert (some code is historical and less neat, but I didn't want to rewrite everything)
- Score from template (which has some subcomponents, filter-as-you-type list, ...)
- TempoChanges (with an interactive line canvas)
- Scale Workout Builder (with one of my best and successful usage of the ListModel approach)
In reply to This one took me while to… by parkingb
thank you!