Commit 78a19a2f authored by Adriaan de Groot's avatar Adriaan de Groot 💬 Committed by Nate Graham
Browse files

Cursor: improve CLI listing of themes

- List the cursor-theme identifiers in []
- Display the "this is the current theme" outside of the [] so
  it is visually distinct from the identifiers
- Apply i18n() to "this is the current theme" because it was an
  untranslated string before.
parent 463c6c2f
......@@ -93,11 +93,11 @@ int main(int argc, char **argv)
ts << i18n("You have the following mouse cursor themes on your system:") << Qt::endl;
for (int i = 0; i < model->rowCount(); ++i) {
const CursorTheme *theme = model->theme(model->index(i, 0));
ts << QString(" * %1 [%2]").arg(theme->title()).arg(theme->name());
if (settings->cursorTheme() == theme->name()) {
ts << QString(" * %1 (%2 - current theme for this Plasma session)").arg(theme->title()).arg(theme->name()) << Qt::endl;
} else {
ts << QString(" * %1 (%2)").arg(theme->title()).arg(theme->name()) << Qt::endl;
}
ts << QChar(' ') << i18n("(Current theme for this Plasma session)");
}
ts << Qt::endl;
}
} else {
parser->showHelp();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment