Skip to content
Zahid edited this page Jun 30, 2025 · 4 revisions

Deskit Version 1.3.0 Release Notes

Released: 30.06.2025

Deskit 1.3.0 🚀 introduces a comprehensive file information system and enhanced user experience features, making file system interactions more intuitive and informative for Compose for Desktop applications.

What's New in 1.3.0

  • 📋 File Information System: Complete file and folder metadata display with detailed information dialogs
  • 🖱️ Hover Info Buttons: Smart info icons that appear on hover for instant metadata access
  • 📋 Clipboard Integration: One-click file path copying with visual feedback
  • 🎯 Enhanced User Experience: Individual hover states and improved visual feedback
  • 🔧 Technical Improvements: Better performance and error handling

Detailed Improvements

File Information System

  • FileInfoDialog: New comprehensive dialog showing file/folder metadata including:
    • File type, size, and extension
    • Creation and modification dates
    • Full file path with copy-to-clipboard functionality
    • For folders: total file count and recursive size calculation
  • Hover Info Buttons: Animated info icons that appear when hovering over files and folders
  • Clipboard Support: Click any file path to copy it to clipboard with visual success feedback

Enhanced User Experience

  • Individual Hover States: Each file and folder item now has its own hover state for better visual feedback
  • Resizable Info Dialogs: File information dialogs can be resized for better content viewing
  • Visual Feedback Improvements:
    • Color changes for copied paths
    • Smooth hover animations
    • Success messages with auto-dismiss
    • Enhanced tooltips

Technical Improvements

  • Folder Size Calculation: Function for recursive&accurate folder size calculation
  • Memory Optimization: Efficient file listing and metadata caching
  • Error Handling: Robust handling of file system permissions and access issues
  • Performance: Optimized scrolling and rendering for large directories

Code Examples

File Information Dialog Usage

// The file info dialog is automatically available in all file dialogs
FileChooserDialog(
    title = "Select File",
    resizableFileInfoDialog = true, // New parameter
    onFileSelected = { file -> 
        // Handle file selection
    },
    onCancel = { 
        // Handle cancellation 
    }
)

File Dialog with Custom Colors

FolderChooserDialog(
    title = "Choose Folder",
    fileItemColor = MaterialTheme.colorScheme.outline.copy(alpha = 0.6f),
    folderItemColor = MaterialTheme.colorScheme.tertiary,
    isFileInfoDialogResizable = true,
    onFolderSelected = { folder ->
        // Handle folder selection
    },
    onCancel = {
        // Handle cancellation
    }
)

Enhanced File Saver

FileSaverDialog(
    title = "Save Document",
    suggestedFileName = "document",
    extension = ".pdf",
    fileIconColor = MaterialTheme.colorScheme.primary,
    folderIconColor = MaterialTheme.colorScheme.tertiary,
    resizableFileInfoDialog = true,
    onSave = { file ->
        // Handle file saving
    },
    onCancel = {
        // Handle cancellation
    }
)

Features Overview

File Information Features

  • Metadata Display: Complete file and folder information including size, type, dates
  • Path Copying: Click-to-copy file paths with visual feedback
  • Folder Statistics: Total file count and recursive size for directories
  • Smart Tooltips: Contextual information on hover

User Experience Features

  • Hover Animations: Smooth transitions and visual feedback
  • Individual States: Each item has its own interaction state
  • Visual Feedback: Color changes, success messages, and progress indicators
  • Resizable Dialogs: Flexible dialog sizing for better content viewing

Upgrading to 1.3.0

To use Deskit 1.3.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.3.0")

New optional parameters:

  • resizableFileInfoDialog: Boolean = true
  • Enhanced color customization options
  • Additional callback parameters for file information

Feedback

I value your feedback! Please report issues or suggest improvements on the GitHub Issues page].

Clone this wiki locally