mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fixed style of input field in boxes from compose controls in media view.
This commit is contained in:
parent
9a72b05117
commit
fd33fb4e7a
3 changed files with 18 additions and 0 deletions
|
@ -204,6 +204,7 @@ ComposeControls {
|
|||
record: RecordBar;
|
||||
files: ComposeFiles;
|
||||
premium: PremiumLimits;
|
||||
boxField: InputField;
|
||||
}
|
||||
|
||||
ReportBox {
|
||||
|
@ -1148,6 +1149,7 @@ defaultComposeControls: ComposeControls {
|
|||
record: defaultRecordBar;
|
||||
files: defaultComposeFiles;
|
||||
premium: defaultPremiumLimits;
|
||||
boxField: defaultInputField;
|
||||
}
|
||||
|
||||
moreChatsBarHeight: 48px;
|
||||
|
|
|
@ -1663,6 +1663,8 @@ void ComposeControls::initField() {
|
|||
}
|
||||
return false;
|
||||
});
|
||||
_field->setEditLinkCallback(
|
||||
DefaultEditLinkCallback(_show, _field, &_st.boxField));
|
||||
initAutocomplete();
|
||||
const auto allow = [=](const auto &) {
|
||||
return _history && Data::AllowEmojiWithoutPremium(_history->peer);
|
||||
|
|
|
@ -752,6 +752,20 @@ storiesComposeControls: ComposeControls(defaultComposeControls) {
|
|||
statusFg: storiesComposeGrayText;
|
||||
}
|
||||
premium: storiesComposePremium;
|
||||
boxField: InputField(defaultInputField) {
|
||||
textBg: transparent;
|
||||
textFg: groupCallMembersFg;
|
||||
|
||||
placeholderFg: groupCallMemberNotJoinedStatus;
|
||||
placeholderFgActive: groupCallMemberNotJoinedStatus;
|
||||
placeholderFgError: groupCallMemberNotJoinedStatus;
|
||||
|
||||
borderFg: inputBorderFg;
|
||||
borderFgActive: groupCallMemberInactiveStatus;
|
||||
borderFgError: activeLineFgError;
|
||||
|
||||
menu: storiesPopupMenu;
|
||||
}
|
||||
}
|
||||
storiesViewsMenu: PopupMenu(storiesPopupMenuWithIcons) {
|
||||
scrollPadding: margins(0px, 6px, 0px, 4px);
|
||||
|
|
Loading…
Add table
Reference in a new issue