-
Notifications
You must be signed in to change notification settings - Fork 0
1.2.0
Zahid edited this page Jun 30, 2025
·
1 revision
Released: 18.05.2025
Deskit 1.2.0 🚀 brings significant enhancements to the library, improving both the visual appeal and usability of dialog components for Compose for Desktop applications.
-
🖌️ Enhanced Visuals: Added icon support to
InfoDialog
andConfirmationDialog
for richer user feedback. - 📊 Scrollbars: All file dialogs now include horizontal and vertical scrollbars for better navigation.
-
🔍 Smart Folder Navigation:
FileChooserDialog
now displays matching file counts in folders for easier selection. - 🎨 Visual File Types: Introduced rich file type icons to improve the user experience.
- 📱 Component-Based Architecture: Refactored dialogs for a more maintainable and consistent UI.
- FileChooserDialog: Added folder tooltips showing matching file counts, an extension filter badge, and scrollbars for seamless navigation.
- FileSaverDialog: Now displays all files (dimmed) for better context, includes scrollbars, and improves navigation flow.
- FolderChooserDialog: Shows both files (dimmed) and folders with visual differentiation and warns users when attempting to select files.
-
InfoDialog: Added support for custom icons with optional color filtering (tint, lighting, and colorMatrix customization via
ColorFilter
). - ConfirmationDialog: Enhanced with custom icons, configurable button text, and flexible content placement for improved usability.
See the FolderChooserDialog
in action:
folderchooservid.webm
-
FileChooserDialog with file type filtering, breadcrumb navigation, and folder matching counts
-
InfoDialog with custom icon and styled message
-
FolderChooserDialog showing files (dimmed) and folders with scrollbars
-
FileChooserDialog with badge and tooltip for matching file counts
-
ConfirmationDialog with warning icon
InfoDialog(
title = "Debian",
icon = painterResource(Res.drawable.debian),
content = {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
Text("This is a custom message with")
Spacer(Modifier.height(8.dp))
Text("multiple components", fontWeight = FontWeight.Bold)
Spacer(Modifier.height(16.dp))
LinearProgressIndicator(modifier = Modifier.width(200.dp))
}
},
onClose = { showInfoDialog = false }
)
ConfirmationDialog(
title = "Delete Project Files",
message = "This will permanently delete all project files. This action cannot be undone.",
icon = painterResource(Res.drawable.warning),
colorFilter = ColorFilter.tint(MaterialTheme.colorScheme.error),
confirmButtonText = "Delete",
cancelButtonText = "Cancel",
onConfirm = { showConfirmationDialog = false },
onCancel = { showConfirmationDialog = false }
)
To use Deskit 1.2.0, update your build.gradle.kts
or settings.gradle.kts
as described in the Installation guide, ensuring the dependency is set to:
implementation("com.github.zahid4kh:deskit:1.2.0")
Made with ❤️ | Free stuff is the best stuff