mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Improve voice transcribe design.
This commit is contained in:
@@ -652,11 +652,20 @@ msgVideoSize: size(320px, 240px);
|
||||
|
||||
msgWaveformBar: 2px;
|
||||
msgWaveformSkip: 1px;
|
||||
msgWaveformMin: 2px;
|
||||
msgWaveformMax: 20px;
|
||||
msgWaveformMin: 3px;
|
||||
msgWaveformMax: 17px;
|
||||
|
||||
historyTranscribeSkip: 10px;
|
||||
historyTranscribeSize: 24px;
|
||||
historyTranscribeSize: size(28px, 22px);
|
||||
historyTranscribeRadius: 4px;
|
||||
historyTranscribeInIcon: icon {{ "chat/voice_to_text", msgFileInBg }};
|
||||
historyTranscribeInIconSelected: icon {{ "chat/voice_to_text", msgFileInBgSelected }};
|
||||
historyTranscribeOutIcon: icon {{ "chat/voice_to_text", msgFileOutBg }};
|
||||
historyTranscribeOutIconSelected: icon {{ "chat/voice_to_text", msgFileOutBgSelected }};
|
||||
historyTranscribeInHide: icon {{ "chat/voice_to_text_collapse", msgFileInBg }};
|
||||
historyTranscribeInHideSelected: icon {{ "chat/voice_to_text_collapse", msgFileInBgSelected }};
|
||||
historyTranscribeOutHide: icon {{ "chat/voice_to_text_collapse", msgFileOutBg }};
|
||||
historyTranscribeOutHideSelected: icon {{ "chat/voice_to_text_collapse", msgFileOutBgSelected }};
|
||||
|
||||
historyVideoMessageMute: icon {{ "volume_mute", historyFileThumbIconFg }};
|
||||
historyVideoMessageMuteSelected: icon {{ "volume_mute", historyFileThumbIconFgSelected }};
|
||||
|
@@ -398,6 +398,18 @@ ChatStyle::ChatStyle() {
|
||||
st::historyPollInChoiceRightSelected,
|
||||
st::historyPollOutChoiceRight,
|
||||
st::historyPollOutChoiceRightSelected);
|
||||
make(
|
||||
&MessageStyle::historyTranscribeIcon,
|
||||
st::historyTranscribeInIcon,
|
||||
st::historyTranscribeInIconSelected,
|
||||
st::historyTranscribeOutIcon,
|
||||
st::historyTranscribeOutIconSelected);
|
||||
make(
|
||||
&MessageStyle::historyTranscribeHide,
|
||||
st::historyTranscribeInHide,
|
||||
st::historyTranscribeInHideSelected,
|
||||
st::historyTranscribeOutHide,
|
||||
st::historyTranscribeOutHideSelected);
|
||||
make(
|
||||
&MessageImageStyle::msgDateImgBg,
|
||||
st::msgDateImgBg,
|
||||
|
@@ -70,6 +70,9 @@ struct MessageStyle {
|
||||
style::icon historyQuizExplain = { Qt::Uninitialized };
|
||||
style::icon historyPollChosen = { Qt::Uninitialized };
|
||||
style::icon historyPollChoiceRight = { Qt::Uninitialized };
|
||||
style::icon historyTranscribeIcon = { Qt::Uninitialized };
|
||||
style::icon historyTranscribeHide = { Qt::Uninitialized };
|
||||
|
||||
};
|
||||
|
||||
struct MessageImageStyle {
|
||||
|
Reference in New Issue
Block a user