Skip to content

Conversation

@sameerasw
Copy link
Owner

This pull request adds support for customizing a logo watermark in the app, including the ability to show/hide the logo, select from a set of preset logos, and adjust the logo's size. The changes span the watermark engine, repository, UI, and ViewModel to enable this feature. Additionally, padding and border logic have been refined to ensure better layout when borders or logos are used.

Logo Watermark Feature:

  • Added new fields to WatermarkOptions (showLogo, logoResId, logoSize) to support logo customization.
  • Updated WatermarkEngine to draw the selected logo on the watermark, both in overlay and frame modes, with proper scaling, positioning, and shadow handling. [1] [2] [3]
  • Implemented a new LogoCarouselPicker composable, allowing users to select a logo from a horizontal carousel in the watermark settings UI. [1] [2]

Repository and State Management:

  • Extended WatermarkRepository to persist and update logo-related preferences (showLogo, logoSize) and provided new update methods for these settings. [1] [2] [3]
  • Updated WatermarkViewModel to manage and expose logo settings, and to handle the new logo options in coordination with the repository and UI. [1] [2] [3]

Layout and Drawing Improvements:

  • Adjusted margin and stroke calculations in WatermarkEngine to account for border stroke and logo size, ensuring proper spacing in watermark overlays and frames. [1] [2] [3] [4]

These changes collectively introduce a flexible and user-friendly logo watermark feature, while also improving the layout logic for watermark overlays and frames.

@sameerasw sameerasw self-assigned this Jan 23, 2026
@sameerasw sameerasw added the enhancement New feature or request label Jan 23, 2026
@sameerasw sameerasw merged commit a8d9d71 into develop Jan 23, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in Essentials Progress Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants