From 1c0d2f7535107812c63ebf805743ed18a7a3dac4 Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Fri, 16 Jul 2021 00:36:41 +0200 Subject: [PATCH] Use Color.transparent in samples --- .../src/jsMain/kotlin/com/sample/content/CodeSamplesSwitcher.kt | 2 +- .../src/jsMain/kotlin/com/sample/content/CodeSnippets.kt | 2 +- web/benchmark-core/src/jsMain/kotlin/com/sample/style/WtText.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/benchmark-core/src/jsMain/kotlin/com/sample/content/CodeSamplesSwitcher.kt b/web/benchmark-core/src/jsMain/kotlin/com/sample/content/CodeSamplesSwitcher.kt index c947be7373..8aaff09515 100644 --- a/web/benchmark-core/src/jsMain/kotlin/com/sample/content/CodeSamplesSwitcher.kt +++ b/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") diff --git a/web/benchmark-core/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt b/web/benchmark-core/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt index 931008a112..e204c31b1a 100644 --- a/web/benchmark-core/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt +++ b/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) } } ) { diff --git a/web/benchmark-core/src/jsMain/kotlin/com/sample/style/WtText.kt b/web/benchmark-core/src/jsMain/kotlin/com/sample/style/WtText.kt index 72ce1a1500..bf7ff13575 100644 --- a/web/benchmark-core/src/jsMain/kotlin/com/sample/style/WtText.kt +++ b/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")