Fix style display
This commit is contained in:
parent
e615fcc2bc
commit
b8fadb06b5
@ -28,6 +28,9 @@ public fun RBuilder.ringIsland(handler: RHandler<IslandProps>) {
|
||||
public fun RBuilder.ringIsland(header: String, handler: RHandler<IslandContentProps>) {
|
||||
ringIsland {
|
||||
ringIslandHeader {
|
||||
attrs{
|
||||
border = true
|
||||
}
|
||||
+header
|
||||
}
|
||||
ringIslandContent(handler)
|
||||
|
@ -20,22 +20,14 @@ public fun RBuilder.ringPropertyEditor(
|
||||
key: Any? = null,
|
||||
) {
|
||||
|
||||
ringIsland {
|
||||
ringIslandHeader {
|
||||
attrs {
|
||||
border = true
|
||||
}
|
||||
+"Properties"
|
||||
}
|
||||
ringIslandContent {
|
||||
propertyEditor(
|
||||
ownProperties = vision.ownProperties,
|
||||
allProperties = vision.allProperties(),
|
||||
updateFlow = vision.propertyChanges,
|
||||
descriptor = descriptor,
|
||||
key = key
|
||||
)
|
||||
}
|
||||
ringIsland("Properties") {
|
||||
propertyEditor(
|
||||
ownProperties = vision.ownProperties,
|
||||
allProperties = vision.allProperties(),
|
||||
updateFlow = vision.propertyChanges,
|
||||
descriptor = descriptor,
|
||||
key = key
|
||||
)
|
||||
}
|
||||
val styles = if (vision is SolidReference) {
|
||||
(vision.styles + vision.prototype.styles).distinct()
|
||||
@ -52,13 +44,12 @@ public fun RBuilder.ringPropertyEditor(
|
||||
}
|
||||
ringIslandContent {
|
||||
ringSmartTabs {
|
||||
|
||||
}
|
||||
styles.forEach { styleName ->
|
||||
val style = vision.getStyle(styleName)
|
||||
if (style != null) {
|
||||
ringTab(styleName) {
|
||||
metaViewer(style)
|
||||
styles.forEach { styleName ->
|
||||
val style = vision.getStyle(styleName)
|
||||
if (style != null) {
|
||||
ringTab(styleName) {
|
||||
metaViewer(style)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user