layout_document_generic_preview.h 646 B

12345678910111213141516171819202122232425
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. namespace Layout {
  9. struct DocumentGenericPreview final {
  10. static DocumentGenericPreview Create(DocumentData *document);
  11. const style::icon *icon() const;
  12. const int index;
  13. const style::color &color;
  14. const style::color &dark;
  15. const style::color &over;
  16. const style::color &selected;
  17. const QString ext;
  18. };
  19. // Ui::CachedRoundCorners DocumentCorners(int colorIndex);
  20. } // namespace Layout