Skip to content

Custom floating button and title icons; show only the app's SharedPreferences - #23

Merged
abhishek-3289 merged 1 commit into
mainfrom
drawer-icon-app-prefs
Nov 4, 2026
Merged

abhishek-3289 merged 1 commit into
mainfrom
drawer-icon-app-prefs

Conversation

@abhishek-3289

Copy link
Copy Markdown
Collaborator

What

  • Floating button icon: DeckTrigger.FloatingButton(icon = Icons.Default.Build) takes an ImageVector. The existing composable icon slot (for drawables) is now documented in the README.
  • Title icon: DeckStyle(titleIcon = { Icon(...) }) replaces the bug icon next to the drawer title; titleIcon = null shows the title without an icon. The default is unchanged.
  • SharedPreferences: the browser lists only the app's own files. Files from libraries and the system (WebView, Firebase, Play services, AndroidX, Facebook, Crashlytics, Datadog, Sentry, DevDeck, and package-style names from another organisation) sit behind a Show library files switch. Clear-all only clears the files shown.
  • Sample: Custom floating button icon switch and Title icon chips (Default / Custom / None).

Compatibility

DeckStyle's old constructor and copy are kept as hidden overloads, so apps compiled against 1.1.0 still link. A 1.1.0-compiled copy call that relies on default arguments needs a recompile (no source change).

Checks

  • ktlintCheck lintDebug lintRelease assembleRelease testDebugUnitTest apiCheck :sample:assembleQa pass locally.
  • New LibraryPreferencesTest covers app vs. library file names.
  • Checked on the emulator: custom wrench on the floating button and in the title tile, no title icon with null, and only user_session listed until Show library files is on.

🤖 Generated with Claude Code

…ferences

- DeckTrigger.FloatingButton(icon = ImageVector) sets the floating button icon;
  the composable icon slot is now documented.
- DeckStyle(titleIcon = ...) replaces the icon next to the drawer title, and
  titleIcon = null shows the title without an icon. The old constructor and
  copy are kept hidden for binary compatibility.
- The SharedPreferences browser lists only the app's own files; files from
  libraries and the system (WebView, Firebase, Play services, AndroidX,
  DevDeck) are behind a "Show library files" switch.
- Sample: custom floating button icon switch and title icon chips.
@abhishek-3289 abhishek-3289 reopened this Nov 4, 2026
@abhishek-3289
abhishek-3289 merged commit c07c7ab into main Nov 4, 2026
5 of 7 checks passed
@abhishek-3289
abhishek-3289 deleted the drawer-icon-app-prefs branch November 4, 2026 18:05
@github-actions github-actions Bot added this to the Next release milestone Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants