Skip to content
Zahid edited this page Jun 30, 2025 · 1 revision

Deskit Version 1.2.0 Release Notes

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.

What's New in 1.2.0

  • 🖌️ Enhanced Visuals: Added icon support to InfoDialog and ConfirmationDialog 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.

Detailed Improvements

File System Dialogs

  • 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.

Information Dialogs

  • 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.

Demo Video

See the FolderChooserDialog in action:

folderchooservid.webm

Screenshots

  • FileChooserDialog with file type filtering, breadcrumb navigation, and folder matching counts
    File Chooser Dialog

  • InfoDialog with custom icon and styled message
    Info Dialog

  • FolderChooserDialog showing files (dimmed) and folders with scrollbars
    Folder Chooser Dialog

  • FileChooserDialog with badge and tooltip for matching file counts
    File Chooser Dialog with Badge

  • ConfirmationDialog with warning icon
    Confirmation Dialog

Code Examples

InfoDialog with Custom 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 with Warning Icon

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 }
)

Upgrading to 1.2.0

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")
Clone this wiki locally