Class UIUtility

Class Documentation

class UIUtility

Public Functions

UIUtility()

Public Static Functions

QSharedPointer<QPixmap> generate_palette_thumbnail(PaletteController::PaletteWrapper &palette)

Generates a small thumbnail preview of a Palette. Used as an icon in ComboBoxes.

Return

Thumbnail pixmap.

Parameters
  • palette: The Palette to generate a thumbnail for.

void highlight_widget(QWidget *button, bool highlight)

Highlights the QWidget using the theme’s highlight color.

Parameters
  • widget: Widget to highlight.

  • highlight: Whether to add or remove the highlight.