Browse Source

Use Color.transparent in samples

890_COLOR_CONSTANTS
Shagen Ogandzhanian 3 years ago
parent
commit
1c0d2f7535
  1. 2
      web/benchmark-core/src/jsMain/kotlin/com/sample/content/CodeSamplesSwitcher.kt
  2. 2
      web/benchmark-core/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt
  3. 2
      web/benchmark-core/src/jsMain/kotlin/com/sample/style/WtText.kt

2
web/benchmark-core/src/jsMain/kotlin/com/sample/content/CodeSamplesSwitcher.kt

@ -34,7 +34,7 @@ object SwitcherStylesheet : StyleSheet(AppStylesheet) {
border {
style(LineStyle.Solid)
width(3.px)
color(Color("transparent"))
color(Color.transparent)
borderRadius(20.px, 20.px, 20.px)
}
color("#aaa")

2
web/benchmark-core/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt

@ -263,7 +263,7 @@ fun FormattedCodeSnippet(code: String, language: String = "kotlin") {
property("font-family", "'JetBrains Mono', monospace")
property("tab-size", 4)
fontSize(10.pt)
backgroundColor(Color("transparent"))
backgroundColor(Color.transparent)
}
}
) {

2
web/benchmark-core/src/jsMain/kotlin/com/sample/style/WtText.kt

@ -180,7 +180,7 @@ object WtTexts : StyleSheet(AppStylesheet) {
display(DisplayStyle.LegacyInlineFlex)
justifyContent(JustifyContent.Center)
alignItems(AlignItems.Center)
backgroundColor(Color("transparent"))
backgroundColor(Color.transparent)
border(0.px)
property("outline", "none")

Loading…
Cancel
Save