Show thumbnails for live streams inside of the split header tooltip (#1702)

This feature is enabled by default and can be disabled in the Settings dialog with the "Show stream thumbnail" setting
This commit is contained in:
apa420
2020-05-24 11:57:15 +02:00
committed by GitHub
parent f7b063f265
commit 6d5ba0c442
4 changed files with 68 additions and 4 deletions
+25
View File
@@ -544,6 +544,31 @@ void GeneralPage::initLayout(SettingsLayout &layout)
else if (args.value == "Large")
return 300;
return fuzzyToInt(args.value, 0);
});
layout.addDropdown<int>(
"Show stream thumbnail", {"Off", "Small", "Medium", "Large"},
s.thumbnailSizeStream,
[](auto val) {
if (val == 0)
return QString("Off");
else if (val == 1)
return QString("Small");
else if (val == 2)
return QString("Medium");
else if (val == 3)
return QString("Large");
else
return QString::number(val);
},
[](auto args) {
if (args.value == "Small")
return 1;
else if (args.value == "Medium")
return 2;
else if (args.value == "Large")
return 3;
return fuzzyToInt(args.value, 0);
});
layout.addCheckbox("Double click to open links and other elements in chat",