Browse Source

Fix IDE examples (#2361)

- move intellij-plugin-with-experimental-shared-base into experimental examples (it still on Compose 1.0.0)
- remove usage of deprecated DesktopTheme
- add `[examples](experimental/examples)` to the main page
pull/2362/head
Igor Demin 2 years ago committed by GitHub
parent
commit
76a77d288e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      README.md
  2. 2
      examples/intellij-plugin/build.gradle.kts
  3. 3
      examples/intellij-plugin/src/main/kotlin/com/jetbrains/compose/widgets/LazyScrollable.kt
  4. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/.gitignore
  5. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/.run/runIde.run.xml
  6. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/README.md
  7. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/build.gradle.kts
  8. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/gradle.properties
  9. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/gradle/wrapper/gradle-wrapper.jar
  10. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/gradle/wrapper/gradle-wrapper.properties
  11. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/gradlew
  12. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/gradlew.bat
  13. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/screenshots/ide-run-configuration.png
  14. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/settings.gradle.kts
  15. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/ComposeDemoAction.kt
  16. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/IntellijTheme.kt
  17. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/color/ColorLineMarkerProvider.kt
  18. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/color/ColorPicker.kt
  19. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/color/HSV.kt
  20. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/panel/ComposeToolWindow.kt
  21. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/panel/CounterPanel.kt
  22. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/panel/CounterState.kt
  23. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/Color.kt
  24. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/Shape.kt
  25. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/Theme.kt
  26. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/Type.kt
  27. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/intellij/SwingColor.kt
  28. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/intellij/ThemeChangeListener.kt
  29. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/Buttons.kt
  30. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/LazyScrollable.kt
  31. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/Loaders.kt
  32. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/TextInputs.kt
  33. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/Toggles.kt
  34. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/resources/META-INF/plugin.xml
  35. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/resources/icons/compose.svg
  36. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/test/kotlin/com/jetbrains/compose/color/ColorPickerUITest.kt
  37. 0
      experimental/examples/intellij-plugin-with-experimental-shared-base/src/test/kotlin/com/jetbrains/compose/color/HSVTest.kt

1
README.md

@ -65,6 +65,7 @@ Note that when you use Compose Multiplatform, you setup your project differently
* [components](components) - custom components of Compose Multiplatform * [components](components) - custom components of Compose Multiplatform
* [Split Pane](components/SplitPane) * [Split Pane](components/SplitPane)
* [experimental](experimental) - experimental components and examples * [experimental](experimental) - experimental components and examples
* [examples](experimental/examples) - examples that use new experimental functionality
* [cef](experimental/cef) - CEF integration in Jetpack Compose (somewhat outdated) * [cef](experimental/cef) - CEF integration in Jetpack Compose (somewhat outdated)
* [Video Player](experimental/components/VideoPlayer) * [Video Player](experimental/components/VideoPlayer)
* [LWJGL integration](experimental/lwjgl-integration) - An example showing how to integrate Compose with [LWJGL](https://www.lwjgl.org) * [LWJGL integration](experimental/lwjgl-integration) - An example showing how to integrate Compose with [LWJGL](https://www.lwjgl.org)

2
examples/intellij-plugin/build.gradle.kts

@ -1,7 +1,7 @@
import org.jetbrains.compose.compose import org.jetbrains.compose.compose
plugins { plugins {
id("org.jetbrains.intellij") version "1.6.0" id("org.jetbrains.intellij") version "1.9.0"
java java
kotlin("jvm") kotlin("jvm")
id("org.jetbrains.compose") id("org.jetbrains.compose")

3
examples/intellij-plugin/src/main/kotlin/com/jetbrains/compose/widgets/LazyScrollable.kt

@ -1,6 +1,5 @@
package com.jetbrains.compose.widgets package com.jetbrains.compose.widgets
import androidx.compose.desktop.DesktopTheme
import androidx.compose.foundation.background import androidx.compose.foundation.background
import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyColumn
@ -27,7 +26,6 @@ import androidx.compose.ui.unit.dp
@Composable @Composable
fun LazyScrollable() { fun LazyScrollable() {
MaterialTheme { MaterialTheme {
DesktopTheme {
Box( Box(
modifier = Modifier.fillMaxSize() modifier = Modifier.fillMaxSize()
.padding(10.dp) .padding(10.dp)
@ -51,7 +49,6 @@ fun LazyScrollable() {
} }
} }
} }
}
@Composable @Composable
private fun TextBox(text: String = "Item") { private fun TextBox(text: String = "Item") {

0
examples/intellij-plugin-with-experimental-shared-base/.gitignore → experimental/examples/intellij-plugin-with-experimental-shared-base/.gitignore vendored

0
examples/intellij-plugin-with-experimental-shared-base/.run/runIde.run.xml → experimental/examples/intellij-plugin-with-experimental-shared-base/.run/runIde.run.xml

0
examples/intellij-plugin-with-experimental-shared-base/README.md → experimental/examples/intellij-plugin-with-experimental-shared-base/README.md

0
examples/intellij-plugin-with-experimental-shared-base/build.gradle.kts → experimental/examples/intellij-plugin-with-experimental-shared-base/build.gradle.kts

0
examples/intellij-plugin-with-experimental-shared-base/gradle.properties → experimental/examples/intellij-plugin-with-experimental-shared-base/gradle.properties

0
examples/intellij-plugin-with-experimental-shared-base/gradle/wrapper/gradle-wrapper.jar → experimental/examples/intellij-plugin-with-experimental-shared-base/gradle/wrapper/gradle-wrapper.jar vendored

0
examples/intellij-plugin-with-experimental-shared-base/gradle/wrapper/gradle-wrapper.properties → experimental/examples/intellij-plugin-with-experimental-shared-base/gradle/wrapper/gradle-wrapper.properties vendored

0
examples/intellij-plugin-with-experimental-shared-base/gradlew → experimental/examples/intellij-plugin-with-experimental-shared-base/gradlew vendored

0
examples/intellij-plugin-with-experimental-shared-base/gradlew.bat → experimental/examples/intellij-plugin-with-experimental-shared-base/gradlew.bat vendored

0
examples/intellij-plugin-with-experimental-shared-base/screenshots/ide-run-configuration.png → experimental/examples/intellij-plugin-with-experimental-shared-base/screenshots/ide-run-configuration.png

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

0
examples/intellij-plugin-with-experimental-shared-base/settings.gradle.kts → experimental/examples/intellij-plugin-with-experimental-shared-base/settings.gradle.kts

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/ComposeDemoAction.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/ComposeDemoAction.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/IntellijTheme.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/IntellijTheme.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/color/ColorLineMarkerProvider.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/color/ColorLineMarkerProvider.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/color/ColorPicker.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/color/ColorPicker.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/color/HSV.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/color/HSV.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/panel/ComposeToolWindow.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/panel/ComposeToolWindow.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/panel/CounterPanel.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/panel/CounterPanel.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/panel/CounterState.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/panel/CounterState.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/Color.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/Color.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/Shape.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/Shape.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/Theme.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/Theme.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/Type.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/Type.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/intellij/SwingColor.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/intellij/SwingColor.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/intellij/ThemeChangeListener.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/theme/intellij/ThemeChangeListener.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/Buttons.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/Buttons.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/LazyScrollable.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/LazyScrollable.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/Loaders.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/Loaders.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/TextInputs.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/TextInputs.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/Toggles.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/kotlin/com/jetbrains/compose/widgets/Toggles.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/main/resources/META-INF/plugin.xml → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/resources/META-INF/plugin.xml

0
examples/intellij-plugin-with-experimental-shared-base/src/main/resources/icons/compose.svg → experimental/examples/intellij-plugin-with-experimental-shared-base/src/main/resources/icons/compose.svg

Before

Width:  |  Height:  |  Size: 438 B

After

Width:  |  Height:  |  Size: 438 B

0
examples/intellij-plugin-with-experimental-shared-base/src/test/kotlin/com/jetbrains/compose/color/ColorPickerUITest.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/test/kotlin/com/jetbrains/compose/color/ColorPickerUITest.kt

0
examples/intellij-plugin-with-experimental-shared-base/src/test/kotlin/com/jetbrains/compose/color/HSVTest.kt → experimental/examples/intellij-plugin-with-experimental-shared-base/src/test/kotlin/com/jetbrains/compose/color/HSVTest.kt

Loading…
Cancel
Save