mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Improve edit group info box design.
This commit is contained in:
parent
2af4b2b512
commit
1244200987
4 changed files with 33 additions and 19 deletions
|
@ -53,12 +53,12 @@ boxPhotoCaptionSkip: 8px;
|
||||||
defaultChangeUserpicIcon: icon {{ "new_chat_photo", activeButtonFg }};
|
defaultChangeUserpicIcon: icon {{ "new_chat_photo", activeButtonFg }};
|
||||||
defaultUploadUserpicIcon: icon {{ "upload_chat_photo", msgDateImgFg }};
|
defaultUploadUserpicIcon: icon {{ "upload_chat_photo", msgDateImgFg }};
|
||||||
defaultUserpicButton: UserpicButton {
|
defaultUserpicButton: UserpicButton {
|
||||||
size: size(76px, 76px);
|
size: size(72px, 72px);
|
||||||
photoSize: 76px;
|
photoSize: 72px;
|
||||||
photoPosition: point(-1px, -1px);
|
photoPosition: point(-1px, -1px);
|
||||||
changeButton: defaultActiveButton;
|
changeButton: defaultActiveButton;
|
||||||
changeIcon: defaultChangeUserpicIcon;
|
changeIcon: defaultChangeUserpicIcon;
|
||||||
changeIconPosition: point(23px, 25px);
|
changeIconPosition: point(21px, 23px);
|
||||||
duration: 500;
|
duration: 500;
|
||||||
uploadHeight: 24px;
|
uploadHeight: 24px;
|
||||||
uploadBg: msgDateImgBgOver;
|
uploadBg: msgDateImgBgOver;
|
||||||
|
|
|
@ -1118,10 +1118,7 @@ void Controller::fillManageSection() {
|
||||||
//|| canEditInviteLinks
|
//|| canEditInviteLinks
|
||||||
|| canViewOrEditLinkedChat
|
|| canViewOrEditLinkedChat
|
||||||
|| canEditType) {
|
|| canEditType) {
|
||||||
AddSkip(
|
AddSkip(_controls.buttonsLayout);
|
||||||
_controls.buttonsLayout,
|
|
||||||
st::editPeerTopButtonsLayoutSkip,
|
|
||||||
st::editPeerTopButtonsLayoutSkipCustomBottom);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canEditReactions()) {
|
if (canEditReactions()) {
|
||||||
|
@ -1291,8 +1288,7 @@ void Controller::fillManageSection() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canEditStickers || canDeleteChannel) {
|
if (canEditStickers || canDeleteChannel) {
|
||||||
AddSkip(_controls.buttonsLayout,
|
AddSkip(_controls.buttonsLayout);
|
||||||
st::editPeerTopButtonsLayoutSkipCustomTop);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canEditStickers) {
|
if (canEditStickers) {
|
||||||
|
@ -1308,6 +1304,10 @@ void Controller::fillManageSection() {
|
||||||
[=]{ deleteWithConfirmation(); }
|
[=]{ deleteWithConfirmation(); }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (canEditStickers || canDeleteChannel) {
|
||||||
|
AddSkip(_controls.buttonsLayout);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Controller::fillPendingRequestsButton() {
|
void Controller::fillPendingRequestsButton() {
|
||||||
|
|
|
@ -642,21 +642,35 @@ infoStoriesAboutArchivePadding: margins(22px, 12px, 22px, 12px);
|
||||||
|
|
||||||
editPeerBottomButtonsLayoutMargins: margins(0px, 7px, 0px, 0px);
|
editPeerBottomButtonsLayoutMargins: margins(0px, 7px, 0px, 0px);
|
||||||
|
|
||||||
editPeerTopButtonsLayoutSkip: 13px;
|
editPeerTopButtonsLayoutSkip: 5px;
|
||||||
editPeerTopButtonsLayoutSkipToBottom: 12px;
|
editPeerTopButtonsLayoutSkipToBottom: 5px;
|
||||||
|
|
||||||
editPeerTopButtonsLayoutSkipCustomTop: 14px;
|
editPeerTopButtonsLayoutSkipCustomBottom: 5px;
|
||||||
editPeerTopButtonsLayoutSkipCustomBottom: 11px;
|
|
||||||
|
|
||||||
editPeerHistoryVisibilityTopSkip: 8px;
|
editPeerHistoryVisibilityTopSkip: 8px;
|
||||||
|
|
||||||
editPeerPhotoMargins: margins(22px, 16px, 22px, 8px);
|
editPeerPhotoMargins: margins(22px, 8px, 22px, 8px);
|
||||||
editPeerTitle: defaultInputField;
|
editPeerTitle: defaultInputField;
|
||||||
editPeerTitleMargins: margins(27px, 21px, 22px, 8px);
|
editPeerTitleMargins: margins(27px, 13px, 22px, 8px);
|
||||||
editPeerDescription: InputField(newGroupDescription) {
|
editPeerDescription: InputField(defaultInputField) {
|
||||||
borderFg: transparent;
|
textBg: transparent;
|
||||||
|
textMargins: margins(0px, 7px, 0px, 7px);
|
||||||
|
|
||||||
|
placeholderFg: placeholderFg;
|
||||||
|
placeholderFgActive: placeholderFgActive;
|
||||||
|
placeholderFgError: placeholderFgActive;
|
||||||
|
placeholderMargins: margins(2px, 0px, 2px, 0px);
|
||||||
|
placeholderScale: 0.;
|
||||||
|
placeholderFont: normalFont;
|
||||||
|
|
||||||
|
border: 0px;
|
||||||
|
borderActive: 0px;
|
||||||
|
|
||||||
|
heightMin: 32px;
|
||||||
|
|
||||||
|
font: boxTextFont;
|
||||||
}
|
}
|
||||||
editPeerDescriptionMargins: margins(22px, 5px, 22px, 16px);
|
editPeerDescriptionMargins: margins(22px, 3px, 22px, 2px);
|
||||||
editPeerPrivaciesMargins: margins(15px, 7px, 22px, 0px);
|
editPeerPrivaciesMargins: margins(15px, 7px, 22px, 0px);
|
||||||
editPeerPrivacyBottomSkip: 16px;
|
editPeerPrivacyBottomSkip: 16px;
|
||||||
editPeerPrivacyLabel: FlatLabel(defaultFlatLabel) {
|
editPeerPrivacyLabel: FlatLabel(defaultFlatLabel) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit a6d7e3f5457b29b563941b24cd844ca26ac0d077
|
Subproject commit a3c52c2cfe7ee5c3382ac0579eb96ec6962b7f47
|
Loading…
Add table
Reference in a new issue