Skip to content

Possible fix for: Checkboxes invisible in dark mode on Permissions dialog #300

Description

@Nigel1992

Summary:
In dark theme the Status column checkboxes on the Permissions dialog are invisible (checkmarks blend into the background).

Steps to reproduce:

  1. Switch to dark theme.
  2. Open Settings → Feature permissions (Permissions dialog).
  3. Observe the Status column: checked items show no visible checkmark.

Expected:

  • Checkboxes are clearly visible in both light and dark themes.

Actual:

  • Checkboxes appear invisible / checkmarks blend into the background in dark theme.

Likely cause:

  • Status cells use a hardcoded icon or decoration that doesn't adapt to the current palette/QStyle.

Concrete fix:

  • Let Qt draw theme-aware checkboxes instead of using custom icons:
auto *item = new QTableWidgetItem();
item->setFlags(item->flags() | Qt::ItemIsUserCheckable);
item->setCheckState(isAllowed ? Qt::Checked : Qt::Unchecked);
table->setItem(row, statusColumn, item);
  • If custom icons are required, use monochrome SVGs and tint them with the current palette (e.g. QApplication::palette().color(QPalette::WindowText)) or provide light/dark variants and switch based on the palette.

Where to change:

  • Update permissiondialog.cpp where the Status column is populated to use setCheckState() or theme-aware icons.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions