forked from kscience/visionforge
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>) {
|
public fun RBuilder.ringIsland(header: String, handler: RHandler<IslandContentProps>) {
|
||||||
ringIsland {
|
ringIsland {
|
||||||
ringIslandHeader {
|
ringIslandHeader {
|
||||||
|
attrs{
|
||||||
|
border = true
|
||||||
|
}
|
||||||
+header
|
+header
|
||||||
}
|
}
|
||||||
ringIslandContent(handler)
|
ringIslandContent(handler)
|
||||||
|
@ -20,14 +20,7 @@ public fun RBuilder.ringPropertyEditor(
|
|||||||
key: Any? = null,
|
key: Any? = null,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
ringIsland {
|
ringIsland("Properties") {
|
||||||
ringIslandHeader {
|
|
||||||
attrs {
|
|
||||||
border = true
|
|
||||||
}
|
|
||||||
+"Properties"
|
|
||||||
}
|
|
||||||
ringIslandContent {
|
|
||||||
propertyEditor(
|
propertyEditor(
|
||||||
ownProperties = vision.ownProperties,
|
ownProperties = vision.ownProperties,
|
||||||
allProperties = vision.allProperties(),
|
allProperties = vision.allProperties(),
|
||||||
@ -36,7 +29,6 @@ public fun RBuilder.ringPropertyEditor(
|
|||||||
key = key
|
key = key
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
val styles = if (vision is SolidReference) {
|
val styles = if (vision is SolidReference) {
|
||||||
(vision.styles + vision.prototype.styles).distinct()
|
(vision.styles + vision.prototype.styles).distinct()
|
||||||
} else {
|
} else {
|
||||||
@ -52,8 +44,6 @@ public fun RBuilder.ringPropertyEditor(
|
|||||||
}
|
}
|
||||||
ringIslandContent {
|
ringIslandContent {
|
||||||
ringSmartTabs {
|
ringSmartTabs {
|
||||||
|
|
||||||
}
|
|
||||||
styles.forEach { styleName ->
|
styles.forEach { styleName ->
|
||||||
val style = vision.getStyle(styleName)
|
val style = vision.getStyle(styleName)
|
||||||
if (style != null) {
|
if (style != null) {
|
||||||
@ -65,6 +55,7 @@ public fun RBuilder.ringPropertyEditor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public fun Element.ringPropertyEditor(
|
public fun Element.ringPropertyEditor(
|
||||||
|
Loading…
Reference in New Issue
Block a user