Add desktop network traffic graphs and unify microphone icons

This commit is contained in:
evgeny committed 2026-11-01 14:45:01 +01:00
1 parent 3dff681ff0
commit e384d4cf3d
26 files changed
+809 -29

No files matched your search

+1 -11
View File
@@ -214,16 +214,6 @@ static QIcon attachmentIcon(const QPalette& palette) {
return outlineIcon(rotation.map(path), palette.color(QPalette::ButtonText));
}
/* Микрофон с капсюлем, держателем и подставкой в том же контурном стиле, что и скрепка. */
static QIcon microphoneIcon(const QPalette& palette) {
QPainterPath path;
path.addRoundedRect(QRectF(9, 2, 6, 12), 3, 3);
path.moveTo(5, 10); path.lineTo(5, 12);
path.cubicTo(5, 15.866, 8.134, 19, 12, 19); path.cubicTo(15.866, 19, 19, 15.866, 19, 12); path.lineTo(19, 10);
path.moveTo(12, 19); path.lineTo(12, 22); path.moveTo(8, 22); path.lineTo(16, 22);
return outlineIcon(path, palette.color(QPalette::ButtonText));
}
/* Смайлик с короткой улыбкой и свободным отступом от внешнего круга. */
static QIcon smileIcon(const QPalette& palette) {
QPainterPath path;
@@ -366,7 +356,7 @@ InputBar::InputBar(EmojiPanel *emojiPanel, AudioRecorder *recorder, QWidget *par
QCoreApplication::translate("ChatGui", "Emoji"), this);
layout->addWidget(wrapBottomBtn(m_emojiBtn, 3), 0, Qt::AlignBottom);
m_pttBtn = makeIconBtn(microphoneIcon(palette()),
m_pttBtn = makeIconBtn(outlineIcon(microphoneOutline(), palette().color(QPalette::ButtonText)),
QCoreApplication::translate("ChatGui", "Voice message (hold)"), this);
GUI_DEBUG("composer: attachment, emoji and voice buttons initialized icons=vector icon_px=20 stroke=1.8 HiDPI=1x..4x");
layout->addWidget(wrapBottomBtn(m_pttBtn, 3), 0, Qt::AlignBottom);