Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fscarponi committed Sep 26, 2023
1 parent f958854 commit ef2c84e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.jetbrains.jewel

import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
Expand All @@ -10,6 +11,7 @@ import androidx.compose.ui.Modifier
import kotlinx.coroutines.delay
import org.jetbrains.jewel.styling.CircularProgressStyle

@Composable
fun CircularProgress(
modifier: Modifier,
style: CircularProgressStyle = IntelliJTheme.circularProgressStyle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,7 @@ import androidx.compose.runtime.State
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.ui.graphics.painter.Painter
import androidx.compose.ui.unit.DpSize
import java.time.Duration

data class IntUiCircularProgressStyle(
override val frameIcons: CircularProgressIcons,
override val metrics: CircularProgressMetrics,
) : CircularProgressStyle {

companion object {
// todo
// @Composable
// fun light(
// svgLoader: SvgLoader,
// metrics: IntUiLazyTreeMetrics = IntUiLazyTreeMetrics(),
// frameIcons: CircularProgressIcons: IntUiLazyTreeIcons = intUiLazyTreeIcons(svgLoader),
// ) = IntUiLazyTreeStyle(colors, metrics, icons)
//
// @Composable
// fun dark(
// svgLoader: SvgLoader,
// colors: IntUiLazyTreeColors = IntUiLazyTreeColors.dark(),
// metrics: IntUiLazyTreeMetrics = IntUiLazyTreeMetrics(),
// icons: IntUiLazyTreeIcons = intUiLazyTreeIcons(svgLoader),
// ) = IntUiLazyTreeStyle(colors, metrics, icons)
}
}
import kotlin.time.Duration

interface CircularProgressStyle {

Expand Down
1 change: 0 additions & 1 deletion ide-laf-bridge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ plugins {
dependencies {
api(projects.intUi.intUiStandalone)
compileOnly(libs.bundles.idea)

testImplementation(compose.desktop.uiTestJUnit4)
}

0 comments on commit ef2c84e

Please sign in to comment.