Commit 047f83cf authored by Nate Graham's avatar Nate Graham
Browse files

screenshare SNI: use monochrome-compatible icon

`video-display` is always colorful; `monitor` is the same icon but
monochrome at 16px and 22px sizes, which is what we want here.

BUG: 460514
FIXED-IN: 5.26.1
(cherry picked from commit 8f2a8327)
parent d796cb3d
Pipeline #249625 passed with stage
in 1 minute and 13 seconds
......@@ -277,7 +277,7 @@ WaylandIntegration::Stream WaylandIntegration::WaylandIntegrationPrivate::startS
auto output = m_outputMap.value(outputName).output();
m_streamedScreenPosition = output->globalPosition();
return startStreaming(m_screencasting->createOutputStream(output.data(), mode),
QStringLiteral("video-display"),
QStringLiteral("monitor"),
i18n("Recording screen \"%1\"...", output->model()),
{
{QLatin1String("size"), output->pixelSize()},
......@@ -294,7 +294,7 @@ WaylandIntegration::Stream WaylandIntegration::WaylandIntegrationPrivate::startS
}
m_streamedScreenPosition = workspace.topLeft();
return startStreaming(m_screencasting->createRegionStream(workspace, 1, mode),
QStringLiteral("video-display"),
QStringLiteral("monitor"),
i18n("Recording workspace..."),
{
{QLatin1String("size"), workspace.size()},
......@@ -306,7 +306,7 @@ WaylandIntegration::Stream
WaylandIntegration::WaylandIntegrationPrivate::startStreamingVirtualOutput(const QString &name, const QSize &size, Screencasting::CursorMode mode)
{
return startStreaming(m_screencasting->createVirtualOutputStream(name, size, 1, mode),
QStringLiteral("video-display"),
QStringLiteral("monitor"),
i18n("Recording virtual output '%1'...", name),
{
{QLatin1String("size"), size},
......
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