Skip to content

Commit

Permalink
update to jewel 0.13.2 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
fscarponi authored Jan 16, 2024
1 parent a539a22 commit 34f4047
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 3 additions & 4 deletions packagesearch.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ ktor = "2.3.5"
logback = "1.4.11"
nitrite = "3.4.4"
packagesearchApiModels = "3.0.0-SNAPSHOT"
jewel-bridge-233 = "0.12.0-ij-233"
jewel-bridge-232 = "0.12.0-ij-232"
jewel = "0.12.0"
jewel-bridge-233 = "0.13.2-ij-233"
jewel-bridge-232 = "0.13.2-ij-232"
jewel = "0.13.2"

[libraries]
assertk = { module = "com.willowtreeapps.assertk:assertk-jvm", version.ref = "assertk" }
Expand Down Expand Up @@ -96,4 +96,3 @@ kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlin-plugin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
kotlinter = { id = "org.jmailen.kotlinter", version.ref = "kotlinterGradlePlugin" }

Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ internal fun PackageSearchTabStyle(): TabStyle {
tabPadding = current.metrics.tabPadding,
tabHeight = PackageSearchMetrics.searchBarHeight,
closeContentGap = current.metrics.closeContentGap,
tabContentSpacing = current.metrics.tabContentSpacing,
),
icons = current.icons,
contentAlpha = current.contentAlpha
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import com.jetbrains.packagesearch.plugin.ui.model.infopanel.InfoPanelContent
import com.jetbrains.packagesearch.plugin.ui.model.infopanel.InfoPanelViewModel
import com.jetbrains.packagesearch.plugin.ui.model.packageslist.PackageListItemEvent
import com.jetbrains.packagesearch.plugin.ui.viewModel
import org.jetbrains.jewel.ui.component.SimpleTabContent
import org.jetbrains.jewel.ui.component.TabData
import org.jetbrains.jewel.ui.component.TabStrip
import org.jetbrains.jewel.ui.component.VerticalScrollbar
Expand All @@ -45,8 +46,10 @@ fun PackageSearchInfoPanel(
tabs = tabs.map { infoPanelContent ->
TabData.Default(
selected = activeTabTitle == infoPanelContent.tabTitle,
label = infoPanelContent.tabTitle,
closable = false,
content = { tabState ->
SimpleTabContent(infoPanelContent.tabTitle, tabState)
},
onClick = { viewModel.setActiveTabTitle(infoPanelContent.tabTitle) },
)
}
Expand Down Expand Up @@ -97,4 +100,3 @@ private fun NoTabsAvailable() {
)
}
}

0 comments on commit 34f4047

Please sign in to comment.