ApplicationView
Description
The ApplicationView object contains settings and data for representing and displaying an Application in a user-defined frontend. This allows modelling generic and dynamic user interfaces. None of the properties are evaluated or used by any InCore objects so that no restrictions apply for the contents of the individual properties.
- › Inherits:
Overview
Properties
Methods
Signals
Properties
accentColor
This property holds the accent color used in the theme of an application frontend.
- › Type:
String
- › Default:
rgb(0, 150, 136)- › Signal:
accentColorChanged()
- › Attributes:
Writable
backgroundColor
This property holds the background color used in the theme of an application frontend.
- › Type:
String
- › Default:
white- › Signal:
backgroundColorChanged()
- › Attributes:
Writable
foregroundColor
This property holds the foreground color used in the theme of an application frontend.
- › Type:
String
- › Default:
black- › Signal:
foregroundColorChanged()
- › Attributes:
Writable
logo
This property holds a Resource object containing or describing the application logo image.
- › Type:
- › Signal:
logoChanged()
- › Attributes:
Readonly
name
This property holds the name of the application as defined in the Application.name property. It’s provided for convenience only.
- › Type:
String
- › Attributes:
Readonly
primaryColor
This property holds the primary color used in the theme of an application frontend.
- › Type:
String
- › Default:
rgb(0, 150, 136)- › Signal:
primaryColorChanged()
- › Attributes:
Writable
url
This property holds the URL of the application as defined in the Application.url property. It’s provided for convenience only.
- › Type:
String
- › Attributes:
Readonly
Example
import InCore.Foundation 2.5
Application {
// define a view with background and foreground color and a logo provided in the logo.data property
ApplicationView {
id: appView
backgroundColor: "white"
foregroundColor: "black"
logo {
fileName: "logo.png"
}
}
// serialize application view as JSON string
Serializer {
id: appViewSerializer
source: appView
onDataChanged: console.log(data)
}
// publish serialized application view data via JSON-RPC
JsonRpcServer {
JsonRpcService {
readonly property alias view: appViewSerializer.data
}
}
}