Provides custom styling for the ItemEditor. More...
Import Statement: | import Felgo 4.0 |
Inherits: |
You can create a custom ItemEditor by replacing the according delegate of the ItemEditorStyle with a custom design. If you want to restyle all ItemEditors in your app it is advised to use GameStyle to restyle the elements.
Following example adjusts the background of the item editor.
ItemEditor { id: itemEditor itemEditorStyle: ItemEditorStyle { contentDelegateBackground: Rectangle { anchors.fill: parent border.width: 2 border.color: "#ff0000" radius: 4 gradient: Gradient { GradientStop { position: 0 ; color: "#ccc" } GradientStop { position: 1 ; color: "#aaa" } } } contentDelegateTypeList: Rectangle { anchors.fill: parent border.width: 2 border.color: "#ff0000" radius: 4 gradient: Gradient { GradientStop { position: 0 ; color: "#eee" } GradientStop { position: 1 ; color: "#ccc" } } } } }
If you need a custom label, you can replace the label item properties.
See also ItemEditor and GameStyle.
contentDelegateBackground : Component |
This Component is used to change the style of the ContentDelegate background used by the ItemEditor.
contentDelegateTypeList : Component |
This Component is used to change the style of the TypeList background in the ContentDelegate used by the ItemEditor.
label : Text |
This Component is used to change the style of the Text items used in all delegates of the ItemEditor.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: