Xad Kile
04/28/2022, 10:37 AMMuhammad Adeem
04/30/2022, 8:33 PMCody Mikol
05/01/2022, 12:31 AMPatrushev Borya
05/02/2022, 6:26 AMMenuBar{}
? For example colors, fonts... because on Linux it looks terrible...lazt omen
05/02/2022, 4:28 PMAru
05/02/2022, 9:57 PMThomas
05/04/2022, 7:10 PMlazt omen
05/07/2022, 1:27 AMColumn(modifier = modifier.background(Magenta20)) {
val scrollState = rememberLazyListState(0)
val widths = playerState.showColumns.map {
<http://40.mu|40.mu>
}
val rowColors = listOf(White, Gray10)
LazyRow(state = scrollState, modifier = Modifier.weight(1F).fillMaxWidth().background(Orange20)) {
item {
Column(
modifier = Modifier.background(Green20).fillParentMaxWidth()
) {
Row(modifier = Modifier.fillMaxWidth().background(Yellow20)) {
for (column in playerState.showColumns.indices) {
Text(
playerState.showColumns[column],
style = LocalTextStyle.current.copy(fontWeight = FontWeight.Bold),
modifier = Modifier.width(widths[column])
)
}
}
LazyColumn(modifier = Modifier.weight(1F).fillMaxWidth().background(Magenta70)) {
items(20) {
Row(modifier = Modifier.fillParentMaxWidth().background(color = rowColors[it % 2])) {
for (column in playerState.showColumns.indices) {
Text(
"Value of column $it",
modifier = Modifier.width(widths[column])
)
}
}
}
}
}
}
}
val scrollbarAdapter = ScrollbarAdapter(scrollState)
HorizontalScrollbar(adapter = scrollbarAdapter)
}
The main Idea is to have a lazy row to make my content scrollable horizontally. Inside a column that contains the header and a lazy column that contains every row of data. I want my rows to be at least as wide as the screen but grow bigger if they need to. If I remove fillParentMaxWidth
from the first column my container won't expand to the entire screen. However, if I leave it, the content will shrink to match the current window width. I need the content to be as wide as it needs and at least as wide as the window. Does anyone have a solution to this?Cody Mikol
05/11/2022, 2:25 PMeygraber
05/11/2022, 9:58 PMmikehearn
05/16/2022, 11:52 AMmikehearn
05/16/2022, 11:53 AMmiguelsesma
05/24/2022, 7:50 AMarchive uses unknown compression for member 'control.tar.zst'
Is there any way of forcing xz compression instead zstd?soderbjorn
05/28/2022, 9:25 PMactual fun Modifier.cursorForMove(): Modifier {
return this.pointerHoverIcon(PointerIcon(Cursor(Cursor.MOVE_CURSOR)))
}
The thing is, it works great with other pre-defined cursors like <http://Cursor.SE|Cursor.SE>_RESIZE_CURSOR
or Cursor.HAND_CURSOR
, but when I use Cursor.MOVE_CURSOR
, the cursor does not change at all. The Cursor class is in AWT, so maybe a bug there?spierce7
05/31/2022, 12:42 AMImage
, what would be the most straight forward way to crop all the transparent padding off of it into another Image
?Cody Mikol
06/02/2022, 12:39 AMCody Mikol
06/02/2022, 12:39 AMTlaster
06/06/2022, 4:12 AMundecorated = true
since it has window decor, how can I achieve this?Alexander Maryanovsky
06/07/2022, 9:20 AMkotlinx-coroutines-core
than the one the one compose depends on? I’m on id("org.jetbrains.compose") version "1.1.1"
(which seems to depend on kotlinx-coroutines-core:1.5.2
) and would like to use kotlinx-coroutines-core:1.6.1
Siddarth R Iyer
06/07/2022, 12:42 PMmcpiroman
06/09/2022, 6:11 PMSiddarth R Iyer
06/09/2022, 7:26 PMeygraber
06/10/2022, 8:40 PMSemanticsNodeInteraction.captureToImage
for desktop?miguelsesma
06/13/2022, 12:45 PMImageComposeScene
and render it to a bitmap every 16 milliseconds, but not sure if that is an optimal solution.
The reason is that this buffer will be sent to a different process where it will be blended with more content before being displayed.tylerwilson
06/14/2022, 2:21 PMjames
06/15/2022, 11:00 AMjim
07/15/2022, 9:03 AMBoxWithConstraints
which allows you to adjust your widget based on the available space.Didier Villevalois
07/20/2022, 8:08 AMisLocationByPlatform = true
which does nothing (Linux Fedora 36 Wayland).
I tried
setLocationRelativeTo(parent)
which does set the top-left corner of the dialog to the center of the parent window (where the docs say it should set the center of the dialog to the center of the parent window...).
Furthermore, none of my trials succeeded in putting the dialog in the foreground. Systematically, the dialog appears at the front the first time and always in the background the next times.
Please did someone find a solution for that?Emmanuel
07/27/2022, 8:19 PMContextMenuDataProvider
menu options...I don't want the copy option.Radoslaw Juszczyk
08/30/2022, 7:49 PM