Skip to content

Code Quality: Reusable control for thumbnail display with overlay #12071

Closed as not planned
Closed as not planned
@QuaintMako

Description

@QuaintMako

Description

The thumbnails in Files may sometimes be displayed with an overlay over them, to show different information such as being a shortcut. We currently are adding all those information separatedly. They could be gathered within a single reusable control for thumbnail, handling the display of overlays.

Concerned code

  • ItemViewModel
  • ColumnViewBase, DetailsLayout et GridLayout

Gains

  • Better readability
  • Duplication reducation

Requirements

  • Have a reusable control for thumbnail
  • Have a reusable control for overlays so that we can use it indecently from the thumbnail control (eg. the grid layouts).
  • Add a DisplayOverlay property (or something along these lines) to the thumbnail control. Setting the property to true will load the overlay inside the thumbnail control.

Comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions